Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp865417pxk; Mon, 31 Aug 2020 03:27:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgAorMVp4ML29GL+tYYvSGfWp2Fam+ZftiwmNi0HF9/MDLo9HVA9vjS0NuL+EKG7zSJAeG X-Received: by 2002:a05:6402:6c1:: with SMTP id n1mr557953edy.215.1598869675681; Mon, 31 Aug 2020 03:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598869675; cv=none; d=google.com; s=arc-20160816; b=iFJtDJKZD6Gd1nIPdV9Xc4Xh+eoCcJtqTM293YQExkME49B2DDd1qWD6Z3QwxOt5qY zcvpqS39of3OUNDHvmVlcCh6Xcp1XUD0lNQ11ZXlGAuVktd7X9rMc7k9ZWo6I4FAXM23 0FYpEbHpJJ2OtIaoPxP0YJDInxTxiynlyjMmBJ7RvIU4XpjLLDB+TAobfTK+oKBI3u13 eiAnSF01SUKZPlNRLzZ46NaVVgwDeeES0qhipcTYyOcw8lbpCQ/XacF9WrecyNwFJ4bw 6O0TAZosfh3jq86sDFCzAnzAPcl3axREY+n69cmlApJjkE0ZGX8mK+8Ih003VoetFjjw xkVg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=OXRtK4Oh0MO2A0KCyWhYDPvMOom54IAE8pwj5yRa/yg=; b=VqKR2w0aYZYnqN3H0E54SwvGxFAOl/9u02vM8U4Pa90YxSX4Mc4DX/cugWbqGJhRSC OFXX7d+BWYBad6L6HW+ZSBSGy4kg5uGwZRTCoe167Vlpewp77BDfvNcPIODZbVP9hx6n 7vbtI4Ci9+QHN3GfBJmLIrMrMpuo7J9042Qr4kQk7EXkNHSu+5p5qE2WOKuKajDe2t54 Ndcb52iZ2uvy459DelgU0vK2WJ3uKK/c4hw1/e2otfgbeRjLIkEYRRq6U+Wj46tCexe8 nQcsdt6XTin0onjZPfD9ULeAiQvDBvsc3kzcXEMQq1fs5ss/wy9wAlOfJdcr4cHbaJe7 7OnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=VlGF8Dyf; 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 pg3si5206795ejb.388.2020.08.31.03.27.30; Mon, 31 Aug 2020 03:27:55 -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=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=VlGF8Dyf; 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 S1726144AbgHaKXg (ORCPT + 99 others); Mon, 31 Aug 2020 06:23:36 -0400 Received: from www.zeus03.de ([194.117.254.33]:52022 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgHaKXe (ORCPT ); Mon, 31 Aug 2020 06:23:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=k1; bh=x7BLqfeBv4SVfp/Z3lCdLtNBlM9 KlpCVEwpWsY/Z1bM=; b=VlGF8Dyfb6w3101nYq228QatW4dE6O/gJFNRxgcqz/W sIuiIeAF7DR9UnvlQefDubd+G3ekylDnwds1Mj8esZ1dwHDMJ6BnMJ9cOf/jhwYg 5Gr9BbFD4WG3x99Pbv63Re9BDBPkpErqYIja5HAYb7l+6QpqLquBpqZOeIIwG7LU = Received: (qmail 2082363 invoked from network); 31 Aug 2020 12:23:31 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 31 Aug 2020 12:23:31 +0200 X-UD-Smtp-Session: l3s3148p1@6ABXyymuhM8gAwDPXwczAOmbI0TU8LCu From: Wolfram Sang To: linux-mmc@vger.kernel.org Cc: Wolfram Sang , Ulf Hansson , Kevin Hilman , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: meson-gx: use wrapper to avoid accessing internal vars Date: Mon, 31 Aug 2020 12:23:24 +0200 Message-Id: <20200831102324.12566-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Wolfram Sang --- 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