Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4493310ybv; Sun, 16 Feb 2020 23:52:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwXE8meTidVAG/SGHXYy6Kq0j9BypBVJ9P/bacyx14FDXtuNzM0xQu3RJZfYBeAxM5nM28i X-Received: by 2002:a9d:53c2:: with SMTP id i2mr10528566oth.43.1581925964935; Sun, 16 Feb 2020 23:52:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581925964; cv=none; d=google.com; s=arc-20160816; b=gBKNeT8s42E39i+MXZN1ks+B0vPe6/hRxVXEUkjfvES2B1ehhpcU59GZP7+7s2E20n vnitXu4XAxvuRvK1NhExT/+0JRDIMmfPzJn2bqLaQ62/0C7+4q+Qt4C8HKHI8m/wHZei IVRitD/r+A8eh5yn19sVfvRR9MeE3bD0cde/chvdwNZmkVWaOZp3TDebImYrYd8Ekc8D gtM4Ay3v7cP4eHdsbxH62e5clpLur3Qlntft4nq0blQ3oWKUQ9dem8442596qAdgGbrB n5yAv2PUtxLqG1QeS9t1G+IG2tDwoYD1Zqwkji+Ohk5i8G0j62SVxOEUAEyheaPLTBoF zlTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7Hy2+70oGcPkPuKq2o9fePZNimZ6ix8bPpHlUNWAcrg=; b=GqBSVogffenJGlNHWb0VaHrexHyg/13nEf6fSF+YnEFAXfdqvXl9kXRw+eAzLJ1Ybw jvjXdTA1+Xl8Q5AxS51MmGF2E1HZaHwZmDXDjUGqYsRyv2tafaFJKvr9gPDNxUiaFO34 bdorO0o23dl9W6ieqEzl2zoBouRKl/wLa04P/8rZLjLyQgVdx9IiBWCEp+AR7SRltM0E FHMO9lcNwtvBfDBilZJABmQXvz2bu72JSwS2kIPb/Pd8UWnO1EqZoWbBbOdWxbLpukwq dqt7EnLyFqHQiPi8kmJseQyrvmoAGH/VCJya+UDLhml1fp+NtTTXZgVJBNLfRGkIdF3c HsUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VcpjNiN2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si6354884otk.154.2020.02.16.23.52.32; Sun, 16 Feb 2020 23:52:44 -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; dkim=pass header.i=@kernel.org header.s=default header.b=VcpjNiN2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726704AbgBQHwX (ORCPT + 99 others); Mon, 17 Feb 2020 02:52:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:42960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbgBQHwX (ORCPT ); Mon, 17 Feb 2020 02:52:23 -0500 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E00BE2064C; Mon, 17 Feb 2020 07:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581925942; bh=WkTrSJpzAK3eiaSApQ9z6T6eUIIFo891pxQZAK31cBY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VcpjNiN2GgZYOCVS48zBx/z1afRs4VsiAcjYT/+MFfF1vstYBh6FJzghxoWOs0vBN GuohSp2aqk6a/FTZuXyGIi6lan16aZv86HePDpEDVdUzESEj+IH5+4NP/3z1RzL/A4 tLaez1DV3cWF43bgLYpSKfrwHClwlEAKcQ4jVbIM= Date: Mon, 17 Feb 2020 15:52:16 +0800 From: Shawn Guo To: Rouven Czerwinski Cc: s.hauer@pengutronix.de, 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 Subject: Re: [PATCH] ARM: imx: build v7_cpu_resume() unconditionally Message-ID: <20200217075216.GL7973@dragon> References: <20200116141849.73955-1-r.czerwinski@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200116141849.73955-1-r.czerwinski@pengutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 03:18:49PM +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 Applied, thanks.