Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1193634pxj; Fri, 4 Jun 2021 08:15:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJPrMHa6UzT5Uqs4gYXcmLHx8LTT4m+02nS/95KG5E1CeO3ke6+r56VL2D6T70LTELbqmn X-Received: by 2002:aa7:db95:: with SMTP id u21mr5268476edt.152.1622819736211; Fri, 04 Jun 2021 08:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622819736; cv=none; d=google.com; s=arc-20160816; b=X6uStwlG0jWLO7goRLaJ/I33HIfw2qqJmU/1dx4A3K2s4iMTxcXEYkWOfjEhah9LRT skOkP9jbeZrGfC0iMsz/YRWFSqt8wnBWGAs+qqT2RE9yBVAP1qiHhLRTM5vsTMfmCoeI NRVr+nt8NwM2MHc/aSjyTotqC0I4WPgtrQt5giubzHbQUulxSQEu/Mcv1N9tRfEes/07 pkWQJk0wE02mr3j9/a87PBvp2vQXf2R+Zcdd8nS24K2S8PIiZDO0ApWEftZaNn5reVDP mAIQsh6CDH98jN0KPy+8WM460/Mxy223jmfxVEwQkBfBpLUlohc+3tOwnL87Y2dpEP+X myMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=MDeGfSOld04qEQUDmCqC+elxeKhTaZfQS1sxhyZdy0Y=; b=WGTb/XnN6jKJgxZbIY+3EuZaZqla/pSaqUFrspj5VsnAxGtIv/OCSRhube9xa28GNn hJvCNSJgkvkcSjsXGtxiEUsM+nBb75G+HFcbcAfuwpcm5i6SgGI89JXxSWPsGQqe3nwd qrywhyDUZqjACkeMBAs9pHp1tk1IcTp56xPGYYYBxQ05QCb/7md1ifTI8UZ/O65dhshK pA4swVn7eLP8eUIj3I6UpHkuJlT3eRj/PbPk9dfe5WBxrag/uDhbMQqId6TncYl0zvDI cAohQ701XT0uSiWWA07ALnnSTOgaj0zAz929XSKZuPVM3kVo7pJueghHi+otrdA+FfoP exaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d5MDz4Zc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd18si4670519edb.445.2021.06.04.08.14.56; Fri, 04 Jun 2021 08:15:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d5MDz4Zc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229972AbhFDPPl (ORCPT + 99 others); Fri, 4 Jun 2021 11:15:41 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:41584 "EHLO mail-wr1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbhFDPPl (ORCPT ); Fri, 4 Jun 2021 11:15:41 -0400 Received: by mail-wr1-f47.google.com with SMTP id h8so9647834wrz.8 for ; Fri, 04 Jun 2021 08:13:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:content-transfer-encoding:date:message-id:cc:subject :from:to:references:in-reply-to; bh=MDeGfSOld04qEQUDmCqC+elxeKhTaZfQS1sxhyZdy0Y=; b=d5MDz4Zcs9bzXxzzD6J6cD5EERCnWZkQiBtJR5sSos112Wxg0vjLR/3rJhzlGG3Yax XEjP2GMX2gXwgxvVbWkfdSD3cmrnencbp5mtxnYQpq+8c7yyG7Hpx3UWr0RKFdjGTXe/ FnlW4x86W1l/I5Eb7Hmx74h9Gr/fs+zhuDxwkV4rQlWdko8pt+d6l5gtzogqaNv8txZ6 /9HRqo7iImdMUDw+2K6y+hsM6smVmOOqEQaVkwKJpgEj57jJgLD+PzjRGJoiT+IYfVxr zu+avRfVJKF8JATHMUwXQzDCTMtorPLPrXjo8hBpOsUhggsjgNskOPyQyt0YIGw3LZeV /gdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:date :message-id:cc:subject:from:to:references:in-reply-to; bh=MDeGfSOld04qEQUDmCqC+elxeKhTaZfQS1sxhyZdy0Y=; b=pPUrloMBwww03MWQetXN14AMay8ojQVV5Ex4Xo27ItwKYtIO+s5lgzwPOw53JMlD9r TrqS7I4BxmjNTHEdj3Dmgm2DmqQxcCs5kZKbx90DjwjaA+9QipjyXcUK7QFKYqLFPziC DN+uM7TMt373GOlz23Ws7aLWG1h55TNY2xvhpcTrzfW1dh8KhjyvgUVpskoRQgcLjFsD zsv12SPMt92OkgruOkrYd2cAz9IoQk7TcEfDIdMiIBCTH3am2NvA37ZGVZyuMIj/mjj/ b8m95D41ZoyWk2O0gNiYJIioWhEVc1PLnPkzLqcl4rAudQtqNH3Lp8f7gLvNCAOawqsv j+Nw== X-Gm-Message-State: AOAM531clOGCHNR0KReUUPYC8zOTewIrqeqSAKD38LuhMqast3CdSzY8 Aptgwrvy96zcLcEEmvoOH+vMkQ== X-Received: by 2002:a5d:504d:: with SMTP id h13mr4420402wrt.133.1622819574228; Fri, 04 Jun 2021 08:12:54 -0700 (PDT) Received: from localhost (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id z19sm8247865wmf.31.2021.06.04.08.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 08:12:53 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 04 Jun 2021 16:12:52 +0100 Message-Id: Cc: , Subject: Re: [PATCH -next] usb: isp1760: Fix meaningless check in isp1763_run() From: "Rui Miguel Silva" To: "tongtiangen" , "Greg Kroah-Hartman" References: <20210601100311.70200-1-tongtiangen@huawei.com> In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Managed to test this and looks good. Everything is working as expected. On Fri Jun 4, 2021 at 3:09 AM WEST, tongtiangen wrote: > On 2021/6/3 19:45, Greg Kroah-Hartman wrote: > > On Tue, Jun 01, 2021 at 06:03:11PM +0800, Tong Tiangen wrote: > >> There's a meaningless check in isp1763_run. According to the > >> similar implement in isp1760_run, the proper check should remove > >> retval =3D 0; however I think a more descriptive changelog instead of comparing to similar function would be better, maybe something around: "Remove attribution to retval before check, which make it completely meaningless, and does't check what it was supposed: the return value of the timed function to set up configuration flag." > >> > >> Fixes: 60d789f3bfbb ("usb: isp1760: add support for isp1763") > >> Signed-off-by: Tong Tiangen With changelog changed you can add: Tested-by: Rui Miguel Silva Reviewed-by: Rui Miguel Silva ------ Cheers, Rui > >> --- > >> drivers/usb/isp1760/isp1760-hcd.c | 1 - > >> 1 file changed, 1 deletion(-) > >> > >> diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/i= sp1760-hcd.c > >> index 016a54ea76f4..27168b4a4ef2 100644 > >> --- a/drivers/usb/isp1760/isp1760-hcd.c > >> +++ b/drivers/usb/isp1760/isp1760-hcd.c > >> @@ -1648,7 +1648,6 @@ static int isp1763_run(struct usb_hcd *hcd) > >> down_write(&ehci_cf_port_reset_rwsem); > >> retval =3D isp1760_hcd_set_and_wait(hcd, FLAG_CF, 250 * 1000); > >> up_write(&ehci_cf_port_reset_rwsem); > >> - retval =3D 0; > >> if (retval) > >> return retval; > >> =20 > >> --=20 > >> 2.18.0.huawei.25 > >> > > Did you test this change to verify that the driver still works properly= ? > > You are now checking something that never was checked before... > > > > thanks, > > > > greg k-h > > . > Sorry, this fix was not send to Rui. > From the point of view of code logic, there should be a problem here. I= =20 > don't have the actual hardware to verify whether it works properly. Rui= =20 > may know if the patch affects the original workflow. > > thanks > . > >