Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp925233pxj; Fri, 4 Jun 2021 01:24:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRLRqUmNEzaa87OdgvyvnG4kfxIO9IOz+MdK//84Nvs8uVYytIH2e+1+XL8TVktuyG7Ewj X-Received: by 2002:a17:907:2709:: with SMTP id w9mr3143803ejk.118.1622795083222; Fri, 04 Jun 2021 01:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622795083; cv=none; d=google.com; s=arc-20160816; b=U2IY5lI+liWmma3XyyGjLlnjaWTZo1haqcIbiHKAU9OATxkRWlnrGS4xRHDxkzkJn/ s5Z6e+L4ElaDeJmp6YijamDSOVWRcxUfCCU5halFLq6qRbI0Wsk+m0o1AqCnVBW58Tlj eZ8xQrgP+f8qwsFxuOrrvyC9rz1f/vwTAr7ZjrcrxkcY7YQxNJvEzE4lL7+V1rcb6TfE k5oouiVX+ZIinfHz/YxmA9l6HvYDJNrqwiHwHb0UoXb53p8HHnWF4LgR3YdsVhmLLU4t 0NIhOhMrZRVQsOvd4iIeKs73hVF/GRpmEcXMTGi5zSmxwEz5CZgiqb6mJFZaIBIILm2E MwiA== 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=/SF7msZ6RZkO8FLmmvLTe36Mf4HzOKhqGaAVIdE3wOk=; b=u2d6lspAelIIfOBGqKeR9C2u5aIsYMOFwohvx3iWHHZ0HksEVaBZf9AyGUOwRDpErX eyJd3sMJkfSS615h5x1bWAgkLjX4B4CDrOedcxpE53IqLwZ6a0JT5LbjqY4I5vQjncfx z4+mc2mWcIE9jVXpnhhRDvWeJeglJ3GwwXBv0mebfAU2IuBscLmE/Yd+yCUUTwmzPyNr +dGbwJMwhdzY4j+4p8Eft4Hr/KnU1obi0yukL9rR4Ds5HPRKWUcywt3I7f1feHZutNPV wWvZgqc/wih9JVSxzADKH4I0uW4OaAuAZUFVoZp/eIKsjhb4stL7cXUmm1kpXVVHjHIn QxXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="PqHG/04w"; 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 e16si4404540ejm.5.2021.06.04.01.24.19; Fri, 04 Jun 2021 01:24:43 -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="PqHG/04w"; 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 S230127AbhFDIZK (ORCPT + 99 others); Fri, 4 Jun 2021 04:25:10 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:38773 "EHLO mail-wr1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbhFDIZJ (ORCPT ); Fri, 4 Jun 2021 04:25:09 -0400 Received: by mail-wr1-f41.google.com with SMTP id j14so8403419wrq.5 for ; Fri, 04 Jun 2021 01:23:23 -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=/SF7msZ6RZkO8FLmmvLTe36Mf4HzOKhqGaAVIdE3wOk=; b=PqHG/04wvWGhz4v745toSclNdYIcRJdEj8Gsg4OePpMsur6qz6W96zlfAtgVBtOd0v zJMM9MExH+ShqZLsYJDNjuhD7tCeHARYScYywghSmeAlCWMzIEqkrYNaq5ZdWu+t6WjD kSi2MBh2ttbJDqK+mtPtW3Vxn+Soyh2pdS+anxbiOGmQDsWmEblInyRh0pi2sJUbp7kQ wCkzoJs0V8S0gAcYOTtHAjG6prg/xG2/OWn0hauZGo8VquWrozH71Fn0neJ3WPC44hoN B1jXNdUsUNlyeA1Zb6Ww88xca6InwWefQmLuLzoJGnCF//vxlkU+beROOrpEEXOcatHu m0lg== 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=/SF7msZ6RZkO8FLmmvLTe36Mf4HzOKhqGaAVIdE3wOk=; b=o6Y58c1qU6+I4n0hlzzGYw9TBvgvhv7jMYwOnd7ugunNG8UliJziJQ3cI8FkFZc1iU 9SB6xbj9sbCZUFN+g4Qii3KpoK0OlmxfnZYOz0cYHHLQKT8PDZpS0wrE88mmQN+z75dx mBn/R1fIfv8j84g8fzhq4WGPImz0w9m++OkjE494eMsNcx7g0xZZAdmuiN1BNjZyKo+p dc+L7bsJZYY9pvpo+vKw/Z8EACzThh6PjOJfdFiZQrFNA+aJ3+lH7obZFAWNHXp/wMd3 gR6BiANW8t17h5IGXOa3ajzUb4OS3QCZpkN/Vf9AhUIkhKrRcXfJ6vVE3hN+Q1ti87Di gUlQ== X-Gm-Message-State: AOAM533kpaTpMdPoNSkodCJlRl23w4u7RD1R5ir7KZ3hQTix6JiNfOL7 4X8qWDQOmPANW6H2bDH4YD/PgQ== X-Received: by 2002:a05:6000:110b:: with SMTP id z11mr2519579wrw.278.1622794942603; Fri, 04 Jun 2021 01:22:22 -0700 (PDT) Received: from localhost (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id b22sm1674294wmj.22.2021.06.04.01.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 01:22:22 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 04 Jun 2021 09:22:21 +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 Tiangen, 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; > >> > >> Fixes: 60d789f3bfbb ("usb: isp1760: add support for isp1763") > >> Signed-off-by: Tong Tiangen > >> --- > >> 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 for asking the right question here :) > > > > thanks, > > > > greg k-h > > . > Sorry, this fix was not send to Rui. Yeah, I did not get the original, no. I will need to add entries in MAINTAINERS for this driver to be easier for others. > From the point of view of code logic, there should be a problem here. It looks like. Only if we fail to setup the Configure Flag, something that it's not really expected to fail. > I don't have the actual hardware to verify whether it works > properly. Rui may know if the patch affects the original workflow. Thanks for the patch and I will test this and get back to you. ------ Cheers, Rui