Return-Path: Received: from smtp.mba.ocn.ne.jp (mba.ocn.ne.jp [122.1.235.107]) by ozlabs.org (Postfix) with ESMTP id 08902DDE0A for ; Sat, 15 Sep 2007 02:44:53 +1000 (EST) Date: Sat, 15 Sep 2007 01:09:40 +0900 (JST) Message-Id: <20070915.010940.25476256.anemo@mba.ocn.ne.jp> To: david@gibson.dropbear.id.au Subject: Re: rtc-ds1742.c should use resource_size_t for base address From: Atsushi Nemoto In-Reply-To: <20070914055427.GM481@localhost.localdomain> References: <20070914055427.GM481@localhost.localdomain> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Cc: akpm@osdl.org, linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 14 Sep 2007 15:54:27 +1000, David Gibson wrote: > Currently the rtc driver, rtc-ds1742.c uses an unsigned long to store > the base mmio address of the NVRAM/RTC. This breaks on systems like > PowerPC 440, which is a 32-bit core with 36-bit physical addresses: IO > on the system, including the RTC, is typically above the 4GB point, > and cannot fit into an unsigned long. > > This patch fixes the problem by replacing the unsigned long with a > resource_size_t. Tested on Ebony (PPC440) (with additional patches to > instantiate the ds1742 platform device appropriately). > > Signed-off-by: David Gibson Thanks! Acked-by: Atsushi Nemoto