Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2590747imm; Fri, 20 Jul 2018 01:05:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdyR9kLXcZeW9nsL1IoDJr4GXk6cLYypLPEcI/0SWOKJ681+A+XFH5/FzszYEe61aCpBNty X-Received: by 2002:a63:c742:: with SMTP id v2-v6mr1066802pgg.331.1532073946363; Fri, 20 Jul 2018 01:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532073946; cv=none; d=google.com; s=arc-20160816; b=vB/49eEc9lt8Z6rsXjwntEcfpfrldLORtWEwgz+V6ZDV0rFvPYED8v7Xd63xVk2kcS DvgSnCjR5brUlnad/2Xv7BrWNABKrh7loplOgdz4cgyPzEJhv/C/5RkVa/k0XjtNqcyI XfjSHLtz4G70Ycx2kk494+YLmHv6eZspcdmAc47zvk3YPxZ2ztOWkYKs/kVUU4zoEh6I P1SV6mD6kFfk54cd86RVxjWxcroAQMnrF2Nmbqxre9NnalpiTc5lW/rh48AD8fU+Yl5I Ed1vma2kTmsWlsHK9h6Tc9oEojhGKSpNif3iyoxxxYc5ybUPt25CNj/avgLFXs/snjB9 tXWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=cet3aLOLOwTlwViZdjFFpzU/LDp9tR3jDyIl4wk69PE=; b=IP2m3nh+3uaZX11wGA3DPTex+49gYFluIcYjo0ja+ok20sxH0t6WuMKccnbsyqBIJl U1DOSVzzOy5L7WecUS8ixR0tck3YvUTjDTdIIgMAhf1lgfYZ/Pz+6fiTpNvogaiD67nr xGpVyRf91KapooWaK3hqefd+bgJq+91Zor7A2YDm9CpjQ3neJbxKu7/kR0bW7V03Ipwr 2vDIgzhOHgKAJZN6s4obY5UculTtBBrdBCPokL6dNRFfarGLQuiCMUUzlhB7UyIoroMw ndmDVNhCUdUs2eVf1VovZ2xnrYGz4LNQ0o7ZvbVchlszXtJZd+dX3N9Hus84sGzqvNI8 CoAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w65-v6si1335600pgw.147.2018.07.20.01.05.31; Fri, 20 Jul 2018 01:05:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727845AbeGTIvy (ORCPT + 99 others); Fri, 20 Jul 2018 04:51:54 -0400 Received: from mout.perfora.net ([74.208.4.196]:42739 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727201AbeGTIvy (ORCPT ); Fri, 20 Jul 2018 04:51:54 -0400 Received: from localhost.localdomain.ziswiler.net ([89.217.215.226]) by mrelay.perfora.net (mreueus001 [74.208.5.2]) with ESMTPA (Nemesis) id 0MRmud-1fZf4934tV-00SyRn; Fri, 20 Jul 2018 10:04:37 +0200 From: Marcel Ziswiler To: alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org Cc: Marcel Ziswiler , Jaroslav Kysela , Thierry Reding , Jonathan Hunter , Mark Brown , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood Subject: [PATCH 2/2] ASoC: tegra: probe deferral error reporting Date: Fri, 20 Jul 2018 10:04:24 +0200 Message-Id: <20180720080424.31505-2-marcel@ziswiler.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180720080424.31505-1-marcel@ziswiler.com> References: <20180720080424.31505-1-marcel@ziswiler.com> X-Provags-ID: V03:K1:ont/fEOq6Ti2cNWyJh7UAxOMsT+dtNakUjlzMR2TwzPf5d6Keaf MNU7ULd71P23UgBCXtQFW99AIASL5aPtzG1J2Fxb01yCQuixhQ1YQindQXJJkp5V7hn20uE /dOglQdf41A39yQjzuko97qf2bSo9g+yqiWRFlCDMaJCiRhrChICd9uaRVznDRjEXtjVM6U cKxM7SAWtvXwBZm0qTSgg== X-UI-Out-Filterresults: notjunk:1;V01:K0:r1pop4lALAk=:Nz1Wefe8hOC0/IeREgk3jw p6TRSqxpyC+tqMLkLAzCupYlyBbSqSj+8MrPxKogbF+AVyIIc9ohCOnh9hoXKwBF+UswQvMpx rGeHcn5dV4PdySauci4DxvXUJT2Q2WVmlVTy9+asrH5HcVGtQGKv6BnRtbhE0/DjGaW3e/S25 OsN/dqd7ududsE7oO7FtBczdrU58ZIjpmo/EGxncpOLKCnFMRjBjmAlUTKNlsYu7eFn9tIySA K/4x9APQ3MR4OOcqAXD+eZyHY4i19tR7fl6XmAsI7giVyrz6wPBKsrPT+Vs7yddScSi7A1MXh J7kkSBQWZkXmR4hs/FOFMgEXbfbnQwzw3uYlMVmaNzZcyDss8Y3K5VTLqmQZvfB5L+UcX5ybh FMnV4xofTlgnxPK3ObzGR8J1zG9/wEWvpjMHLWbsekhatBj4T4DWbuHfZ3TALxIYG5r21An5a 5Lh3CMHINqKcwsrHQCJ8LVUzvVSD/EytzBuFE8Ehsy6MxioZiLhI7J7jcxLAnf7jZyWFguZlI 3qUFyjraUqT4RkMYKvgvis8KEm4Ev/29w23tuSks+Do0iXQNV9N7QROFO8rXLZtJap3pz0NDP fcMyLD5PFJi2RabZnptSnGUUruIM/Xbu4a3/QPRWeLYNkihSi3/PHaVGtFIs8RJ8IDwekvJ9k 4DaV4E86tgf8e8p7D1jHQFiBO0n5N3US2PNJT/j6QZZp/Xmqebysve97o5xmYwbNKLVY= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcel Ziswiler Actually report the error codes from of_get_named_gpio() resp. devm_gpio_request_one() upon trying to get the codec reset resp. sync GPIOs which may as well just be a probe deferrals. Signed-off-by: Marcel Ziswiler --- sound/soc/tegra/tegra20_ac97.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c index 682ef33afb5f..4875512f0732 100644 --- a/sound/soc/tegra/tegra20_ac97.c +++ b/sound/soc/tegra/tegra20_ac97.c @@ -351,18 +351,21 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev) ret = devm_gpio_request_one(&pdev->dev, ac97->reset_gpio, GPIOF_OUT_INIT_HIGH, "codec-reset"); if (ret) { - dev_err(&pdev->dev, "could not get codec-reset GPIO\n"); + dev_err(&pdev->dev, "could not get codec-reset GPIO: " + "%d\n", ret); goto err_clk_put; } } else { - dev_err(&pdev->dev, "no codec-reset GPIO supplied\n"); + ret = ac97->reset_gpio; + dev_err(&pdev->dev, "no codec-reset GPIO supplied: %d\n", ret); goto err_clk_put; } ac97->sync_gpio = of_get_named_gpio(pdev->dev.of_node, "nvidia,codec-sync-gpio", 0); if (!gpio_is_valid(ac97->sync_gpio)) { - dev_err(&pdev->dev, "no codec-sync GPIO supplied\n"); + ret = ac97->sync_gpio; + dev_err(&pdev->dev, "no codec-sync GPIO supplied: %d\n", ret); goto err_clk_put; } -- 2.14.4