Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp50884lqf; Thu, 25 Apr 2024 21:49:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIPwCG2Ox8AMQAZdyVu1Nro9rBfcrg5WDj9ZiOpr5slOkgot2W1LCBvW6j53EddEAsuco6RNCx/CTDwBoMbSC6qOQ5GxedFd/bJ4cdgg== X-Google-Smtp-Source: AGHT+IGBZfH1O8A+IUkUzEXOB6Bun676oLHSk78y7KbOGCRcFFdlmR8VX3wdfU97Q67fRItRMNmV X-Received: by 2002:ad4:4ea6:0:b0:699:23f8:1044 with SMTP id ed6-20020ad44ea6000000b0069923f81044mr2125087qvb.11.1714106948881; Thu, 25 Apr 2024 21:49:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714106948; cv=pass; d=google.com; s=arc-20160816; b=bG8jM8mb67BScVjPIJGE+3DNBdFxVn6pYYhNX7Mgg0YwHjap9l5CGL96S3Ix+k2IrM c0qFoDiNxsgPI5742cB9i9Meg8E2G0EciMGe2v611sn376g3oKvOQmZ7nHz3e0BIYwLn AowlQsMOQMjsX39ChWvWpeR85pRaRZQAsXCrLvD4izJipqsPU6/H8oPaZjNY6YzULBjH 7F1LdiE1PNX2T0X2tneJ/i4GAdMaWwgpzi/GeI45rgb34xkCYBUGwPO9c/0dO9aKeFv/ igreaZQJKIef9ZzZ15/T4PUbvvD7BbKBApLbPISU+IZHlML8Zo+t9MibwpVqikyqoUaY tW1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=WbnxceZDcqzRy9lC/t3W8aleW+UyGIU0IM6Ke2NiOyA=; fh=9PteZCdmX1kktMnfrjMp5HVmHqHzcdPxYjbLvTsa8sk=; b=G05YhAxUhTR7LPSMD8H/le5WEUWxNnHaBR19ciu84JTM9rcWJOyrZKWiqZphW0LYpI 57tXS7hacUiSSZ+g8u+bdn+90oJ3tSMGOBfbGhvTSB1K3eBo5fQWXT0Ts6hStENQzEth jI2IgVXbdtKUNIbSIEuKfpXtcu7zl0g6W5z2LN2f5Wx60/F+I3aRRLjTdV2uGsM8VbCs yOqlTgYcj9Dv+ZGoFtS+dUe5V+M4uS+Nh0Jj1dnbWrJPsDDupu7J0GPVVUEc64XKNQb2 Pl+IgYVev6ECRhuAPeQEm0lu1fdIxJzqrL0eXGQ9JYErjBtwBOdT7/CIjgHkB7T/gqPz +wPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b="cP/8UZck"; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-159507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u8-20020ad45aa8000000b006a048f27d9asi20281794qvg.506.2024.04.25.21.49.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 21:49:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b="cP/8UZck"; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-159507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9C7541C21EBF for ; Fri, 26 Apr 2024 04:49:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFF6813A242; Fri, 26 Apr 2024 04:49:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="cP/8UZck" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74B0079C8; Fri, 26 Apr 2024 04:48:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714106941; cv=none; b=MlNALCk/3nAoN+AaNK72Aa8vdD41tDz61awyQfUrzOItLzvHrIsiHOiZ5CDdaNYJWQj+wWUQvnXOs8Tif+jTVfJ+3HG8akFRK/zGeEzIQwRZEoXTM/wg+ZURVsainR94R0qBE2RdALMLvW+bUH6yz89UY3Lb4if9Ptixxt7RK74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714106941; c=relaxed/simple; bh=xU2zomwj9/ydjNYiRynDe3eb1DKIRhbGKqT+uKeZ1S0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=psqIH0+ib3DaEigJSA3tnFupYldwOk4Id1CQleMoFNrDgssoUWwGW5F7FrxjcU7tnZVA/x23us4BFuD1XSYUdrOOJELvcX1YZdDMoPgXZdMHWEzdLnFSnVr2ygB9CbaDsf+2DIOEBFzGVGsHv1LEdoxRBc6fMQR86yaIQGEHI+M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=cP/8UZck; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1714106931; bh=WbnxceZDcqzRy9lC/t3W8aleW+UyGIU0IM6Ke2NiOyA=; h=Date:From:To:Cc:Subject:From; b=cP/8UZckJfC5HQsspOfkGABwi81y+1ldiGwZvQeRmbp9mOAiJjc37AvYtPVSL/VQ0 hPLGKcDoVsUR/CJs/7udtKJUd1hGg7/f9Unkg6G+1diuapnRjUSMgoH2Kg7nERRe6f byugcb7jLW0NK1HelKMWBFCQOsVwDEYqaEeeLYF7bVqzgeayL7QQKjQUwF1o07JQeO f1oB/gHBrywMvt+GC47SNOhaG6mUT9n0wImoBwnOvtKJoQ9rxjG3KBKvsHPCVnVNHO E0x/+0mNe4be1ouZcdjHKLCyWIl84zxiWMqoEDtsv9FZzHfMkVtYFl5Naso73T4gyO 8386NKOtQsWHQ== 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4VQgGp2y5Fz4wcd; Fri, 26 Apr 2024 14:48:49 +1000 (AEST) Date: Fri, 26 Apr 2024 14:48:48 +1000 From: Stephen Rothwell To: Greg KH Cc: Greg Kroah-Hartman , Krishna Kurapati , Linux Kernel Mailing List , Linux Next Mailing List , Thinh Nguyen Subject: linux-next: manual merge of the usb tree with the usb.current tree Message-ID: <20240426144848.42539084@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/MSf8mbwjGh7ewI70lSjVUnn"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/MSf8mbwjGh7ewI70lSjVUnn 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/core.c between commit: 6d735722063a ("usb: dwc3: core: Prevent phy suspend during init") from the usb.current tree and commit: 30a46746ca5a ("usb: dwc3: core: Refactor PHY logic to support Multiport C= ontroller") 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/core.c index 100041320e8d,4dc6fc79c6d9..000000000000 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@@ -104,27 -105,6 +105,30 @@@ static int dwc3_get_dr_mode(struct dwc return 0; } =20 +void dwc3_enable_susphy(struct dwc3 *dwc, bool enable) +{ + u32 reg; ++ int i; + - reg =3D dwc3_readl(dwc->regs, DWC3_GUSB3PIPECTL(0)); - if (enable && !dwc->dis_u3_susphy_quirk) - reg |=3D DWC3_GUSB3PIPECTL_SUSPHY; - else - reg &=3D ~DWC3_GUSB3PIPECTL_SUSPHY; ++ for (i =3D 0; i < dwc->num_usb3_ports; i++) { ++ reg =3D dwc3_readl(dwc->regs, DWC3_GUSB3PIPECTL(i)); ++ if (enable && !dwc->dis_u3_susphy_quirk) ++ reg |=3D DWC3_GUSB3PIPECTL_SUSPHY; ++ else ++ reg &=3D ~DWC3_GUSB3PIPECTL_SUSPHY; ++ dwc3_writel(dwc->regs, DWC3_GUSB3PIPECTL(i), reg); ++ } + - dwc3_writel(dwc->regs, DWC3_GUSB3PIPECTL(0), reg); -=20 - reg =3D dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0)); - if (enable && !dwc->dis_u2_susphy_quirk) - reg |=3D DWC3_GUSB2PHYCFG_SUSPHY; - else - reg &=3D ~DWC3_GUSB2PHYCFG_SUSPHY; -=20 - dwc3_writel(dwc->regs, DWC3_GUSB2PHYCFG(0), reg); ++ for (i =3D 0; i < dwc->num_usb2_ports; i++) { ++ reg =3D dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(i)); ++ if (enable && !dwc->dis_u2_susphy_quirk) ++ reg |=3D DWC3_GUSB2PHYCFG_SUSPHY; ++ else ++ reg &=3D ~DWC3_GUSB2PHYCFG_SUSPHY; ++ dwc3_writel(dwc->regs, DWC3_GUSB2PHYCFG(i), reg); ++ } +} + void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode) { u32 reg; @@@ -596,19 -594,14 +618,11 @@@ static int dwc3_core_ulpi_init(struct d return ret; } =20 - /** - * dwc3_phy_setup - Configure USB PHY Interface of DWC3 Core - * @dwc: Pointer to our controller context structure - * - * Returns 0 on success. The USB PHY interfaces are configured but not - * initialized. The PHY interfaces and the PHYs get initialized together = with - * the core in dwc3_core_init. - */ - static int dwc3_phy_setup(struct dwc3 *dwc) + static int dwc3_ss_phy_setup(struct dwc3 *dwc, int index) { - unsigned int hw_mode; u32 reg; =20 - reg =3D dwc3_readl(dwc->regs, DWC3_GUSB3PIPECTL(0)); - hw_mode =3D DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); - + reg =3D dwc3_readl(dwc->regs, DWC3_GUSB3PIPECTL(index)); =20 /* * Make sure UX_EXIT_PX is cleared as that causes issues with some --Sig_/MSf8mbwjGh7ewI70lSjVUnn Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmYrMjAACgkQAVBC80lX 0GxUlQf7Bps09f2YPz14hSjRHunWPt1Rdinyg7YIJjURyWA5jK6x22n4rOObioZw 5Vi7BbXT1fYzUsZ4JdSwoKKvn0HPo5q7TN9Y7zV1I+1r7kWxOQ9qdmPeiCkOefa3 7vHFXiHE+wcsWOEuElbqyoc9n0P/9ak3o0FyaEof5a03AhhFAcmY4vkNx9Ar+5VI LXLXjJ7wFeB3F1ghFGoUBbfMjKZtEUHjRaGROVab2kdVlbsGHnz8m3KZIJeXhPBv EePxt1gqN8Sq6p1nWP2NVqFuGWgePctnFfsqRspxNqGXafO+zffKLv145B49XHgB 7bF2LQS/B+JIYULKnegT4q5tnL3Lew== =JKky -----END PGP SIGNATURE----- --Sig_/MSf8mbwjGh7ewI70lSjVUnn--