Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4486680ybv; Sun, 16 Feb 2020 23:42:05 -0800 (PST) X-Google-Smtp-Source: APXvYqyUCRcM1y7jYm7x6A1MNGdYMNaxMkCP9ngs1tJYGPvYVXaC7HUDiFR0C9iDaAoT2wcys7hu X-Received: by 2002:aca:e084:: with SMTP id x126mr9001320oig.97.1581925325429; Sun, 16 Feb 2020 23:42:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581925325; cv=none; d=google.com; s=arc-20160816; b=StXpsq750wmP9M65X0JhRv9KTTo77clPR4iAj2Ww/ynjGv/AGq7iPwAfNpX8l0OTB1 fdDMeQmw6jnCA7+Znxgz+V561dRcbqRPf13eiUTaiXLJucMs4aPieLQk45noc/aqkl5E VsMCCuRifOcvKoxa/F7aa5R8ANd0EJOGELppWI6QNZ/rgiUWpTZZRmqU4m/0OXwRQxZJ QhmAkKj8El42Nt708AuLFMlMifgpxbjPMbXL9gG42YqeoKAbnlPxfTW8FhtTD87s9YnB gYqgKcRPxM8hCNUSJg3758+yC7mIfmolCb+nfuuy/Tseaw30sVpZbwec8JZ0kIcbfLDV SK1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=abxryfDJ4zZTiBKELPVWsYQ+jBXFWMT05A2guhWKj7A=; b=FHBb7sQvObvKlvT9+q/Lp15hwn8aYJtZy8zMDYCvZUl034MQUHoMX1LgUGHtgAs5k4 n4bBFV8RoInHRMvcleXlvenjg9AjWZgmX2t1w7bh1yipKK6GRiDHMu8T4oT5JU1ouU/r FXaoFxqE16Rqof6pEwc4DRPXMsZ78/ND88YZPh4xQ9wBSCsTBFyCGbj+BRV/yg/UPuBX XELkNXvW7nBAVJIPyV1cmylzWzS3lErZh3wjpv/egwErxXkJMSJPCyaq/kD1M1L0eUoR qClAXX31TvtT+1XJ3UPTn+9P3b87WdG2CoBHLW+5kQz6bm+q8FmWzSsW7DCLxjqrd3Np SjtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h139si6026394oib.85.2020.02.16.23.41.53; Sun, 16 Feb 2020 23:42:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726620AbgBQHlk (ORCPT + 99 others); Mon, 17 Feb 2020 02:41:40 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:52811 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbgBQHlk (ORCPT ); Mon, 17 Feb 2020 02:41:40 -0500 Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=localhost.discworld.emantor.de) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j3b2B-0007Cj-4F; Mon, 17 Feb 2020 08:41:39 +0100 Message-ID: Subject: Re: [PATCH] ARM: imx: build v7_cpu_resume() unconditionally From: Rouven Czerwinski To: s.hauer@pengutronix.de, shawnguo@kernel.org Cc: Ahmad Fatoum , linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org, Lucas Stach Date: Mon, 17 Feb 2020 08:41:37 +0100 In-Reply-To: <20200116141849.73955-1-r.czerwinski@pengutronix.de> References: <20200116141849.73955-1-r.czerwinski@pengutronix.de> Organization: Pengutronix e.K. Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: r.czerwinski@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shawn, On Thu, 2020-01-16 at 15:18 +0100, Rouven Czerwinski wrote: > From: Ahmad Fatoum > > This function is not only needed by the platform suspend code, but is > also > reused as the CPU resume function when the ARM cores can be powered > down > completely in deep idle, which is the case on i.MX6SX and i.MX6UL(L). > > Providing the static inline stub whenever CONFIG_SUSPEND is disabled > means > that those platforms will hang on resume from cpuidle if suspend is > disabled. > > So there are two problems: > > - The static inline stub masks the linker error > - The function is not available where needed > > Fix both by just building the function unconditionally, when > CONFIG_SOC_IMX6 is enabled. The actual code is three instructions > long, > so it's arguably ok to just leave it in for all i.MX6 kernel > configurations. > > Fixes: 05136f0897b5 ("ARM: imx: support arm power off in cpuidle for > i.mx6sx") > Signed-off-by: Lucas Stach > Signed-off-by: Ahmad Fatoum > Signed-off-by: Rouven Czerwinski > --- > arch/arm/mach-imx/Makefile | 2 ++ > arch/arm/mach-imx/common.h | 4 ++-- > arch/arm/mach-imx/resume-imx6.S | 24 ++++++++++++++++++++++++ > arch/arm/mach-imx/suspend-imx6.S | 14 -------------- > 4 files changed, 28 insertions(+), 16 deletions(-) > create mode 100644 arch/arm/mach-imx/resume-imx6.S Gentle ping. Can be found on patchwork: https://patchwork.kernel.org/patch/11337147/ Thanks, Rouven Czerwinski