Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1673171rwi; Thu, 3 Nov 2022 07:54:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM41IkigUe3P9LwMk9yS9X43g1f4xs8KWd0kBuqCDPB/gYjq7uq2PjN3Pkr5+NxTZw745vpd X-Received: by 2002:a17:906:30c8:b0:73c:81a9:f8e1 with SMTP id b8-20020a17090630c800b0073c81a9f8e1mr29337522ejb.649.1667487264869; Thu, 03 Nov 2022 07:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667487264; cv=none; d=google.com; s=arc-20160816; b=XEmGXdx7g0mT5ZX9wf9Mz6AGyexuAItt0gd3u64sO4ttmz7v9rRF5tEdRA7BVrnayx R12XyPDlAGgOjqkwlI6e4hO5s5dnfG7X5Od07AzqAuDIkoVH35ASHUojxHnmU9SvTh7+ OM1Qq543/mWiDvFp9fG1qaoeJAHhradhsqpfbNnTeVihfL5bVOKDHBz3yQeUI5z81Ock IAQtaL4pJ4botY4Wn5G9UTrta0nSWYYGwTsBhUmbBZeYeNOtLa5eLQ9YOTZd3sGHFSWL yoA5MWixol+XkUjuOvJqFozmtfV76Qgwa5SQ6c+CmxHQPIry/Hz6L2HaJzYUseu2pREf Fxpw== 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=/O1bg4E0SrE6qtIWyQUEs3QgnccqpNj4HhUg0hUROrE=; b=stXX2wE5J8D3Owf6XaBp+RnzkCmE7NSmulkCTH3pRaS3mqmYJ6AegK6NEqyPCorhcD gL54T/5I+yMDWIf+Lkl8O5jQ3ixUMvrRdm9dLiQh1YE9hLaXq2MVMYFk4FyQLfb93wW8 fOJYoUh/MTRuaN3Ix+RZcb+8EjdltbR8Zh80RBITYlP7H+9OgnYXIeLmD7gdGa5xkjtD YcgbsoqInovABVeVLzjxJVndzg2gL8FvvmY4n93hEJ52GDLWTpSpLVQyVCR26BjITJ8v 3Ir/P7nP3LYbAvZ74VwdSd6/rcPT/3uIArleY4Omv5rNvCmISqfD/1oheLsexNzbCrgv YKAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tLlvXT7e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gv28-20020a1709072bdc00b0073beb58e98dsi1119806ejc.276.2022.11.03.07.54.00; Thu, 03 Nov 2022 07:54:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tLlvXT7e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230202AbiKCOow (ORCPT + 97 others); Thu, 3 Nov 2022 10:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231698AbiKCOou (ORCPT ); Thu, 3 Nov 2022 10:44:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE69A6306; Thu, 3 Nov 2022 07:44:48 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 54769B8284C; Thu, 3 Nov 2022 14:44:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF1AFC433D7; Thu, 3 Nov 2022 14:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1667486686; bh=zpIoOAp++gfJWBGUr1xLhQLP/Ei+SAt+CRXOkkI0Ed8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tLlvXT7eqnDmXV82jCcydWhdwge20oYiju4qgJA8Kox1+0uoy2CqxS6OcWT4GfXdm 7kaYJceK3jPK0/nfxnvCCM6OfULtd6rZCoerS/DEQ8m18vOMsw026P1vJZPjNqXxtD 38F9pa943O07I6qaA2qUdRKx02dy4qaYDZbbdpY0= Date: Thu, 3 Nov 2022 23:45:26 +0900 From: Greg KH To: Jing Leng Cc: pawell@cadence.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v3] usb: cdnsp: Fix wrong transmission direction of EP0 Message-ID: References: <20221101044433.5627-1-3090101217@zju.edu.cn> <20221101061730.8991-1-jleng@ambarella.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 01, 2022 at 10:43:21AM +0100, Greg KH wrote: > On Tue, Nov 01, 2022 at 02:17:30PM +0800, Jing Leng wrote: > > EP0 transfer is bi-directional, but in the cdnsp gadget, the > > transmission direction of EP0 is not changed after it is > > initialized to IN, so the OUT data from EP0 received by the host > > is invalid. > > > > The value of ep0_expect_in will change according to the value of > > bRequestType in the SETUP transaction of control transfer, so we > > can use it as the transmission direction of EP0. > > > > Signed-off-by: Jing Leng > > --- > > ChangeLog v2->v3: > > - Repair my email address. > > Yes, it works, and it's validated! > > Nice job, thanks. I'll let the cdns3 maintainer review it first, but > just wanted to say thanks for fixing this up, it makes my life a lot > easier when accepting patches. Oops, I missed that email footer, sorry. That is NOT compatible with Linux kernel development, and as per the recommendation from my legal people, I have to go revert that change as we can't take it as-is because it might have been sent out incorrectly as it was stated to be "Proprietary and/or Confidential Information" which is not allowed in the Linux kernel. thanks, greg k-h