Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751938AbdFTTES (ORCPT ); Tue, 20 Jun 2017 15:04:18 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:35866 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbdFTTEQ (ORCPT ); Tue, 20 Jun 2017 15:04:16 -0400 Subject: Re: [PATCH v2 2/2] memory: ti-emif-sram: introduce relocatable suspend/resume handlers To: Russell King - ARM Linux References: <20170519175708.6070-1-d-gerlach@ti.com> <20170519175708.6070-3-d-gerlach@ti.com> <20170620144243.GB23750@n2100.armlinux.org.uk> CC: Rob Herring , Tony Lindgren , Santosh Shilimkar , , , , , Keerthy J From: Dave Gerlach Message-ID: Date: Tue, 20 Jun 2017 14:03:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20170620144243.GB23750@n2100.armlinux.org.uk> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [128.247.59.203] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 34 Hi, On 06/20/2017 09:42 AM, Russell King - ARM Linux wrote: > On Fri, May 19, 2017 at 12:57:08PM -0500, Dave Gerlach wrote: >> + .arm >> + .align 3 >> + >> +ENTRY(ti_emif_sram) > > Will you ever want to have any of this code as Thumb? I cannot see any requirement for that. I will say it is tested and inter-operates happily with CONFIG_THUMB_KERNEL, but because it's constrained to am335x and am437x I don't think there are unknown situations where every single instruction must be THUMB. > >> +extern inline void ti_emif_offsets(void) >> +{ > > "extern inline" is frowned upon in the kernel - any reason this > can't be "static inline" ? It should be static. > > Any reason not to provide a stub for when it's not configured, > and eliminate the ifdef in arch/arm/kernel/asm-offsets.c ? > No, I just was following the ifdef example set by others in the file, a stub would be cleaner I agree. Regards, Dave