Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1418867rwd; Sun, 14 May 2023 19:48:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7k/MIc9gv/Vt1rBMMI07nVGDg45usNonkMEuzS5Yrdpe5/vkZ2aRr+4qEuMH/IEJwi0pyB X-Received: by 2002:a17:90a:880b:b0:250:484e:355f with SMTP id s11-20020a17090a880b00b00250484e355fmr28160270pjn.49.1684118891788; Sun, 14 May 2023 19:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684118891; cv=none; d=google.com; s=arc-20160816; b=kzW8kjkyhSE/f4YTpMzvsTvaZ1PtLJKyM4LIdU9XHxgaCEskQjzHwHtgDsRBu28M+c Cq8NzagcRE7P9wXoKSCoMExjPu6pwbTghGPFlmeJIXl04t1uv4rV36C8G9wqSHtMiX/f qDnSfkX6hyZ0mS65ScLG0Dr3IKM5hIXRCSG7JMHLTWBt5AQjQv7+8UYhugX7828jwSwa UjKqJlcrxvdn8NQVGeZ+7Y1PzRUG91Lu3yDkq18fR/8KVnZUdFnceRHZ7uSw11QWdruw FsgPvu7C9mjJOXhc6DGh+XL2ECUlcAyEoH2bciORnNd37LmpgMmfnvc6Ncj8jcLYeCaJ zmKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=2u50IuYuFGQsWZ4R/Mr+7FE6MAZhgBZcHZaJvakXl4Q=; b=UCyWZro6zXzWeQ902aYvXsG6uWGJ1uSc5XUy0Okg0SVVEQiT/mKl3iuahbI4bDmnz0 CE4QBmazzSOvJO5Gys0Y3cVrkDG6CgxEQG2XYP5uJHs/gQWlyPgFGlpTnM56SurLw/Vr B/2THxN9K7GBLaPkSoOlvRv/OF7AHeIF4OC4SR1/zHMNRRI8d2Yw6/m8GrcBlFYk5Slp 5WlGRIqkchmimk8+Wlm2Se6v4fOphzF/nnCCD+FEc0bbJt1SO02Mk9TdbfhzOS61cfSi MgJpi8ShNP48qX81xZJN1Crue5MYFXPAibRlfAdNcF4Fp6yGSpoxSWpILMWAll4WB7cg ThNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=UTqdV03E; 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=canb.auug.org.au Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s20-20020a639254000000b0052cb36e0bfcsi15042959pgn.197.2023.05.14.19.47.56; Sun, 14 May 2023 19:48:11 -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=@canb.auug.org.au header.s=201702 header.b=UTqdV03E; 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=canb.auug.org.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235707AbjEOCfd (ORCPT + 99 others); Sun, 14 May 2023 22:35:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230281AbjEOCfb (ORCPT ); Sun, 14 May 2023 22:35:31 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C1431BB; Sun, 14 May 2023 19:35:29 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4QKNl349svz4x1N; Mon, 15 May 2023 12:35:27 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1684118127; bh=2u50IuYuFGQsWZ4R/Mr+7FE6MAZhgBZcHZaJvakXl4Q=; h=Date:From:To:Cc:Subject:From; b=UTqdV03E2pSxoCshskhNSlE2HtOLIZyCpqhR7+SCHqztkH9ce6RkwKzQ2XzIhdl8G ZbvI2ehEIDjWMPoh8OZMA5GxqnOwS3Ojj02VXyHcSMiA+UvnVOSARKWlsVPNJvZ30x KGYXAq6bmxgtbB3J5xkiVfP0/5JhQE/QouHabHN0MyHfotJ6jK6jDw+16tRt9lWmrv jZG+6dfjpjyDdqfu4KGbF0l5esNMVqRG73eiZfkz2QJtZv4mAQ26+LQ3KgPYSXbEJk uOzwDS4JHPALrb88dOA5d0REw4DQWYh0O+U2WZhEswz/3fOFISCnnBSuX9QAVKNWZv diJZzYxHFgwYA== Date: Mon, 15 May 2023 12:35:24 +1000 From: Stephen Rothwell To: Greg KH Cc: Greg Kroah-Hartman , Krishna Kurapati , Linux Kernel Mailing List , Linux Next Mailing List , Roger Quadros Subject: linux-next: manual merge of the usb tree with the usb.current tree Message-ID: <20230515123524.74e7bda3@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/X4OBLMXhdWLp_/7nqeqQWoZ"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 --Sig_/X4OBLMXhdWLp_/7nqeqQWoZ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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 timeou= t 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. --=20 Cheers, Stephen Rothwell 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; } =20 +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); ++ ret =3D 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 =3D gadget_to_dwc(g); --Sig_/X4OBLMXhdWLp_/7nqeqQWoZ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmRhmmwACgkQAVBC80lX 0Gw4Jwf+PAfCqjjWkX1KLNnY0k4raSlKkT5c2VdCEZXaE5w+zAf8vhal9XNl4m1v 7tz2RiqWkWiw/4r4Q4k6NkXB85r4Am0wWsI+xEQ6LXHs+ZnI8IO1NsMloVPgo6HP RZZmKV7blAJrxNa5dGBhXSzKj5USLEnK4ZvbatEjRvZc+E9KXjBJTPuXSjBP4HyX ic25IZ8jhhtmJdqZ+V2841ll7qc2v3w6AurhPv6CctmEPq6AuSRe1eIx4OL6xc/J 6cHNpxJvHXLL1ad2/l/5DbiGal4Ag7ccBAbw0jgt2WU8KRT2PqJcszg7q4Vx+VPw TrMz+EHNQRPpunHjDF9dsKgcDwHkwQ== =RzRF -----END PGP SIGNATURE----- --Sig_/X4OBLMXhdWLp_/7nqeqQWoZ--