From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0B29FC07E9D for ; Sat, 24 Sep 2022 07:05:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vfzk+mZFE9CoYyC565TCtDu5RaX3TWykduRUdISYJTY=; b=BQWI1Tu/3E8heo I+BsP0nSHR86JimjdFuusp6KqFIN+YZ7Skq3S/Tpc813qF0ewwn0NBT+6sYcE9GD3UtkK60+jCtSI SXs/qJF8ZHOuzWmk9kE1F84RbScQf4DWktHC4ZVJcP7+RBsAcIywRimT2PhIo0ONDqVH/tn6K2ZSV fR4vWEmql2u4q2AQjbYRGppCXXV/BffHblTQZII9sdNNgIBewMnwE832MB0fir3pfr+0YAE1HH3BW BYOrAYlxE3GGFxyT34p3TfjA2MUG2aWjFs8FwAUSCwuDnbWM9yqhHq14xoZr/xA4hUN3IZuCco10S hXuNtobEMhS88O/rj5qA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1obzDt-006Xpr-CJ; Sat, 24 Sep 2022 07:05:13 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1obzDr-006XpP-7Y for linux-phy@lists.infradead.org; Sat, 24 Sep 2022 07:05:12 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 83A3B60A2B; Sat, 24 Sep 2022 07:05:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FCD7C433C1; Sat, 24 Sep 2022 07:05:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664003109; bh=j3pCRGDyqypnws5dBa/VSjNqPWmVl/HIOplifhM66RM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tIT+Ii/DSq9ts4Bu0MG2R25MMiVlvQy+Lzy/WM+b9eF1/kvMinvdF9Clm0Ho5v3fK 0AhngUkAEHz3+0NM8eJ9vs8kx4WhRQjopOw4X49x9j91grZC1cyLK2LKmDyku7k3NP rlLURXmMLMAX8vxFpDiMItOjrv0FslaKp4K0otNBgUtZqVl+SuHPXF8whrC+aTfj8P kaojUdbS6mh+G0TyMHVOFf0cVncSyZ7jX+6tIj5G2WdcEd3sIc1VMJjFcWLIMRG5/q v8GjPVJFkiTk2BpkI87F08tpe0mLD7KdvATIDEQ8bcl4Bc/SQgkG6dIiFIsxUw5WCQ nHENjNTj/0rOw== Date: Sat, 24 Sep 2022 12:35:05 +0530 From: Vinod Koul To: Yuan Can Cc: jckuo@nvidia.com, kishon@ti.com, thierry.reding@gmail.com, jonathanh@nvidia.com, linux-phy@lists.infradead.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH] phy: tegra: xusb: Use dev_err_probe() to simplify code Message-ID: References: <20220922092243.22281-1-yuancan@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220922092243.22281-1-yuancan@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220924_000511_350100_8ABBA777 X-CRM114-Status: UNSURE ( 7.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org On 22-09-22, 09:22, Yuan Can wrote: > In the probe path, dev_err() can be replaced with dev_err_probe() > which will check if error code is -EPROBE_DEFER and prints the > error name. It also sets the defer probe reason which can be > checked later through debugfs. Applied, thanks -- ~Vinod -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy