From patchwork Tue Nov 8 17:07:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Zary X-Patchwork-Id: 124399 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-fx0-f56.google.com (mail-fx0-f56.google.com [209.85.161.56]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 6EC49B6F84 for ; Wed, 9 Nov 2011 04:08:24 +1100 (EST) Received: by faak28 with SMTP id k28sf58596faa.11 for ; Tue, 08 Nov 2011 09:08:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:from:to:subject:date:user-agent:cc :mime-version:message-id:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type:content-disposition; bh=/bf2xRASKwoWDTO+/lexbOK90XuFJ6FmqrnY3qSdHps=; b=nJJJWLWTDRimoURxOQXp8+Z3R10PM+dK2ykJnanF7Sh3IkBAcJ2BKGmgHiRmu00Gee NRwrFnr04ZNw0dc17TawX+VigAEXBGDnRH48DogxCPBjgM0Bc1aUxqG1AGGE6xK7ljLW anJxwXh+ZLlZgSuMZGeL3rvmLk7fKzYz3gRVQ= Received: by 10.223.7.17 with SMTP id b17mr213531fab.32.1320772099288; Tue, 08 Nov 2011 09:08:19 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.223.43.203 with SMTP id x11ls535313fae.1.gmail; Tue, 08 Nov 2011 09:08:18 -0800 (PST) Received: by 10.204.151.81 with SMTP id b17mr3799311bkw.3.1320772098508; Tue, 08 Nov 2011 09:08:18 -0800 (PST) Received: by 10.204.151.81 with SMTP id b17mr3799310bkw.3.1320772098493; Tue, 08 Nov 2011 09:08:18 -0800 (PST) Received: from mail.atlantis.sk (mail-1.atlantis.sk. [80.94.52.57]) by gmr-mx.google.com with ESMTPS id d3si1177820fad.2.2011.11.08.09.08.18 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Nov 2011 09:08:18 -0800 (PST) Received-SPF: neutral (google.com: 80.94.52.57 is neither permitted nor denied by best guess record for domain of linux@rainbow-software.org) client-ip=80.94.52.57; Received: (qmail 32678 invoked from network); 8 Nov 2011 17:08:17 -0000 Received: from unknown (HELO pentium) (rainbow@rainbow-software.org@89.173.145.150) by mail-1.atlantis.sk with ESMTPA; 8 Nov 2011 17:08:17 -0000 From: Ondrej Zary To: Alessandro Zummo Subject: [rtc-linux] [PATCH] rtc-cmos: fix broken NVRAM bank 2 writing Date: Tue, 8 Nov 2011 18:07:48 +0100 User-Agent: KMail/1.9.10 Cc: rtc-linux@googlegroups.com, Kernel development list MIME-Version: 1.0 Message-Id: <201111081807.52484.linux@rainbow-software.org> X-Original-Sender: linux@rainbow-software.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 80.94.52.57 is neither permitted nor denied by best guess record for domain of linux@rainbow-software.org) smtp.mail=linux@rainbow-software.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Disposition: inline Fix writing to NVRAM bank 2 in rtc-cmos driver. It never worked since its introduction in 2.6.28 because of a typo. Signed-off-by: Ondrej Zary --- linux-3.1-orig/drivers/rtc/rtc-cmos.c 2011-10-24 09:10:05.000000000 +0200 +++ linux-3.1/drivers/rtc/rtc-cmos.c 2011-11-08 17:43:29.000000000 +0100 @@ -164,7 +164,7 @@ static inline unsigned char cmos_read_ba static inline void cmos_write_bank2(unsigned char val, unsigned char addr) { outb(addr, RTC_PORT(2)); - outb(val, RTC_PORT(2)); + outb(val, RTC_PORT(3)); } #else