From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796145723; b=01kg09Rxn33SO/78RCCOmPpc9BAzKzjc+2OjEZK08G3PbKK39o5uWLBMP1bLSQ+sad+Y 7pFgPc978HROrmZUB12AksxbOBsm2SbOj8kgxxjogiYxUH2ubZUCK9MQ7QTNHCElSYjMI iPiaxdUoIgWsec2/oyjMvvEMVpEw6AWVJLYeLyGAGnWHYLm6iYPu1tj5pLa3zMbR3tYcr V+DaIfcjYChqVKMNg9IAxJwV8505L7sZtqVu8cloOSWADfqpeDNKXOjhU9eXBSxFWbP/5 huUmZXSFJ76pjQPJoPP0G4+zozyYToCxGa3mOhn7reI4R1uL1KaRQzNFl/xcVLAOSRA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796145723; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=RFSH4IAgxvNy4fCLkz/U+USEcbhXnMZ39jY16qDzOQI=; b=yaxn4/EaWjC7oURT4XAA7eZvPLWtGu0QEqRvwVRbvT8XD6WEw9cJQsHu4wG9MI4vZwR9 5b38q3uhtIFkWCVfq49Difs7T0l+A9IyIDuXfT7ZRbZI/3eEl+gc9Fq1GgU/JQ7VpATbf CzyBZYqXCA6DdeQBcedivyR2JuWTinM0cNrzZjg9vszXhIGuzEr3c75Z7wyszhTljnE8k RdAwe7CMYadwWXP9366ZZ05OBuG24uN9qHl/CviifCkrdyFS4qdxVx4HoqFIDRp4ytmDv zAYJd000DEYhEFWbt7NlRbCI104T9KgsgBAxjEfS3mCtZ0J29XbGculOnkopfZbBxNw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HlMvG63I; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 066EE606A329 for ; Tue, 1 Dec 2026 17:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HlMvG63I Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BC8E1F00897; Tue, 1 Dec 2026 17:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796145722; bh=RFSH4IAgxvNy4fCLkz/U+USEcbhXnMZ39jY16qDzOQI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=HlMvG63Iv6Hkp3AqWsJ4/QNkai61sjp4Cl2GyKj3PsbyE6RtM8oulQFBSjc2t7OkD pH7YN0daDddSOH9wx55MpYi7MbJd/6XwJbZ/fKOCSfW2A+sXXkxHMrygoo8il3WGsu HNFS2RqrIFufyFSWGabTiFytlQSoYszv8VCJisE5nn76iFzHqIlgTsTwhlcWBXMhOn 4E5ntqeqxw1VbqEFS9tiW72NTc2xGz7qJEGRs626rFVEIm7KTitTG/pPyVpu8p4saZ Tg2drotu5r83BEwFIft5b9fLmRuTCmSiGbc3gDAeJj906ZXqAuLoQ59OApk+NNGgWx bQodUxkVWW5hQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] usb: dwc3: skip extcon lookup for fixed-role mode Reply-To: sashiko-reviews@lists.linux.dev To: "Radhey Shyam Pandey" Cc: linux-usb@vger.kernel.org In-Reply-To: <20261201171731.730281-1-radhey.shyam.pandey@amd.com> References: <20261201171731.730281-1-radhey.shyam.pandey@amd.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 17:22:01 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > As a last resort dwc3_get_extcon() walks the OF graph from the "phys" > phandle and asks extcon for a device bound to the remote node. A PHY > "port" node no longer implies an extcon provider though: it may link to > a Type-C controller for orientation switching. There > extcon_find_edev_by_node() returns -EPROBE_DEFER, the same value it uses > for "not registered yet", so the probe defers forever. >=20 > An extcon is only consulted for role switching in OTG mode, so skip the > graph walk for a fixed role. dwc->dr_mode is still the raw device tree > value here, as dwc3_get_dr_mode() runs later, so also account for the > roles GHWPARAMS0 and the Kconfig selection force. Factor those out of > dwc3_get_dr_mode() into dwc3_get_forced_role() so both callers share > them. >=20 > Fixes: d182c2e1bc92 ("usb: dwc3: Don't switch OTG -> peripheral if extcon= is present") > Cc: stable@vger.kernel.org > Signed-off-by: Radhey Shyam Pandey Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201171731.7302= 81-1-radhey.shyam.pandey@amd.com?part=3D1