Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3831925imm; Sat, 21 Jul 2018 04:19:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpctiJd8tivrhczjCPkAFFJaavLqiIrzxUhpx5JOQBY0ZAgMo0VOYkdK2Ll8QKDHXr718yl0 X-Received: by 2002:a62:3f99:: with SMTP id z25-v6mr5741001pfj.250.1532171954886; Sat, 21 Jul 2018 04:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532171954; cv=none; d=google.com; s=arc-20160816; b=FaKJjLLlNtlkeXRaZvtoQEo354kVuraBkGuY1h1mWBkCrOclUctghkpfoIcjc9ulzY cGrkwQRSh+PLCPQHYPxhzDP3XF5WZvGgBP4sSKehADFOSGJNcgt49Car882ud5WH36j9 7tMir3R46swBc6l/C/ImCnBqnp4hrSNiR+ItihUT0KVxz7/qdTfjlJbzA7mURsHLQVtI DW/KRCBe/CovACLJUmxU/iDOldMJ57JZ1iker7L42rjacdxhclr1EjiogyQx/y+ubvMj s4JsrSZRFjZ7mJyJ2uzFaMU18YcnGamqrRf2zR9PKnJBuWUuXRNEb3xOFN6aDJ8n1x0F 6uiQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=TFQwbZIr8IkIjYVIuVcqtgW2+x8k/UzqJfdM4uVFoZg=; b=w3E57BRN39RCh1O803A57AC5G8XMDm3w7c7aW4XOre4cGA5gdbxyRHLVzC4sbIVDgB iBTmKT1t+qRuK4CiMA3EhxoCoqzXaFzEtHvh6vePwl5Gvm+EegO6dLPVuk4q19Hz8AZ5 Jr7AdzC2Wj7NDSLc95mHmtxpx9ud1W/8OVlvM13DBPG5Lg7xNqu7BB4697Y/m7hmZYmT 2z85HFylothYvOVaWPYAVLST4siPZBkvpQGZDCmdLhZP9ckdeeAG6FJozEUvDq+bWyl7 cKIJAdU92vltsjRjOCE3c9WFLbw3LjUrwDGzRz5UcF1n0iF38DfcAvw7zu9325AIGxzI bkJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KXQe+xsx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v18-v6si3731766pgl.171.2018.07.21.04.18.57; Sat, 21 Jul 2018 04:19:14 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KXQe+xsx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727628AbeGUMK0 (ORCPT + 99 others); Sat, 21 Jul 2018 08:10:26 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:43580 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727448AbeGUMK0 (ORCPT ); Sat, 21 Jul 2018 08:10:26 -0400 Received: by mail-ed1-f68.google.com with SMTP id b20-v6so11741197edt.10; Sat, 21 Jul 2018 04:18:02 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=TFQwbZIr8IkIjYVIuVcqtgW2+x8k/UzqJfdM4uVFoZg=; b=KXQe+xsx1/jQ7+CO7VTtlYEk+JXoJ1nAOJ2AggvlyydwQhNgmaHjL5BVedhHNBap1+ 1jma+nNIEuWX6eZN9l1wJhFe8hvGAm4a68KeOMMw0ytaIUdNlTDPr0YoQv3+ces/Buwr syU0lLYCpkRXAIWwh1MJWuajUAVDSS5Ue2jpB+vjG2WKL2gkPjAKRUkDAGSWV3eLIr2V X5z53Kr0pC3ccqNdjCJ1AmVMIZfMrAk4OXpEDsy967Bus6tGNTPsL1BdN87hfV4RwHqH 4PkXYDWUYCgXzc8IDXBGyKjvMvxezrLVNgFNAN3HGzNPsxOGQuNOGV43LJ5fRetrCvX/ SeKA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=TFQwbZIr8IkIjYVIuVcqtgW2+x8k/UzqJfdM4uVFoZg=; b=bIeIldOMYNf4arXF2892e2QXOKkGlPw6Qr1Mfyktr1JFpt9zx1S3xIM4hsyuh6Og3I tkecXmiwoT6+O0jPCBml8EmlkbWk4MVzjibQBBmrZWmokRBxQTDrSovu5XsIYU8I9EU5 w38i6CMF8uoYbYeavVic942izzRjukcCYyWh3actQ9e0HTt0YXY4MfOO5+rRCzCx3aOx tFEkPj1WTit7/wCNu1IB0GIGxxvujpkKrsT3aiBLuhM0ialB8Zw8uK19YhAKN4nrdmqS 9i1UAfjQ13YsoJoedAc8F7QwRi6aoX24uQMdHKXctyWxe33cxZFaJLsWySyYf4GhIPAO 13eA== X-Gm-Message-State: AOUpUlFOJ8M6O9tcjewkplgfZ+DX/tiq3kl4v+80UKX8kw9HAwgeyVmL ih+yjIm7dnc0E7qmqQnQMhk= X-Received: by 2002:a50:984c:: with SMTP id h12-v6mr6393010edb.150.1532171882032; Sat, 21 Jul 2018 04:18:02 -0700 (PDT) Received: from dimapc.localnet (109-252-90-13.nat.spd-mgts.ru. [109.252.90.13]) by smtp.gmail.com with ESMTPSA id g1-v6sm3272070edr.52.2018.07.21.04.18.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jul 2018 04:18:01 -0700 (PDT) From: Dmitry Osipenko To: Mark Brown , Marcel Ziswiler Cc: "linux-kernel@vger.kernel.org" , "jonathanh@nvidia.com" , "thierry.reding@gmail.com" , "tiwai@suse.com" , "lgirdwood@gmail.com" , "perex@perex.cz" , "alsa-devel@alsa-project.org" , "linux-tegra@vger.kernel.org" Subject: Re: [PATCH 2/2] ASoC: tegra: probe deferral error reporting Date: Sat, 21 Jul 2018 14:17:54 +0300 Message-ID: <8512069.csTsg4TRIJ@dimapc> In-Reply-To: <20180721095615.GG16228@sirena.org.uk> References: <20180720080424.31505-1-marcel@ziswiler.com> <1532089865.19673.13.camel@toradex.com> <20180721095615.GG16228@sirena.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday, 21 July 2018 12:56:15 MSK Mark Brown wrote: > On Fri, Jul 20, 2018 at 12:31:07PM +0000, Marcel Ziswiler wrote: > > On Fri, 2018-07-20 at 13:16 +0100, Mark Brown wrote: > > > > 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; > > > > > > > > } > > > > > > This isn't reporting an error code associated with the attempt to > > > find a > > > codec-sync GPIO, it's the result of some other operation. > > > > What exactly is then the of_get_named_gpio() above please doing if > > not getting the codec sync GPIO? I am not following you, sorry. > > It's not in any way involved in setting the value of ret, whatever value > that has it's nothing to do with that operation. The comment to gpio_is_valid() says that it "Returns GPIO number to use with Linux generic GPIO API, or one of the errno value on the error condition". Comment doesn't explicitly states that the returned GPIO number is always valid, but it is kinda implied.