Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp248407lqr; Wed, 5 Jun 2024 05:10:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUY+QwOCTWmhpuFZpHrqNegb8nsxc3ODbV6bqP7BIjzdgNBoTo1Qi4g57bX/cINXP/oa10xQ3pD0KphniMzGPPGUrfRwb4RS545o1tfQA== X-Google-Smtp-Source: AGHT+IHwTzN37pw4Q1q1CL0eXHIwN6LepCd0pjOYQmlV6zjsY4lbUrm5fHhJ8NJgzn+7I1fuQz13 X-Received: by 2002:a05:6214:3292:b0:6ae:91:d621 with SMTP id 6a1803df08f44-6b030aae2d3mr27174206d6.56.1717589408357; Wed, 05 Jun 2024 05:10:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717589408; cv=pass; d=google.com; s=arc-20160816; b=uoIJXTP8Qf7QoGyQMa5oxFAjOZTXOoScuxKiZynQZ6qYza+mRWezpDodJWnY94FKHC BGDXZuWfheKRyZ3c3/d+ydIzCDl/nsUMGUKKya2UnFDeT0Ds2K9ZnpnuuXrce4QaBpk8 ngKNC79NeuN5nKNXvuszMDEqH7yD8yP3+dA5QMDGmfE6i4Pxl00x75tnbetiCQohKNkv ghvt9cp1LGkgZZpIde0kMzCTZNTkxe1tIRmElNCSbOlIqYDfDm/2bl2buSZIVF2ZscpI 97lWb76CSL0vAN4+UgkOWGowU4DnV0A1mNxFgneKccY/Fi8qoO83IyzlrK4tLeEL5MME IWqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IHBx52WX+4ctPKU7dIBWVcZPS0RjpzuQ0W9Uzr7kzpI=; fh=wcZLGQFv8DCkO9Kyg23noFSmqxWFIrlD/cMAXWNXhno=; b=twAukooc9IEmoO3opqATSNTlx8sQRUdquTt6vPEX0dctvXPDJGGk6kmHzo8IOgBeis vzPkY4MtzC220seXiFHusme8+vfR+wrEC+FfW/Q5Jc0Q76+ZuE/Q7RLfnNbLlGO8I4FG hbgZc2ySsDWpoGKyXascpE9qJYDKXA7mV98OnZcLXgmvBP6B7rV6JLpZ7KZtH1mTX2qP JgjaRzljjVMGr4/wiydyu+Lpx6t1EJgN8SgB2po6CTuB2pIKl6JkeTVqg2hSkoEhqvSg mGKCRlHRfeMO7jWiqC6lU5JNzWjpWoCn2D7Oaeap/hc9axLGsZ/neLQbOSCYofBwTMYR dY3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gta6f3D6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202378-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202378-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4a741e86si132235166d6.139.2024.06.05.05.10.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:10:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202378-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gta6f3D6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202378-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202378-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 1A72E1C2285A for ; Wed, 5 Jun 2024 12:10:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06A5C1B012A; Wed, 5 Jun 2024 11:53:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Gta6f3D6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 274E31B0117; Wed, 5 Jun 2024 11:53:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588402; cv=none; b=AMJi8JnDmXPxBoEqdnDNoqCJpNVAlLcymlSkvXlEXGvZGloSge1fHZmRK0gzmTya6NZEb6rkoZuS3yZ5fpRCuOBtxY0+5XgjJl6VxRyxs5AegxyrzEPydVIWQW0J3eX97BJ4YtqL6CNhuK0YHkoAR86ukVqVVKKOn6Fj2TIaMBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588402; c=relaxed/simple; bh=JUFUBLSPCoj+I9mnYkjmtKDkiyT83/kvukVxvmt/7KE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CbacEDhPzx4W4kNZuHhvuGjqQnjI8ll/hpenXMPmm3YrOsd4WO8IE1GLeYt88m3uqVeIfZ8ncKuTBKO/FAWOhae8KXKh8nrPLlPxw4Lg+VnBWZjv6FJ26WV8Sc7zGB46dAJqteYn4kQSvPVoVAC9EvUQfAcuGxgIkM5peycoO5U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Gta6f3D6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC6F6C3277B; Wed, 5 Jun 2024 11:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588401; bh=JUFUBLSPCoj+I9mnYkjmtKDkiyT83/kvukVxvmt/7KE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Gta6f3D6odVBdNeiHvZRcRfIvNLsNrzMCuubTl/PJpa2q44HECwEPD8iRL7h8cyK0 l2tIOd0fPJgef+aOJbUd39PEUf1xaS0DfFYNMWBqtQxV/r1r6phaJOKlC8ECu1eNIe LHFJyNvsPFtW0kWRPD1kSGHWLQP+UXYlDwbulW4cVV//Pgyc+LHtd1H3eDFGT7m2h7 F4SwouJwQdzDbTSK5mmUqThEaNTQRvawXIF7atrxDFq7md9f073RxNhpAg2ZlngJ/y zeEWcDEn2aV9J5DfEZdQ2boFJ2Qg6f06EovcOY2jauA6j3PZFGGOtbH+nQMdgvVWKc Sa0CNswms8GBA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sEpCk-000000000wA-2ky3; Wed, 05 Jun 2024 13:53:23 +0200 Date: Wed, 5 Jun 2024 13:53:22 +0200 From: Johan Hovold To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krishna Kurapati , Bjorn Andersson , Thinh Nguyen , Johan Hovold , Greg Kroah-Hartman , linux-usb@vger.kernel.org Subject: Re: [PATCH AUTOSEL 6.9 16/28] usb: dwc3: core: Access XHCI address space temporarily to read port info Message-ID: References: <20240605114927.2961639-1-sashal@kernel.org> <20240605114927.2961639-16-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240605114927.2961639-16-sashal@kernel.org> On Wed, Jun 05, 2024 at 07:48:45AM -0400, Sasha Levin wrote: > From: Krishna Kurapati > > [ Upstream commit 921e109c6200741499ad0136e41cca9d16431c92 ] > > All DWC3 Multi Port controllers that exist today only support host mode. > Temporarily map XHCI address space for host-only controllers and parse > XHCI Extended Capabilities registers to read number of usb2 ports and > usb3 ports present on multiport controller. Each USB Port is at least HS > capable. > > The port info for usb2 and usb3 phy are identified as num_usb2_ports > and num_usb3_ports and these are used as iterators for phy operations > and for modifying GUSB2PHYCFG/ GUSB3PIPECTL registers accordingly. > > Signed-off-by: Krishna Kurapati > Reviewed-by: Bjorn Andersson > Acked-by: Thinh Nguyen > Reviewed-by: Johan Hovold > Tested-by: Johan Hovold > Link: https://lore.kernel.org/r/20240420044901.884098-3-quic_kriskura@quicinc.com > Signed-off-by: Greg Kroah-Hartman > Signed-off-by: Sasha Levin This is not a fix. Please drop. Johan