Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp257800lqr; Wed, 5 Jun 2024 05:26:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbVv8QjJDrlVD8+A1/44j0dhL78nJZFUXZSDgvULtJexbfTl3iBEXqJ3x03lt6IjsYSFvmTPIYwAi6hH38R5nn/s4MRcCplKHWdMv/8A== X-Google-Smtp-Source: AGHT+IHwvNBZQcaGGaXQmt/jvWftHztw8ify8lZm8CeSbBy0zlZj1ivxqjoh4B6pfgbxcGGuhK1k X-Received: by 2002:a05:6359:4c1e:b0:192:2717:4ed4 with SMTP id e5c5f4694b2df-19c6c7c6612mr277711255d.19.1717590386420; Wed, 05 Jun 2024 05:26:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717590386; cv=pass; d=google.com; s=arc-20160816; b=ABtl8DILpaa0CuyMuQpvfJvGZt+4l2Ba3u4tvMO5HFAfYMdvx18+Ra6xRu1Tx4y3Cr /3k2vutQNb9zHcu2zJqkTvmOrRy5mS+x/Id1SM7TLBMwhNEC7UATNt/i6UEykVTJSQ80 q0ZDjYhWJFvdr/YrKij3HsE3gwou6jpaE5EcKvl8l7zCk4qWvSgVf6dIyXUfIoG4KDsX +QkQ+xwXe0Zgxoi9KnvLyRE+sANF87iM5ipAM5wkCeVkV2QaJac65FwOxI3Xu6bDkpCr AZ6tpCZnIrMx8VTtKvmWq/R1HxIHHqDmCtygBFCLgvPuV3036kvm/GUmbiKSafuI5p5w IG/g== 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=Be3IzfM+VTVeDfjcPoeCRjuLpHfRlk7n8CW3Y4NSzYo=; fh=wcZLGQFv8DCkO9Kyg23noFSmqxWFIrlD/cMAXWNXhno=; b=YjpwBlfM5JsqNRgqSNFf4v2kEiNM8OWluyyxmhVWhwkgHRGgxJ6FgK2vgXaWYPE9mD J2vZ+rxC+sbmHX3V2gwIgmIz85/udWAqRJ8LNT+1YPj8Qcr6mdpXjZEYcsVri7Y9pKPz WiIfB1YTR1Pfs52maMJY1oy+wDB+LOefpXMXprqNth9gPt1uM4sgxTyY9y9andUN9nu3 6b2yzBqyBi9csAzlgdHXK1hhC4HZ5hBgM5w2D1j0nlGuQBnZadh6R6PComODZ6Xyebhz HRiDNOWEE3hh7xAvL2LjdZO8BdVVBrpDIn/Pvp75Ifg0YPZdoBySU+nrfcYyNshYPFZE JvBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NCt5y84X; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6d37f6ed8cbsi2916423a12.226.2024.06.05.05.26.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:26:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NCt5y84X; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202391-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 24930288718 for ; Wed, 5 Jun 2024 12:13:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7631A197559; Wed, 5 Jun 2024 11:54:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NCt5y84X" 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 9360E19752E; Wed, 5 Jun 2024 11:54:11 +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=1717588451; cv=none; b=LpCdSDChPyw8E43ViABFO3nhvEFkoLV9e2GzndljjNGHAiWtDZZ326ppLKG831QcxM3uurjYF9OJNfbW92sClFeNQWtZ19ITsCbGPrY6rUw3e9YXnV2ai5VPkmBlNBRYUmiZdQSKmEFptfX9ByMWHmEs+ndJZkGn6P88ms0MVxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588451; c=relaxed/simple; bh=2OM9RluI5P3tgT/FuEMdv4m5T8LO/7Z+ZcmeBnkHodo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YEgPAi5H0gC65tA6zvlYsiGniPcFxg3nnTL3+f4VAzwiTY/rF7EpSyw86UY2288aGxEp6hwGzxWJ0erOmmQ8cXm8HYOy7dLeQCLIqQY/cMZFVBqIO2+Qc/45lQf5eSdCGdXxhjZJ7HpF3AMGJGbyH9NfJx0inP7rkjQALNAO2RM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NCt5y84X; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 254A5C32781; Wed, 5 Jun 2024 11:54:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588451; bh=2OM9RluI5P3tgT/FuEMdv4m5T8LO/7Z+ZcmeBnkHodo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NCt5y84XkRxyoqsCOCZDpELqR+/dN4Kf17tPK4590lu6zwwQoq2oeKH0msFFBu0pj DoVpIylycE9kJPHJpDkw4MsInUK6VvL1MWovx+vEe+ueA1iFI7U+HnyqanrKZPvcdN R0IRVQkhulaiBb9nnMVI6FG9/rQbIKSSjcWlAfF8Gz4kmCIdFv4LL/ZuG1r5Q6xjpe bXh9X0GooJkyF+UoFkLZf2GI9n1e8vXzbeu6wxs1QdTErXAbMfu54ir6LbhH7gcT7n sMuGDwYJX2TD0ihz4qgtZEhtxXRFhdlGSSEMe4cGnBCxmQDH6aSx3tmniBqs3bTeqs DKoM4JdxA1E5A== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sEpDY-000000000x0-2U9q; Wed, 05 Jun 2024 13:54:12 +0200 Date: Wed, 5 Jun 2024 13:54:12 +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.8 15/24] usb: dwc3: core: Access XHCI address space temporarily to read port info Message-ID: References: <20240605115101.2962372-1-sashal@kernel.org> <20240605115101.2962372-15-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: <20240605115101.2962372-15-sashal@kernel.org> On Wed, Jun 05, 2024 at 07:50:25AM -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 Same here. Not a fix. Please drop. Johan