From patchwork Mon Feb 19 06:10:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puma Hsu X-Patchwork-Id: 774243 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82F9B1BC49 for ; Mon, 19 Feb 2024 06:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708323062; cv=none; b=ZKD+tFVoJ3la2JSyM83wblkJgedSrX4cDKkPRCtYW6aQQoPBTQN7KIWcYDUrH3MkeEqanpg1oXw+3lZOol9P9a+aEEg3kixT/7N2cL2y6h9h2ENLdAsIls/6dSOpz7eihKPtQO//VA8k26YjeAoid25vgJxAa6iqoQ2MTNCL/rE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708323062; c=relaxed/simple; bh=jKHsvnkpUXR50TFr/Z3xsxv3/NQO7e19eRb0+AeBW30=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=Bl6cqhFfOKN6r1F0NwwJb0pJZxStzk431PNA5PpYogWMNHWNUu34ExT0vLkevTKZ8SdfphUUb3uw/fVrH25WmelWINV5eMW5nSsFxsPaUZeyOa030ZsiyPZPUZLOIePdBFDgedSS2WJSWsyJNfegcef3Qj5CfRk0SS0kC0NQE3Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--pumahsu.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=lsAtvYQL; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--pumahsu.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="lsAtvYQL" Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-607838c0800so58003987b3.1 for ; Sun, 18 Feb 2024 22:11:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708323059; x=1708927859; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=hHHSh71VeE7R522+653gkjpIftZNNCvUqKd1gyCW278=; b=lsAtvYQLzBprysin85a+8rdSd0P4CrzOjKzmnpJadR/2rNyrm0GSl+1msRvDbTEb97 orCoYL/2AhABQWPtbeFaTdeWs22wKxJqPviFItRSJMLVHB2VhCYVhyC850w2wgKzyu8S poYHFzXixpJyC8L1P7NYyJPMOwAaBWxgUm+cRa66bmcQFCJhphTHOkZr2yn9C5c8ODYP iDse4ylOtPhan6TXzRoahd4AtLVBygPWI/bfLl1HuX8Coaj+DkmyGm8EjK4fyKu2tUMI 9RMkadd0E928dhQmtZ0s7Zi8AJ9IngnZ1OBBtESHSE3aAlI79B0shh4+AqgvutTocIog u8bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708323059; x=1708927859; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hHHSh71VeE7R522+653gkjpIftZNNCvUqKd1gyCW278=; b=EFJMsoTczWpQFUG33BX03xEggcyOIfX7QlJEp3iecDVrUbZNDRo7b343Xo0pQN/L71 H8PxRMJKEVk7VC8E31Rc56Dd6FZwVTvTLo9k9KJUUVGn/mWNQDMR5ZPepOApmFnTglcp 1w9r3uFSQXafV4KUrEm1OvwFtgtiF6YTASMPQ7B50ROUyV+Qsi2Bvh2BtyPj4m1ISRvO tieFkuNKefyZFyiCDk6GWYaSnvm5y3w4XjQk4jOKhFEoe0Y1LOvBR+f3HgdCwUHeNuXl mu8cGZGNSBDvzBevB1KLlkBErwcbf5RCP4clrLBxLOyv6nb7OpYiprwUZiOImm1FX15r hijw== X-Forwarded-Encrypted: i=1; AJvYcCVd8+XvDv1nycU7F43YWpMcw6TqNrUN5VAX1usFtxW11w1XZh0nvFhpgLLzdiWYd5f0UsfY920G/AjTX+aUGd/Pvk4UIizimIsx X-Gm-Message-State: AOJu0YxvIOWCvneuNh7MCzjZymjL52jJCvnKOxeXV+9YdzmOT9gzhxZZ w6raHP9nXIYYlD8lwxAck2ZTor+tQiZBzQD1DYFKBe7d5Js6JC7gu5sH/Y6bw2TfxVoKLrremz6 ZDtRNMw== X-Google-Smtp-Source: AGHT+IF4FAq8CQ+60Ppo/C7DeJ6W8sdQY3v/8/5n+ADTzFoAlRf6z1Kg7N2L5Y+XKqjxUxsAWchRREtwCljZ X-Received: from pumahsu-p620linsp01.ntc.corp.google.com ([2401:fa00:fc:202:c8b2:b71:a506:971a]) (user=pumahsu job=sendgmr) by 2002:a25:eb07:0:b0:dc6:b7c2:176e with SMTP id d7-20020a25eb07000000b00dc6b7c2176emr2679115ybs.4.1708323059705; Sun, 18 Feb 2024 22:10:59 -0800 (PST) Date: Mon, 19 Feb 2024 14:10:05 +0800 Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Message-ID: <20240219061008.1761102-1-pumahsu@google.com> Subject: [PATCH 0/3] usb: xhci: Add support for Google XHCI controller From: Puma Hsu To: 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, Puma Hsu 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, so we introduce a Google XHCI glue driver. Besides, we support USB dual roles and switch roles by generic dwc3 driver, but the dwc3 driver always probes xhci-plat driver by hardcode. We introduce an alternative for probing a XHCI glue driver. Puma Hsu (3): dt-bindings: usb: Add xhci glue driver support usb: xhci: Add support for Google XHCI controller MAINTAINERS: Add maintainer for Google USB XHCI driver .../devicetree/bindings/usb/usb-drd.yaml | 7 + MAINTAINERS | 6 + drivers/usb/dwc3/host.c | 8 +- drivers/usb/host/Kconfig | 6 + drivers/usb/host/Makefile | 1 + drivers/usb/host/xhci-goog.c | 154 ++++++++++++++++++ 6 files changed, 181 insertions(+), 1 deletion(-) create mode 100644 drivers/usb/host/xhci-goog.c