Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp319111pxk; Wed, 2 Sep 2020 02:06:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrreem7fTA1D/RH1GMOSPc/nVUkUAY9TrKDMG6xU/kLwWAU/W3V4i6/lTVGL75x08zJpA1 X-Received: by 2002:a17:906:da19:: with SMTP id fi25mr5217031ejb.405.1599037580910; Wed, 02 Sep 2020 02:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599037580; cv=none; d=google.com; s=arc-20160816; b=VAsUUGEMLk8DMbPfErdrKtsL8guTzXy90VBUIww6cNmkLaxD+7mRukQJNGcW8R1Qvv dIXqWK8NfZukK9JNAKHyKMpsN20ZovNJ46AP0K6E7UzMfgaHOl1dr8Fk8UCam3kliGUQ BJ16I7yU6986UxP6veVfkwUJIa/Q4pdD6286LgomBlLwf01QaRKmdsV5UnHOPKtCJhmD pQ+MvP0NY/TJ3L8akBjoB8uSgsTQxk5NSbqYP/sAUI+EivP7lyGBvciZOcN01awjQYFv Jr9I4HLBNG00Cl8VPm0vII2EHs1R0QQ6McCYqy+HYzidUhLQze9Mszoo3H/Id+Af2eIy xKmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HJzUeSF+5rfhIEqW5Y3fudwXDrc2+BNzuQkwiBNzFL4=; b=nHKscL5vviLK6+3ux4SDRwvQJRW8C0LbBdKiCWBI18A+YdqLpm8/F6jLGJjr/Elong N/wupQEpc1n7iMO9x9PFNnRhzRBarhG8UYdEcf/VxSMMRAJOsXd8LPGGLNhAj2bSESJ0 pDYL8nAArEwh3+LuMnc31CUund1+oScOiEQylPa82Q6akRvTb16cok5Pvxauv74U8wPk hcf1nSUlGai/dQzQBhTLLM1lVU/6G6lVvtU1wVBXy8iUtQzVGWXt3J01449Su9jf7HgJ 90RRbPKC5nokwcSU52GnYQbqdSKp9PFXYrlAQCO6q01gJUJ17n2F04Aatq3cHRnTQ3Qk uyTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WQ+kQwXp; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj3si34643ejb.728.2020.09.02.02.05.58; Wed, 02 Sep 2020 02:06:20 -0700 (PDT) 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=@linaro.org header.s=google header.b=WQ+kQwXp; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726933AbgIBJE1 (ORCPT + 99 others); Wed, 2 Sep 2020 05:04:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726770AbgIBJDy (ORCPT ); Wed, 2 Sep 2020 05:03:54 -0400 Received: from mail-ua1-x941.google.com (mail-ua1-x941.google.com [IPv6:2607:f8b0:4864:20::941]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC4E7C061245 for ; Wed, 2 Sep 2020 02:03:53 -0700 (PDT) Received: by mail-ua1-x941.google.com with SMTP id v20so1341416ual.4 for ; Wed, 02 Sep 2020 02:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HJzUeSF+5rfhIEqW5Y3fudwXDrc2+BNzuQkwiBNzFL4=; b=WQ+kQwXpmiMbmM++3SGStKdu8DfotRMOpqrwA5q4bHtdJy9QMoEuJc5j/DKPN9esfh TQnNtWcPdvtjlOGXk6lMbGAWO97Q/B3oTIbShRS2KU7mN9bF8pwNxjqtEEOpNgKeeSoF 5vPV4E1GH8dyf6dZN4nLeM4NYT2aVDd9zvoKiIUgsLohC+8JbQ22SJbx9wnjSbkj7xL8 JsM/O3Q//97AjUOmNmXAzlIbuCSjbi/qQVWHYr3mood8wfSt8Zo60+0PYH3nWBUC9yct FTmh/ZE20RiJD40hlQlzblmlJbQWUdiyrAwwuV/0mkrVPnqhO7ph2zS10dQORe/iAwGQ yyxQ== 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=HJzUeSF+5rfhIEqW5Y3fudwXDrc2+BNzuQkwiBNzFL4=; b=F4AILCrBSYqLgWj/asO21z0WUzCpTKMOTQBOLKEW1tgVK+B9JSWia9Vz0xvIfHCiqi XAARtX9seO4ziZ5/kq0CFDhM7A1p6OAp1/l5ugwKHsuYsbPNEYV2D/cq7lh02DC1z6/L kAgktFaDIsrFwU4PYwnondh+M1tptFe0P0cXpSyyX4oYkxh5RIm5GydqMpbYRYIUdWyi U+ycFdP9aMjp7ZRM+B/bP2CehCJN994goXUXsuaYLPMmLr7xNe6Ro6FqockyGI5+iIid jSU4jJ1mhTAFfakXRN9B9aIpmv5kVwHk115l2nd0Fz2/xSgF0EPsoiYbXhHW6bnePBY/ uMqw== X-Gm-Message-State: AOAM5309p/Fzk6v7DXhfBqrupHnb0zUKuORAP9yAq61GwF80Dm6xzqbh Gr2r0mDIVnnnt0Fb4+LQtQd1FnHLl+XLNdcYKHvMZsbQi6RjiA== X-Received: by 2002:ab0:2848:: with SMTP id c8mr4291207uaq.15.1599037433179; Wed, 02 Sep 2020 02:03:53 -0700 (PDT) MIME-Version: 1.0 References: <20200831102324.12566-1-wsa+renesas@sang-engineering.com> In-Reply-To: <20200831102324.12566-1-wsa+renesas@sang-engineering.com> From: Ulf Hansson Date: Wed, 2 Sep 2020 11:03:16 +0200 Message-ID: Subject: Re: [PATCH] mmc: meson-gx: use wrapper to avoid accessing internal vars To: Wolfram Sang Cc: "linux-mmc@vger.kernel.org" , Kevin Hilman , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , Linux ARM , "open list:ARM/Amlogic Meson..." , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Aug 2020 at 12:23, Wolfram Sang wrote: > > Signed-off-by: Wolfram Sang Applied for next, thanks! Kind regards Uffe > --- > > Only buildtested. Found while analyzing retune-handling in the core. > > drivers/mmc/host/meson-gx-mmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c > index 08a3b1c05acb..a1db8685e30e 100644 > --- a/drivers/mmc/host/meson-gx-mmc.c > +++ b/drivers/mmc/host/meson-gx-mmc.c > @@ -521,7 +521,7 @@ static int meson_mmc_resampling_tuning(struct mmc_host *mmc, u32 opcode) > val |= ADJUST_ADJ_EN; > writel(val, host->regs + host->data->adjust); > > - if (mmc->doing_retune) > + if (mmc_doing_retune(mmc)) > dly = FIELD_GET(ADJUST_ADJ_DELAY_MASK, val) + 1; > else > dly = 0; > -- > 2.20.1 >