Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1097370rdb; Mon, 19 Feb 2024 04:22:06 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWnfW1LMreGMfA62WYJ+9gyiQeAWq6z7GSnewiuSSZdAmCgF0V57WUKla1xZOC4GQZSrBWGhDwSpTGIDm0cjYiQeifwmN5MVzxdsgxGdw== X-Google-Smtp-Source: AGHT+IHBdy2wqy9G9eTQIfppwIlURy2EX6Fgjvi8CMvEajm1b0JBAH9dWTavWIixtSkc9HArwSd5 X-Received: by 2002:a17:90a:cb8a:b0:296:2d5c:23db with SMTP id a10-20020a17090acb8a00b002962d5c23dbmr9115641pju.11.1708345326151; Mon, 19 Feb 2024 04:22:06 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v15-20020a17090a6b0f00b0029718f62c01si4481413pjj.1.2024.02.19.04.22.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 04:22:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71296-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=iJ76bSpw; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-71296-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71296-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 D7D20281A7D for ; Mon, 19 Feb 2024 12:22:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6934E2DF9D; Mon, 19 Feb 2024 12:21:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iJ76bSpw" 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 7DF492D046; Mon, 19 Feb 2024 12:21:57 +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=1708345317; cv=none; b=KfsaT4G3XJXvywNCuODVkkW6m8tVPkgg09FwYF/r68a1tKv12mWdukFuYJq2/jSz3LjLNNmvbWp6Ujc+5OHRSMR/takMKFofzXta0hDWGT1HkfRJNAOTQqxa27S/aRUga4Rm6NXsJa/GnFhCweS+VkEruLKXxQLOrfZIZ0yjWn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708345317; c=relaxed/simple; bh=6flA8ZvRjaZ71CFJ3kj4db2BE67saNYipRMtxrzSZ5I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=t7r5I2gUMp+QXjXUY4mSAoUiXyjWMfxMI9QayPbBqb1Bc5LezwYj7WppNHi+zYi0OAAZteJ3xI9wRWYDfdC+9zGqnLkcD3OGJprFC3G1CSNxlqkxXCXvWcnnAHQDCBfEAPosqg2zYSyR18NkBwmLjE/pG7HSCnw7pkZ/wOyyu7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iJ76bSpw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9F10C433C7; Mon, 19 Feb 2024 12:21:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708345317; bh=6flA8ZvRjaZ71CFJ3kj4db2BE67saNYipRMtxrzSZ5I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=iJ76bSpw1PvQfe+AEUTn1lRTMq6w7ce4Yq4mtOtjA/CffofGJptLjFvUlDjBi0/61 b1n1YEfu6tXRzOhZSCv8+r4etCooTj827qehitIjg8yGJUN+sacHlVbqP6MbcR/o2d GHLOI/Xp0ZAlzb5q5DGg74lbG5m0uXKnNZdOYa+TLwnCZHpYtB11UEi0zENdJekvDl IDRr8gJpX4e+NLKR52krXSwiosQG/CjUX/FGIpShsI9W+RpRcAsJjlXme+GmRLrl2Z iEzHFoWiSFp++KrWDEyo++unNHHjm2XKMIJ3mfjEmyh4aXRgnJJ/0FQKKtZe5hlUmz bOw+xPnta2t/w== Message-ID: <0b4464eb-631e-4c9f-a7c8-3451be15d8b4@kernel.org> Date: Mon, 19 Feb 2024 13:21:50 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] usb: xhci: Add support for Google XHCI controller Content-Language: en-US To: Puma Hsu , mathias.nyman@intel.com, gregkh@linuxfoundation.org, Thinh.Nguyen@synopsys.com Cc: badhri@google.com, royluo@google.com, howardyen@google.com, albertccwang@google.com, raychi@google.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org References: <20240219061008.1761102-1-pumahsu@google.com> <20240219061008.1761102-3-pumahsu@google.com> From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8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hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240219061008.1761102-3-pumahsu@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 19/02/2024 07:10, Puma Hsu wrote: > In our SoC platform, we support allocating dedicated memory spaces > other than system memory for XHCI, which also requires IOMMU mapping. > The rest of driver probing and executing will use the generic > xhci-plat driver. > > We support USB dual roles and switch roles by generic dwc3 driver, > the dwc3 driver always probes xhci-plat driver now, so we introduce > a device tree property to probe a XHCI glue driver. > > Sample: > xhci_dma: xhci_dma@99C0000 { > compatible = "shared-dma-pool"; > reg = <0x00000000 0x99C0000 0x00000000 0x40000>; > no-map; > }; > > dwc3: dwc3@c400000 { > compatible = "snps,dwc3"; > reg = <0 0x0c400000 0 0x10000>; > xhci-glue = "xhci-hcd-goog"; NAK, that's not DWC3 hardware in such case. .. > return -ENOMEM; > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 4448d0ab06f0..1c1613c548d9 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -61,6 +61,12 @@ config USB_XHCI_PLATFORM > > If unsure, say N. > > +config USB_XHCI_GOOG > + tristate "xHCI support for Google Tensor SoCs" > + help Please always Cc Google Tensor SoC maintainers and Samsung SoC maintainers on your contributions around Google Tensor SoC. Anyway you just tried to push vendor code to upstream without aligning it to usptream code style and to proper driver model. That's not good. Please work with your colleagues in Google to explain how to upstream vendor code. There were many, many trainings and presentations. One coming from Dmitry will be in EOSS24 in two months. Best regards, Krzysztof