Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2071539rwd; Sun, 28 May 2023 07:39:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nH2Wa9PcRNFwrnMMP8DH4cAbFbmeOj5CS6PU/mugqoEZLYEvt/ME3VxKlKQ24y/xkqN3e X-Received: by 2002:a17:90a:204:b0:247:2680:2ad with SMTP id c4-20020a17090a020400b00247268002admr8466704pjc.33.1685284743439; Sun, 28 May 2023 07:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685284743; cv=none; d=google.com; s=arc-20160816; b=rqwjqwfiJOTSUcI8/SRxBglE+8Bc7CRJmw7q1SYdWqt4N6oIMLPVPCc3SAzZj9s/FW 7JdbI0dmdUlwA2kfUgxz76+hiWk6AncOOPgmOMLd7DAfhW84v6ifsbEofb1yeklLdNKQ c6qzbT4qdw7pE8ODORR5VvAiMKmi64YR67wVEHTFuKwEBnWt5zRIC+ta7fDRSgRMaARt hSwQGr9Ht8N62vzON21VLtswcIzSTjC3mZTwBco9lkU9D3+qFms1+fvpxS8XTtBM31T3 xsaHhT5BVkNEkbZp+STfOwwSwPtVmGJYvXaHZvz18pNElmvyg7iolCW244rMz6NhYLN6 mqdA== 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:feedback-id :dkim-signature:dkim-signature; bh=bOuIPzG12g4gcSOpXVBNfgdgSQC3jGZB6+tVXF5BZVk=; b=rDzXcOYe7UOTYbU7VG5uzRFcTFMLnUth3wRjiCKyHUyJKr6Z62W/OVV9vtHc15bz7f iXv4uRphmPng5rsxFsirpDvopQM40X+PXVm9az1+nSZX3OQD6j6sNif+/FZEhg+R+Q6s AwNJ7g458DNqovemuAZv5UOU1lb2nndWlbe0AE+vjmQVEwEKi+MdN1z0HoSPKcLcGY35 Qr/I1c9mFR9v3MXGSPh1IMnEO378elgiWZoBQzO1vhOKzJE64EI4yKWN9vTpQUr/ln8s 6nCzY3XhaA6FV3g2ly3lwgxv4tuzXOL8wkO/cdTIEquKYiO7hisyHLRWuSyf0vLbPMsF CCOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=f1Jky7Op; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=zIWxzHLp; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a63954b000000b0053485684fd3si7770570pgn.183.2023.05.28.07.38.48; Sun, 28 May 2023 07:39:03 -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=@kroah.com header.s=fm1 header.b=f1Jky7Op; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=zIWxzHLp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229491AbjE1O2P (ORCPT + 99 others); Sun, 28 May 2023 10:28:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjE1O2N (ORCPT ); Sun, 28 May 2023 10:28:13 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 090BFB8; Sun, 28 May 2023 07:28:08 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 0EE50320024A; Sun, 28 May 2023 10:28:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 28 May 2023 10:28:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1685284085; x=1685370485; bh=bO uIPzG12g4gcSOpXVBNfgdgSQC3jGZB6+tVXF5BZVk=; b=f1Jky7Op27OksrZFCD vQ0Al/TDdm+YKHS5v3n3kLZh7e/6Y87v4DgW6bvtGdJyHABVQHecKn7jxNRjj7PT X1fxDRwOeNDz7j6JPQck322kbHsEfvvXaOEx5YZz/22+c08NECltzZHKXQqx1DJ4 af/e97FlhKYIWRkxo84uGrW4bAS/lhNVtwDTf68eQDJpdgFU47oD1b+GtEbBCbpa pJ4LJtaCvwZJAKhZAp2xMmeJM4ucHbEsU6kQfFvdDClgdRtoi2B/sykUBPzINZns wpsjBFzzS64JF2PuhYxDOc5bViaI1hTJVY47BrwebDbupCm7szM1GOuaPSbLRowT 6Jmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1685284085; x=1685370485; bh=bOuIPzG12g4gc SOpXVBNfgdgSQC3jGZB6+tVXF5BZVk=; b=zIWxzHLpDyEPbkPWrVuL5DdLo1j/U FJoe26iyhouOJpAd3lHEs0HqycHZpG1Ow5Gd3ananFchXW5tJztMKIK3yT40c+YN P7tfqSmRGTzUnCu1ArV3VVW2HybRvjMwvP7zg+i2raUbowG2lyoYZRkN5F9Ss4gB lX2erYqTvYRD5hBjOgf2VeNL0lV4irto6cJkGhsOKVY30ZBdliR+9SYuLYojcmpw KYMPhfBkkzjq3w0N5zzDn/EkjpLLMS6sqDRrZU6lJo+bQY1bJ9wnqsC8hxWCb1H3 HRG6WNJ3cDQtRDfA5y87gDFEpePPbF3vgN2IBcUnpqwcrUHuQ42qhOf7g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekfedgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepheegvd evvdeljeeugfdtudduhfekledtiefhveejkeejuefhtdeufefhgfehkeetnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorg hhrdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 28 May 2023 10:28:04 -0400 (EDT) Date: Sun, 28 May 2023 15:28:03 +0100 From: Greg KH To: Roger Quadros Cc: Stephen Rothwell , Krishna Kurapati , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: manual merge of the usb tree with the usb.current tree Message-ID: <2023052846-surfer-spore-e873@gregkh> References: <20230515123524.74e7bda3@canb.auug.org.au> <5082d743-54b1-7b4c-432c-dfdce1bb772a@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5082d743-54b1-7b4c-432c-dfdce1bb772a@kernel.org> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, May 15, 2023 at 02:01:08PM +0300, Roger Quadros wrote: > Hi Stephen, > > On 15/05/2023 05:35, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the usb tree got a conflict in: > > > > drivers/usb/dwc3/gadget.c > > > > between commit: > > > > c8540870af4c ("usb: dwc3: gadget: Improve dwc3_gadget_suspend() and dwc3_gadget_resume()") > > > > from the usb.current tree and commit: > > > > 813f44d57e19 ("usb: dwc3: gadget: Bail out in pullup if soft reset timeout happens") > > > > from the usb tree. > > > > I fixed it up (I think - see below) and can carry the fix as > > necessary. This is now fixed as far as linux-next is concerned, but any > > non trivial conflicts should be mentioned to your upstream maintainer > > when your tree is submitted for merging. You may also want to consider > > cooperating with the maintainer of the conflicting tree to minimise any > > particularly complex conflicts. > > > > > diff --cc drivers/usb/dwc3/gadget.c > > index d831f5acf7b5,5965796bc5d5..000000000000 > > --- a/drivers/usb/dwc3/gadget.c > > +++ b/drivers/usb/dwc3/gadget.c > > @@@ -2700,21 -2699,6 +2700,26 @@@ static int dwc3_gadget_soft_disconnect( > > return ret; > > } > > > > +static int dwc3_gadget_soft_connect(struct dwc3 *dwc) > > +{ > > ++ int ret; > > ++ > > + /* > > + * In the Synopsys DWC_usb31 1.90a programming guide section > > + * 4.1.9, it specifies that for a reconnect after a > > + * device-initiated disconnect requires a core soft reset > > + * (DCTL.CSftRst) before enabling the run/stop bit. > > + */ > > + dwc3_core_soft_reset(dwc); > > Please drop above call to dwc3_core_soft_reset(). > > > ++ ret = dwc3_core_soft_reset(dwc); > > ++ if (ret) > > ++ return ret; > > + > > + dwc3_event_buffers_setup(dwc); > > + __dwc3_gadget_start(dwc); > > + return dwc3_gadget_run_stop(dwc, true); > > +} > > + > > static int dwc3_gadget_pullup(struct usb_gadget *g, int is_on) > > { > > struct dwc3 *dwc = gadget_to_dwc(g); > Can you verify I got this right in my usb-next branch now? thanks, greg k-h