Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4231494pxb; Tue, 26 Jan 2021 16:28:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAUpDIHYp/2zgG9055FBRKS/K+e4kf5jpLLvd5qqq3+pH6n6Gzvu5ymtbX2y1phjf4eYh1 X-Received: by 2002:a17:907:7252:: with SMTP id ds18mr5109354ejc.239.1611707285851; Tue, 26 Jan 2021 16:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611707285; cv=none; d=google.com; s=arc-20160816; b=x41VhV3V/BJK/xNnbyK8EQCGolRKjGZKds+CPwFOFXgRJyIr9nv6M90Lit4Mm61g0D 4CMpJ+Aw/pZooFnEnpVZNHRWiPIrUrZG6lGmb7oR29in3h2pKVf9Alf2h34YWfvQ9eHs MvejotQG6kOEZA+SPSQuY/dGamN8GuWSUzbYZwn1KlyKXRtV9yF9lLsA2eibj2DpgAfP 4QCD8aKgdfSmREkNcJzR8q+26zbH4Rfn0vkfDtcjBpJFZWUTO7hutR66QWH130tP35iw 7xbBLIO/0JBnARJlNF0mgGIX9N6vSEdR9fVmXJW2a/utlgoDUUGWnSZXZmQC1pghLjy5 wMKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=noF668HAsWh6B0PaJj016gYYJwQjDmvicFCMUsI1bRs=; b=sK4NqU8BXtWleGffpF+Qr+F21lFvHTixMowKNTZWs1R7qx3g0IoZLjL5AQ7wDfxeX+ dE31iJqOX4zNElvhkLz8oYsmkStvNkZFtx0e0jHb6O+teIc3foIIgXKMzbsybW5tL2O+ o4OzLFcxV8F0wWDEMcpUBXWfv4oWTw99hCfeA5deLKthPUvKPRG5qMz/Zlg7TyuFVDQZ 7pEkblkgEliKTCSKcuEGzEnTvAzF1QOQax9yfrP0UBvmUAjzutR0fRCUyQ0uf1dVw4hs 4WOsc5MMH+iyUOIbcuOcLmDfQjOCl1+YlXcYcXPtPd+qyvrAtAYuagih+ikdBV2yPTa+ 2dIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WMl7Lx+t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p63si120156edb.24.2021.01.26.16.27.41; Tue, 26 Jan 2021 16:28:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WMl7Lx+t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389779AbhA0AIs (ORCPT + 99 others); Tue, 26 Jan 2021 19:08:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729030AbhAZRCV (ORCPT ); Tue, 26 Jan 2021 12:02:21 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2447EC061797; Tue, 26 Jan 2021 08:41:33 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id u8so21718920ior.13; Tue, 26 Jan 2021 08:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=noF668HAsWh6B0PaJj016gYYJwQjDmvicFCMUsI1bRs=; b=WMl7Lx+tGgX1ACuDlJqnbk7pSgwknR5vVIotif8GTeGjyVlBzSBugNcr64RgctAwr9 v1AabNcsA/9o/vsGpjPwAmOcIlACM7EOJ7fDxtdoWgJRsQB2xuzxMfOi6EUZcA/kBGJJ nEME2Am+VidBBh7RZ1QTb/gA9O0utEm+S5atCwIePPNt/Xw+PPub3TRx68OJKYQ1VctT BbclNtWv125e4ZjjWkTCyfGIKkINBr9FKGRs9Z+0oNHOBBiZUcUcwNppljJkdSuW4sRx ZRmzo6PSit7Uki39Og4DHZVnPx6FJNIUDG1t7rabkFX+8exi6sDOQcyFv4fYQa9aoeUf Hyig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=noF668HAsWh6B0PaJj016gYYJwQjDmvicFCMUsI1bRs=; b=WxG/0aM32L890XnmLhP/nTbyahdqfJBtBdZygLUl0oCR6Z92IfmlxcXfNlgziP7irS lR0kel6JjiyYGLy365FI67rsBd6NnOIBVFc63l3pAdHQCNh3OuRo74NPC0oqlYUhSKIc 4OGcwZ+iCPE6eug6jcFL8wA9+O2DE+t22w19rxtID85+scGLhyVS6rpblSP7072BnXrL KIjyVeG94OHNvp2t4ecRnrAwS/l/QqqiVn3HRdJrjisBJaee4+r0xuMbJo2uZoR9K8E3 Q6F8enGUQkMAILvbgYxJvyRkgQbVVJOH7FC7QoZHSrTy+GBNGiye1xvHPULG2JBnxTVU YTVg== X-Gm-Message-State: AOAM530Q1CHtGG7SvNMfjgdzCKnGm6NGRXISLyeJ865dY/JxRZ1ne7ni 16V+ducQ/tfBoYviBCqb1dKhULPjHp6DA2+eigw= X-Received: by 2002:a92:bd06:: with SMTP id c6mr5474781ile.158.1611679291832; Tue, 26 Jan 2021 08:41:31 -0800 (PST) MIME-Version: 1.0 References: <20210125125050.102605-1-arnd@kernel.org> In-Reply-To: From: Alan Cooper Date: Tue, 26 Jan 2021 11:41:20 -0500 Message-ID: Subject: Re: [PATCH] mmc: brcmstb: Fix sdhci_pltfm_suspend link error To: Ulf Hansson Cc: Florian Fainelli , Arnd Bergmann , Nicolas Schichan , Adrian Hunter , BCM Kernel Feedback , Arnd Bergmann , "# 4.0+" , Douglas Anderson , Krzysztof Kozlowski , "linux-mmc@vger.kernel.org" , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I just posted a new patch for this, please have a look and test it. > > Kind regards > Uffe I tested your new patch and it works. Reviewed-and-tested-by: Al Cooper Thanks Al On Tue, Jan 26, 2021 at 4:55 AM Ulf Hansson wrote: > > On Mon, 25 Jan 2021 at 18:40, Florian Fainelli wrote: > > > > +Nicolas, > > > > On 1/25/2021 4:50 AM, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > sdhci_pltfm_suspend() is only available when CONFIG_PM_SLEEP > > > support is built into the kernel, which caused a regression > > > in a recent bugfix: > > > > > > ld.lld: error: undefined symbol: sdhci_pltfm_suspend > > >>>> referenced by sdhci-brcmstb.c > > >>>> mmc/host/sdhci-brcmstb.o:(sdhci_brcmstb_shutdown) in archive drivers/built-in.a > > > > > > Making the call conditional on the symbol fixes the link > > > error. > > > > > > Fixes: 5b191dcba719 ("mmc: sdhci-brcmstb: Fix mmc timeout errors on S5 suspend") > > > Fixes: e7b5d63a82fe ("mmc: sdhci-brcmstb: Add shutdown callback") > > > Cc: stable@vger.kernel.org > > > Signed-off-by: Arnd Bergmann > > > --- > > > It would be helpful if someone could test this to ensure that the > > > driver works correctly even when CONFIG_PM_SLEEP is disabled > > > > Why not create stubs for sdhci_pltfm_suspend() when CONFIG_PM_SLEEP=n? I > > don't think this is going to be a functional issue given that the > > purpose of having the .shutdown() function is to save power if we cannot > > that is fine, too. > > -- > > Florian > > I would prefer this approach - we shouldn't leave stub functions > unimplemented, which is what looks to me. > > I just posted a new patch for this, please have a look and test it. > > Kind regards > Uffe