From mboxrd@z Thu Jan 1 00:00:00 1970 From: laurent.pinchart@ideasonboard.com (Laurent Pinchart) Date: Mon, 17 Feb 2014 11:59:32 +0100 Subject: [PATCH] ARM: shmobile: Remove __init from rcar_gen2_read_mode_pins() In-Reply-To: <20140217063510.21892.52120.sendpatchset@w520> References: <20140217063510.21892.52120.sendpatchset@w520> Message-ID: <1453243.5L1W6bkVz8@avalon> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Magnus, Thank you for the patch. On Monday 17 February 2014 15:35:10 Magnus Damm wrote: > From: Magnus Damm > > Remove __init from rcar_gen2_read_mode_pins() to allow > it to be used after boot. For instance the R-Car Gen2 > MD21 check is needed even in the case of CPU Hotplug. > > Signed-off-by: Magnus Damm > --- > > Written against renesas-devel-v3.14-rc2-20140213 > > arch/arm/mach-shmobile/setup-rcar-gen2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- 0001/arch/arm/mach-shmobile/setup-rcar-gen2.c > +++ work/arch/arm/mach-shmobile/setup-rcar-gen2.c 2014-02-17 > 15:02:48.000000000 +0900 @@ -28,7 +28,7 @@ > > #define MODEMR 0xe6160060 > > -u32 __init rcar_gen2_read_mode_pins(void) > +u32 rcar_gen2_read_mode_pins(void) > { > void __iomem *modemr = ioremap_nocache(MODEMR, 4); > u32 mode; Should we read the value once at boot time and cache it ? -- Regards, Laurent Pinchart