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 BF943C07E9D for ; Sat, 24 Sep 2022 07:06:56 +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=zYIS1z0MmpZKEe6pBhUnZ+iS3rkEVnZaybPtmraFLiQ=; b=2HjW8oQPPhuf5K K04nYx4zv/P+I+jFyB3NT9yKDVkKchHuO4lrA9sFh1/LEVGl7QZmabuuNnbSb+SvNQwm8BKNpi1gO FMXly1usuu5JHFft5/Xh8bb0MaQIhmivRvjCS3p+AK5nK8vy9Cs1WxU/6NGernKS4B7Ajkfur69u6 N7Wo6o6/f1W5awm8/Xwh/TmiqPyC1iMZZTUkdBDqJeouCeGY/Kqo2pGp+O06imQ2DrDvSr6403AyE xplX+c/DaSc4lM3hTEyxQ3LSFfSyHelD+y4tJLnSRlRwC2AlB4IA4Vmkk8qBYF/vd7pPoWeFiY+HD Gsn8eTc4LzRx2WbF49Cg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1obzFY-006Xxe-8M; Sat, 24 Sep 2022 07:06:56 +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 1obzFV-006Xx7-Vh for linux-phy@lists.infradead.org; Sat, 24 Sep 2022 07:06:55 +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 89EEA6069F; Sat, 24 Sep 2022 07:06:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67E24C433D7; Sat, 24 Sep 2022 07:06:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664003213; bh=lPdTtbkPIBSXeO5UmPBAlFWibDSzhXIpNgFHnaMohvE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q0ftGhuGHar46Lq2Aa/jj1chYaXVRBhCqabdXNADoMgJbmxQ2vbyUdX20sWzwaYMI c4JD6ITaOG+XGcty3lPR5gyeYzs4UsxPuO3033lRSrIc6/LymeCwvwFTKwTXN6QVHr FdhN8hcnSy31IPptIZwKgUhklLmUdDwqFrF2SE83vKkJnpeID+JqJo91ZYCveM1HUb PPAXwZYxPOlepoh5T69fKRv0jJR67MytEorAZtxWhoDEZ3mpiVhuFJxpkYbqfFfZV5 1zau1PO9mCbn3zeCJO9rW0wBVclCYwlLJMYZ72DQr1I4sX8WGiy/d4+ax/i+6QI3dc C3yRPGgO9+p9Q== Date: Sat, 24 Sep 2022 12:36:47 +0530 From: Vinod Koul To: Yuan Can Cc: kishon@ti.com, linux-phy@lists.infradead.org Subject: Re: [PATCH] phy: intel: Use dev_err_probe() to simplify code Message-ID: References: <20220922111551.37188-1-yuancan@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220922111551.37188-1-yuancan@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220924_000654_077350_0F0287FD X-CRM114-Status: UNSURE ( 8.26 ) 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, 11:15, 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