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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2395AC433EF for ; Tue, 30 Nov 2021 11:48:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241168AbhK3LvZ (ORCPT ); Tue, 30 Nov 2021 06:51:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231925AbhK3Luz (ORCPT ); Tue, 30 Nov 2021 06:50:55 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02986C06175E; Tue, 30 Nov 2021 03:47:36 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 4F685CE18B3; Tue, 30 Nov 2021 11:47:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC1EBC53FC1; Tue, 30 Nov 2021 11:47:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1638272852; bh=esuyAu0AZAKQCbcMnPxlzfsPEbqi8Voq0+gP3C9fpms=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DShlCtnz+NqhMzSRarUnk4BtipEaua/5W+waWvRRmC1n3gYa2jyhbEUh25QPdOt9i pu0j7aecbKxwtEW9iirj3GhlwEfofGMiASAOzt8l3b9g936khjlDzFASSfRIl/OEHD onNpUy9K9AeRUEXujmygX8DzZVoRJ/+84kv02ErE= Date: Tue, 30 Nov 2021 12:47:29 +0100 From: Greg Kroah-Hartman To: Neal Liu Cc: Felipe Balbi , Joel Stanley , Andrew Jeffery , Cai Huoqing , Tao Ren , Julia Lawall , kernel test robot , Sasha Levin , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, BMC-SW@aspeedtech.com, Benjamin Herrenschmidt Subject: Re: [PATCH v2 3/4] usb: aspeed-vhub: fix ep0 OUT ack received wrong length issue Message-ID: References: <20211130104256.3106797-1-neal_liu@aspeedtech.com> <20211130104256.3106797-4-neal_liu@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211130104256.3106797-4-neal_liu@aspeedtech.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 30, 2021 at 06:42:55PM +0800, Neal Liu wrote: > If multiple devices in vhub are enumerated simultaneously, ep0 OUT > ack might received wrong data length. Using expected data length > instead. > > Acked-by: Benjamin Herrenschmidt > Signed-off-by: Neal Liu > --- > drivers/usb/gadget/udc/aspeed-vhub/ep0.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/usb/gadget/udc/aspeed-vhub/ep0.c b/drivers/usb/gadget/udc/aspeed-vhub/ep0.c > index 74ea36c19b1e..bea9cbb191a2 100644 > --- a/drivers/usb/gadget/udc/aspeed-vhub/ep0.c > +++ b/drivers/usb/gadget/udc/aspeed-vhub/ep0.c > @@ -251,6 +251,13 @@ static void ast_vhub_ep0_do_receive(struct ast_vhub_ep *ep, struct ast_vhub_req > len = remain; > rc = -EOVERFLOW; > } > + > + /* HW return wrong data len */ Please spell out "Hardware"? thanks, greg k-h