Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1361020ybk; Sat, 16 May 2020 08:52:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf68NmqXUb+m1BLUTxKjG1Wyx/Ci3GaqXphgpDzSHn8XuEf44T10cKcB5en7QUiq7PUMO+ X-Received: by 2002:a17:906:9249:: with SMTP id c9mr7557255ejx.173.1589644376166; Sat, 16 May 2020 08:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589644376; cv=none; d=google.com; s=arc-20160816; b=bGy/q/xDWUz/ehotw6SUDJIY6Hiu8ZeJprjUiMopRyA2yBrHwuWz3PQnp+iSG7Kucj jIU0CXguQgoC6wY8ABM2/P0IQG/ZdXmHP67N2FPrR6Q7PmAzPLp0xhq6Y5D5r6zyMPVV vihhevipgokvnaA9Dij27+GSo/nG7PDDJLUyXKEf7ZfZaUMevdblQWxcDYxVefmZDiXs RQwJ9RGDpSRWrLLQWR+DzVT8IRf9/YPi21dpdE4CCvoH4mgAbE01c4e/NOobgA59+PVd uD8Yl6iZ6SB8SNMrxoKSBthHmlpyuXgoGah0zt77q46gaOjaAjv6ujN+/InNjq/cqhuc cRRQ== 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=v/VX1vyjPaZkfuYoHi0upfiopwVhKsLaoMAnz354uIg=; b=aVPqI7ut/1cJhFg45qTD5C5IkZ4dmQVUdnyJBmqomAz5oU4CQMW0sJ0e40DEGVfWdm ALjMzJyj/IWT/ngmRFp8w2eS/G18+zFwOsTC48/w6uhqEiAsEhOuZ3uhQr2nB0ECvci1 b0mznRnNRMMyi+JSSRSw6HlO+DN8Yu6G4iVENfhenQLxVh4BtkkDzsmRgtHT/hcFQ8DH i7GgadpCqhoxNnyEsPyvtro0lsEd8avRfhG46sKsaIqeawF0ur+066WG68Q7gw+eOd/F L20/emLqDZzVgVp9r1a2yen/t2XdrGaKaLh1+DCdG8sABR5OrYc1Nykedas+6Zy2VDs5 M8zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e21cNtvc; 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 qk12si3598972ejb.351.2020.05.16.08.52.33; Sat, 16 May 2020 08:52:56 -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=@gmail.com header.s=20161025 header.b=e21cNtvc; 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 S1726283AbgEPPoV (ORCPT + 99 others); Sat, 16 May 2020 11:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbgEPPoV (ORCPT ); Sat, 16 May 2020 11:44:21 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EB58C061A0C; Sat, 16 May 2020 08:44:20 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id e125so3556484lfd.1; Sat, 16 May 2020 08:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=v/VX1vyjPaZkfuYoHi0upfiopwVhKsLaoMAnz354uIg=; b=e21cNtvcbU9P2bVOYcM0XDuiUivXQQzLsTpXzYYxIaoehSCHurHfJOJpaitIaVLIRR hq3nIN0eCqTI2ngL/OS4FNmXTEHRvDuCLuU9P0FcmW5cTS6rPf0IOHdbmKAdHyixOLcQ 4tcQvaNEF3noc5bh+KDSSGmlT7JEb5Uo7g2ST6mXkQPQ1q6pX/bJfjLAOeIMaqupUl4g gF8sNbe2/rixQ9tNSR6Ia0PptW7K+HMRlM6Cd3aQDPBMa0k6/jtWZGVvMZ2PgMQbYGrc /jXetNJiuE1cHqSyVZ2+Yvj3Q2x4aX5ZcREANi2TMuZWztanfSWT23dxZmebeoAxF3eY RvGQ== 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:date:message-id:mime-version :content-transfer-encoding; bh=v/VX1vyjPaZkfuYoHi0upfiopwVhKsLaoMAnz354uIg=; b=Ud9JD+GH0IKbuR+9hwA0vtg85/Le51cwdas+qbDIAIMxSAwH5iSsBhBg7g4//StahD DcZZyq9gj8AZLlqBA59F235PY739Ub9htgj+wqPffdgDd6XA+O4hjZgcgL8f5l4V+9EW /njTa/HSjPo5tg44XxENfP16FhMnDYDG1orR6TWce0ESj3qOZFBAA4ty15eohtCMW4ys /BW9vY+bYwVSjyI0OPPLHFb7lrN8qu5MXTV4LVL55lNo2BerrYxJbKi0gH93EKlFMAbO pJyYWp8r44hHnmkV7exkFmDBo2rEo6W/wwREonNdRAmAnExTj9eDU7cqHOu858kuxTZC Cigw== X-Gm-Message-State: AOAM5319Qb9oWNV3WeN54QIiAOquDO04a5Q7lVqUCrq86A8Lqvl2/3Oc tEUaSKl/X+jpkO3KmrRz3Mg= X-Received: by 2002:a05:6512:44e:: with SMTP id y14mr5963865lfk.190.1589643859115; Sat, 16 May 2020 08:44:19 -0700 (PDT) Received: from localhost.localdomain (ppp91-78-208-152.pppoe.mtu-net.ru. [91.78.208.152]) by smtp.gmail.com with ESMTPSA id h3sm3399288lfk.3.2020.05.16.08.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 May 2020 08:44:18 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Adrian Hunter , Ulf Hansson Cc: linux-mmc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] sdhci: tegra: Remove warnings about missing device-tree properties Date: Sat, 16 May 2020 18:43:14 +0300 Message-Id: <20200516154314.14769-1-digetx@gmail.com> X-Mailer: git-send-email 2.26.0 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 Several people asked me about the MMC warnings in the KMSG log and I had to tell to ignore them because these warning are irrelevant to pre-Tegra210 SoCs. It should be up to a board's device-tree writer to properly describe all the necessary properties. Secondly, eventually all device-tree bindings will be converted to YAML, which allows to validate board DT files, giving a warning about missing properties. Hence let's remove the noisy warnings to stop the confusion. Signed-off-by: Dmitry Osipenko --- drivers/mmc/host/sdhci-tegra.c | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 3e2c5101291d..83867629013d 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -607,46 +607,26 @@ static void tegra_sdhci_parse_pad_autocal_dt(struct sdhci_host *host) err = device_property_read_u32(host->mmc->parent, "nvidia,pad-autocal-pull-up-offset-3v3-timeout", &autocal->pull_up_3v3_timeout); - if (err) { - if (!IS_ERR(tegra_host->pinctrl_state_3v3) && - (tegra_host->pinctrl_state_3v3_drv == NULL)) - pr_warn("%s: Missing autocal timeout 3v3-pad drvs\n", - mmc_hostname(host->mmc)); + if (err) autocal->pull_up_3v3_timeout = 0; - } err = device_property_read_u32(host->mmc->parent, "nvidia,pad-autocal-pull-down-offset-3v3-timeout", &autocal->pull_down_3v3_timeout); - if (err) { - if (!IS_ERR(tegra_host->pinctrl_state_3v3) && - (tegra_host->pinctrl_state_3v3_drv == NULL)) - pr_warn("%s: Missing autocal timeout 3v3-pad drvs\n", - mmc_hostname(host->mmc)); + if (err) autocal->pull_down_3v3_timeout = 0; - } err = device_property_read_u32(host->mmc->parent, "nvidia,pad-autocal-pull-up-offset-1v8-timeout", &autocal->pull_up_1v8_timeout); - if (err) { - if (!IS_ERR(tegra_host->pinctrl_state_1v8) && - (tegra_host->pinctrl_state_1v8_drv == NULL)) - pr_warn("%s: Missing autocal timeout 1v8-pad drvs\n", - mmc_hostname(host->mmc)); + if (err) autocal->pull_up_1v8_timeout = 0; - } err = device_property_read_u32(host->mmc->parent, "nvidia,pad-autocal-pull-down-offset-1v8-timeout", &autocal->pull_down_1v8_timeout); - if (err) { - if (!IS_ERR(tegra_host->pinctrl_state_1v8) && - (tegra_host->pinctrl_state_1v8_drv == NULL)) - pr_warn("%s: Missing autocal timeout 1v8-pad drvs\n", - mmc_hostname(host->mmc)); + if (err) autocal->pull_down_1v8_timeout = 0; - } err = device_property_read_u32(host->mmc->parent, "nvidia,pad-autocal-pull-up-offset-sdr104", -- 2.26.0