Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1295770pxk; Mon, 31 Aug 2020 15:34:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzj0TLPjBMsbvVIC1ZasTMSYJmkqf+m3OXUSzUt1Ztq6oDy6rpNhbtQWLPvDGcyAkTjCF+n X-Received: by 2002:a50:bf08:: with SMTP id f8mr2958479edk.207.1598913246776; Mon, 31 Aug 2020 15:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598913246; cv=none; d=google.com; s=arc-20160816; b=U+SojIxtA54VBFPadqsxwc0Kl28w6wwURaO1cS/QXxMSRs9FVFWxkDg8eT5tVHq6/s lQ9GjorE9c95Of0ftgtmQDQVsMCRTsOgOB23JBK3QRNhO7dbIA1256kL8QTwgPkzTqbI SKRK9yxAWfJfIA9t1UnAI9s0Xzs/tVLon5llcpFjsys1JkICMb9i3blQDoR7efqXk36x jkmotAf8neDfAKZKdE0oKUopUVBdzFRaXMc+gUrIlA8WDP4WMSDoyaPWDluGkL49A0TH bhGk+JJHUxNazYwwuo5BQXFVJW/7Ay9dJvB1cdWg7Y1p+n2Jf5BNg6uCz2obbG4ESnZJ CRiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=PaGS2uzZD7Kro0ekXrFmFn9ksemHuyaMEDFaP9+HbTs=; b=ek+s8iwUMO/x1rRUWkb6jLBtFPHck2aNemufFK9Oca0trcGZEptK7Z8QN+2p/PYjdE SGSdY844PW0NtQIIyNYrV8Bj9QCfBgIE0Dp7kGR8nwxk0rxbFqbzA8ZSMPaQiAdQF1Mu VaD+caVZY79SzN9R3b+9paSsvFQpQwxP/THgyAMpQhZctM5YdCd0tomeD7wq+S8GIhx+ W8pCN0/XizzOTKgyyMLirG70nrPfQrA2zlNyYRWGai1+qZhoD+Td3Vv8ljgs0WJnaNNb 4Oa1QYPH90UWa/6a0TSSDm32MCENX5JaKjpyhSbIfevBh4s2HESNkseBeGGsjAma2Gx1 D2ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=T2KW9+cb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id en9si2220403ejb.220.2020.08.31.15.33.44; Mon, 31 Aug 2020 15:34:06 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=T2KW9+cb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728333AbgHaSfp (ORCPT + 99 others); Mon, 31 Aug 2020 14:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726174AbgHaSfp (ORCPT ); Mon, 31 Aug 2020 14:35:45 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E351FC061573 for ; Mon, 31 Aug 2020 11:35:44 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id np15so352592pjb.0 for ; Mon, 31 Aug 2020 11:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=PaGS2uzZD7Kro0ekXrFmFn9ksemHuyaMEDFaP9+HbTs=; b=T2KW9+cbq+bqJgzBohyRO9AXZ3t79XlryYl2YWgCmE3YqwFUr81ry3FUWcjyJVBn2p xjUiO7MYKO0Tw2gcFcTizQ+dODXK/SBA/KJoFX14hCv9TfWUpeCFG8aMapGwzAQzQ/jC CUxdbq35dkUogDSODZNByRWqf3iSNZL4s+x/7gdWYV4MO23W0Bqllva69SV6xWeoO1bW AoeECFKdDvFuMr1sobC9HzMtIWYkGrNGudHSNN/e/cXOkz5RJ9ypvz5zfeEc8uX6cXfH xf1+FbWEUCOlvRUfKptkUNx4keIbYJlo65lPoprmtXsrrdyMhf91Dq6Q82Mp3bsvfIsM 8WaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=PaGS2uzZD7Kro0ekXrFmFn9ksemHuyaMEDFaP9+HbTs=; b=TZp/W1o8AKk7T6wxxVMFToFXyhNChQVhd3JQQGCzcRZCyHZ+JdATrM91fSaRCk6QoR CG3dcU6ziRpUHgOEzBYODqrveDC0Vr6Bz+n7KQYSmzwviDsX7ycrXFH/Vj/8TcgN51iP qJdACxROZga7/kYayQWrRG6+Hf8164K2KvIEU89sAJtnfnr9wSwt+vw6N/J2aFgzkbHS lcRTvKYyoq927Cne7UZQLL40aJFMnLC/S1yJFEYoBtdgghGQVxjM322pkS+wp39pDSQH 8lf6T1B7h/qZ/UGWh2Oy8rWXRpLHTbttG6XQHSc5ZojVfbAsIrEcsMY59+YDcX0U/3KI WucA== X-Gm-Message-State: AOAM533067fLPmezfQqV7lvW3X4YprM7Knk+OyPlX9jyyIErir78OJJf y/wf7NZqbf66bEn2TALfAZ4iaQ== X-Received: by 2002:a17:90a:764d:: with SMTP id s13mr611974pjl.58.1598898944292; Mon, 31 Aug 2020 11:35:44 -0700 (PDT) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id y1sm8088311pgr.3.2020.08.31.11.35.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 11:35:43 -0700 (PDT) From: Kevin Hilman To: Wolfram Sang , linux-mmc@vger.kernel.org Cc: Wolfram Sang , Ulf Hansson , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mmc: meson-gx: use wrapper to avoid accessing internal vars In-Reply-To: <20200831102324.12566-1-wsa+renesas@sang-engineering.com> References: <20200831102324.12566-1-wsa+renesas@sang-engineering.com> Date: Mon, 31 Aug 2020 11:35:43 -0700 Message-ID: <7hv9gy7jeo.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wolfram Sang writes: > Signed-off-by: Wolfram Sang Reviewed-by: Kevin Hilman > --- > > 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