Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp215886rdb; Thu, 16 Nov 2023 17:25:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHDzcXv1kOmntf3Th2gSUrc6hEIWssEgUzf+3z0XUkfGkUoO0QlscNI2rUl8eQJrKR0Xln X-Received: by 2002:a17:90b:3a8a:b0:280:cc47:b60d with SMTP id om10-20020a17090b3a8a00b00280cc47b60dmr18603865pjb.14.1700184339357; Thu, 16 Nov 2023 17:25:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700184339; cv=none; d=google.com; s=arc-20160816; b=BuN1QeLWE2/amk+kOBAYIdfLcIQJUfiHIwLbWznUk3q1EReC4oAv1E6LpWAlzhz3NZ nISzdIPabp+PFJ0LGHb9CcBnEsA7QQemdxfUkv4A0iCZc3iyqvlbmgWYCb+sQ1XE1SW9 BhY8FET1m/aWLrsy8vWE8kgvER4yVQnItl2P9q8XgpYAS7Kixbj9OtYNT1xGVr+BqLbp LI5Ol1paqBAGS6codgxQmCmMPTIM0WJJ/Gm0Kwd+UOtWp5siednyE9ryHuS9aoUUucrx +sqo+69bhOqn0AKD+I1i394bUwctejSw/CasqYaOa5u7fK6DqRgNslzC08uD/lkgZJK4 TMsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc:to :content-language:subject:user-agent:mime-version:date:message-id; bh=ZA+kp1phmhdUmJc706RRwa9DjioBLijX0FON+7vz6hI=; fh=0nxemOavUCskWlV9OxQzp7OC6bdB7GPGIDOdhSq+ds0=; b=Pw0KdR5QnSht45EI4B4INGaRM4Wuw+N9QoONwE6otNq+6zjf3TnL2MkEMCL615q+qd xTKxCCo2szqO4gONbF0pY35OsvNwQgQSzKrmgEgH/r5TMWSUhbhPMaFTNndkvsEXCc/J Ua7hLIdIutZ+5rQ5MwZZgGVNozUvWxMbZd5L3K1k8vuLiXJ2zgBAOYrRcYUXUCCf3CBG xs6S9Tq34bUHYrIbLfUkXkkXBo1shmBTQjpjYjVDX2kEqOaeb76ojLJ61WOFeURVIzsE jUQFNucInyZHEtCO/3d/ydWViBg+AJenzK+tqbWNTeslIrsb1A5UtdCWTo1CZUQHuXkO MN8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id c19-20020a17090a8d1300b0028103abc77csi3300678pjo.18.2023.11.16.17.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 17:25:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9063281BDBA0; Thu, 16 Nov 2023 17:25:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229946AbjKQBWy (ORCPT + 99 others); Thu, 16 Nov 2023 20:22:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbjKQBWx (ORCPT ); Thu, 16 Nov 2023 20:22:53 -0500 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id A8FA6C5; Thu, 16 Nov 2023 17:22:44 -0800 (PST) Received: from [172.30.11.106] (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPSA id 04EF860107C73; Fri, 17 Nov 2023 09:22:25 +0800 (CST) Message-ID: <2722c6df-9247-3d8b-272e-9810d5e19c4b@nfschina.com> Date: Fri, 17 Nov 2023 09:22:25 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 1/2] phy: mapphone-mdm6600: fix an error code problem in phy_mdm6600_device_power_on Content-Language: en-US To: Vinod Koul Cc: kishon@kernel.org, u.kleine-koenig@pengutronix.de, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, 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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 16 Nov 2023 17:25:35 -0800 (PST) On 2023/11/16 19:26, Vinod Koul wrote: > 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? Hi, Sorry, I send a error patch 2/2 because of my carelessness. This is the address of patch 2/2 which is irrelevant about this patch. https://lore.kernel.org/all/7f81d365-0440-de01-8be4-9c8d3ab9d69c@nfschina.com/ Su Hui >> 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