Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp708705lqs; Tue, 5 Mar 2024 14:10:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVnANKZM6DQXJNlUSeeyNWLii37H6u+hyjddwiLM5eHONvwK7xHzbZuqjkJoSHZdz6mXbTTuK6vny8+UJgg2R/2bbyV1QrWo6n7/41q2g== X-Google-Smtp-Source: AGHT+IGG8G9SXOTdTtRzh5/DM/VPjt5chgeJuUAysLSkkRsBD6+D31W3f/oFn6wvjg5NOWElxScT X-Received: by 2002:a25:4dd6:0:b0:dcc:787:e8f9 with SMTP id a205-20020a254dd6000000b00dcc0787e8f9mr10227744ybb.51.1709676616359; Tue, 05 Mar 2024 14:10:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709676616; cv=pass; d=google.com; s=arc-20160816; b=jEyQt9Rzl4I8hoLiKEMslHwyhTpvKopzTcTtnKpxM6wj34vY9xNJ6WzeeWy0dzrOdm 5RMIPz06/XXUlfhwos/58yeUsJ1h6XmYo7hWaiSpDqxFcMfoXU8HZF64HKLeWb7VRUJF 2i8vfyo5/BqyEpcsjqsqNnhW/f5UDRHnOm67ykw7BesY9UUZodfgvhUEZ7W6m3MEjh3F xrD++hf4AYftq8QgujhEJUzQi9kqYuY9Yk5+zRbLQ/e8nWfQWklyZh4KzZCcLojyvv/J Ova7BcO8PQwybN2BIX0ywSAfzD6ndkgYF6RqkHNdaa5Qm86ZTQyCW9JhHNjXCJVixFNA SuQg== 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=+G4aAlYsVSUwp426DB+yJKZZYF7N7PLzOJNrgX1E3Qo=; fh=PjtIbep04jktTOZwa8gjm58zcodpB2VlCL1pZK1eAQA=; b=JgKidUmUWAfjCnL0BADN/G8+/P6lKHDtcFtX4LM+KUk3HMFAikNMxxkkesDxyOXe3t mxnQ5FISF8utTd46HZMNRyR3ywf8J/CMIHZoTq8tX9UV8neAgtY2wLujxwMHZxwsQjgN G3fiiB4C4IctXD9N+JI2SWNCHXus7DfJiiZ+TWjouqIpjR1X/xhkFnMM4cm3cncSipGh FhoeGzj+SycTUPlXmNyCIpr+QCkXrNGd13OgJWKvR4Oxsi29IlUO+Wlt2kFIjE5LwXES +rLKeWoGRuOOMn6rCAZ2UlXDZZjmnX0ZuqqepqL08Dtv+5hxhrod//1EPHnGYXpiklCD 1Itw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=az7C5Nbt; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-93036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93036-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 h5-20020ac85845000000b0042edc2f3accsi9108041qth.345.2024.03.05.14.10.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 14:10:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93036-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=@linuxfoundation.org header.s=korg header.b=az7C5Nbt; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-93036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93036-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 C59211C22DE3 for ; Tue, 5 Mar 2024 22:10:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BD2A12D206; Tue, 5 Mar 2024 22:10:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="az7C5Nbt" 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 F1E7812BEAE; Tue, 5 Mar 2024 22:10:06 +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=1709676607; cv=none; b=gVIDA/nCHeziK5euY5XLrvrqdUQCaJqW0rc5OczGJNzUodGYT12knL3oR6WgX19aFyN74kEZrB8fHGzNPkAmqin2Z3Y5mQfMjrtZBaOhucdoMt2LyRX1ai0WiOBwYTRdnV46u7jLSrPxXV9vsWTcpvHG9q5V1GnSClao02QNTi8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709676607; c=relaxed/simple; bh=WDxMUNOyXV2FFp94ZE1OPJHosybU6j2MV9abgvJyXmQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=R6hQ2vZJWlnWu/difVF3nE4JSZwvh1FUmXXC2E9+xhxtz1A5NktaUmHpzOXYCnSMq21+9zIpqBCrtXTwaxs0vC522kHK4Jg8Ac6ZZUXV+fA6FxnBI7WLp6c9NmdSWA2DIN3NxdQOwWrGzzVxCFpZ/KbqunhthIZmbcRLTVBwNJU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=az7C5Nbt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E995DC433F1; Tue, 5 Mar 2024 22:10:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709676606; bh=WDxMUNOyXV2FFp94ZE1OPJHosybU6j2MV9abgvJyXmQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=az7C5NbtIzHvbFY1k6RzXtyMA4G2ovT4iIuq2qGGFKzfSb8A466Xms9g9gAM91/Sd og+XcB2nHMHjZhAznjVov+MTzwoi9/bBPr2aPvdlImEjJpCzSsmqS81OJZpHu4k18B oVVNfNT/qh/v7X42qVgXBHRy8hmrEfNVHcSb+ZCs= Date: Tue, 5 Mar 2024 22:10:02 +0000 From: Greg KH To: Wayne Chang Cc: jonathanh@nvidia.com, thierry.reding@gmail.com, jckuo@nvidia.com, vkoul@kernel.org, kishon@kernel.org, linux-phy@lists.infradead.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 2/2] usb: gadget: tegra-xudc: Fix USB3 PHY retrieval logic Message-ID: <2024030542-broker-promptly-de99@gregkh> References: <20240305161122.1254099-1-waynec@nvidia.com> <20240305161122.1254099-3-waynec@nvidia.com> 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: <20240305161122.1254099-3-waynec@nvidia.com> On Wed, Mar 06, 2024 at 12:11:22AM +0800, Wayne Chang wrote: > This commit resolves an issue in the tegra-xudc USB gadget driver that > incorrectly fetched USB3 PHY instances. The problem stemmed from the > assumption of a one-to-one correspondence between USB2 and USB3 PHY > names and their association with physical USB ports in the device tree. > > Previously, the driver associated USB3 PHY names directly with the USB3 > instance number, leading to mismatches when mapping the physical USB > ports. For instance, if using USB3-1 PHY, the driver expect the > corresponding PHY name as 'usb3-1'. However, the physical USB ports in > the device tree were designated as USB2-0 and USB3-0 as we only have > one device controller, causing a misalignment. > > This commit rectifies the issue by adjusting the PHY naming logic. > Now, the driver correctly correlates the USB2 and USB3 PHY instances, > allowing the USB2-0 and USB3-1 PHYs to form a physical USB port pair > while accurately reflecting their configuration in the device tree by > naming them USB2-0 and USB3-0, respectively. > > The change ensures that the PHY and PHY names align appropriately, > resolving the mismatch between physical USB ports and their associated > names in the device tree. > > Fixes: b4e19931c98a ("usb: gadget: tegra-xudc: Support multiple device modes") > Cc: stable@vger.kernel.org You mark patch 2/2 for stable, but not patch 1/2? That's not going to work well, is it? :( thanks, greg k-h