Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3207030rdb; Thu, 16 Nov 2023 03:26:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDM1O84suNGxrXoO3lUQCjx5ub00vMwTruEmRR5IFlrai1iejtxeOFuEGkCXcGLMotUQY5 X-Received: by 2002:a05:6a20:948b:b0:172:eda5:36ea with SMTP id hs11-20020a056a20948b00b00172eda536eamr12127880pzb.7.1700133997262; Thu, 16 Nov 2023 03:26:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700133997; cv=none; d=google.com; s=arc-20160816; b=hH9/M1SYazFgKwawxZDNbZB4kJx78lApJS95fWws/iqIBGcr36cDo/DjrH69ir5MCu YEPU4mFK+yf6PqSd1K7lWHCRwbhzBBcXx0Uc9rgPswuRVvSNVbBH2Bmpc9BLJh6UkzfQ aYqU/WFd5BZDp9NyKsQdv2kFduyvRiKejIfVmP4NXEKMO49wpHYs57tUvPuS4ldY8EbQ HMG7+pItrqPG/MKPJw0MJTXgOPscHvGWKMZh3U8JDCqj0DNknxi+eGlPv1sGok+z6QRI CBE8QyRxv6XqG8f9SXSOSKn52r+N//tbaN2WCoaN/rQAC3mnETv1VQeeVotkykshvZxY Mtug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ooIZ1374Phqnj/kayLHNa2XdyiKiaC+o62e2IGZY2HI=; fh=bJRyUBPjQmMNKbxBLjrYgcwjxTmXiY9qT22NAMF6HkM=; b=orawY0s1lZm424uhFADIqBKy8EgSqRwglskBhBQXFQGX4T7FCRYwiGAw0OsnNoRVjw VeDvn4x5B9uNhFj5cnlg3mhOWzdxQ+HuJk2JF+eLl/075UtgAzieW9fx6gFJk3mbALxw 2QhEsL20AUEg9oJK0CzCqUY6kStOme9KfHXjRvBqgfldmk/MiGFNFJdoRBq9zWUqV1OS Q12mWxYNuRBTYNlYTN+4An7ZcmOu9v0J/rpujGpQ/w3uoARVStwnjoLt2YOj9BelIUNY IZNLTe9xq1CQF6m1UU1Dou5L29c/lF8JOF/6YS8a8vec3+5CguS+MMpYaRNghg95ztRO B18g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KKdL9HlG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id c19-20020a630d13000000b005b8ee1c0c6bsi12122562pgl.408.2023.11.16.03.26.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 03:26:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KKdL9HlG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 571138080C73; Thu, 16 Nov 2023 03:26:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbjKPL03 (ORCPT + 99 others); Thu, 16 Nov 2023 06:26:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbjKPL01 (ORCPT ); Thu, 16 Nov 2023 06:26:27 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEA0C85 for ; Thu, 16 Nov 2023 03:26:24 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B47BC433C7; Thu, 16 Nov 2023 11:26:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700133984; bh=91H4/KMPMkjTV+q/X6xZwFVszTpe0ikL12Gouw7eKGk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KKdL9HlGEpg2+x2JaPqMsP65qQ2zD0VpHPw/eWcBXd/31rSP0TT56j7WPO3yL31cI b4Gz5gT93Gy2DKQ2aw9u5kjKTrUfY9LkaoiL57bTne9851WEnssHXqclvRLTG1vZyJ h31dHdthwKqIKCmdIg0oy9snapn7Zdb3g7TZaY09AAdFGS9yj/F2XMV6pcm4//vGuv R+WmH/3Ne+Vx2DPowxrqJs6306RnsEUvKiakJgpia2dx/YIZvIxQL0a9EIqa1TGBxp p+OV10sluVANNKwC+M1k4jVaJyW0O8AOCUg5n4abq8p8QuM4enjY3yfVi29x4aZy55 Do9ybUoDd8riA== Date: Thu, 16 Nov 2023 16:56:19 +0530 From: Vinod Koul To: Su Hui Cc: kishon@kernel.org, u.kleine-koenig@pengutronix.de, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 1/2] phy: mapphone-mdm6600: fix an error code problem in phy_mdm6600_device_power_on Message-ID: References: <20231020091413.205743-1-suhui@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231020091413.205743-1-suhui@nfschina.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 03:26:34 -0800 (PST) On 20-10-23, 17:14, Su Hui wrote: > When wait_for_completion_timeout() failed, error is assigned > '-ETIMEDOUT'. But this error code is never used. Return '-ETIMEDOUT' > directly to fix this problem. Where is patch 2/2? > > Signed-off-by: Su Hui > --- > > I'm not sure that return directly is true or not, maybe need some > process before return directly. > > drivers/phy/motorola/phy-mapphone-mdm6600.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/phy/motorola/phy-mapphone-mdm6600.c b/drivers/phy/motorola/phy-mapphone-mdm6600.c > index 1d567604b650..e84e3390bff0 100644 > --- a/drivers/phy/motorola/phy-mapphone-mdm6600.c > +++ b/drivers/phy/motorola/phy-mapphone-mdm6600.c > @@ -421,8 +421,8 @@ static int phy_mdm6600_device_power_on(struct phy_mdm6600 *ddata) > dev_info(ddata->dev, "Powered up OK\n"); > } else { > ddata->enabled = false; > - error = -ETIMEDOUT; > dev_err(ddata->dev, "Timed out powering up\n"); > + return -ETIMEDOUT; > } > > /* Reconfigure mode1 GPIO as input for OOB wake */ > -- > 2.30.2 -- ~Vinod