From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) (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 BF23F37DE81 for ; Sun, 17 May 2026 13:04:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779023074; cv=none; b=JkKRvxAuzw8gN9BZ0Q5DI1mnN+ZLf8bOPpB6mpLEG/ICWYj4veU/Cplyd5zFxGIgTaBMuCfO5BzKttKymr+pQFMmCDB9PojpqDI0bHuKWmFs6yA9gq2CGhHrZz1f4uBoLUTLD4Jt28YymUUrEUraYstjR2EAhQPYyH+oJKvRUaA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779023074; c=relaxed/simple; bh=LeWHHqCWtRB6/iOFzUEGlxNN/mbW1NUBtdf1HtpuOvA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RQN9BQdGDD+s+T3JD2NBlagUafbbtEdgqCxs9xFtQlr8k6OgE2ieuCH7cTAm/r6BRUS03094FrMd7DWc7GhznGA3nvdju2A9WXR9JFaTbHnvG0wIx3eQIuiYstHHM5lLzPFYrE5ASPy2M2kjiLsDdjVje7p0y7mCX68Z7hd2eeM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KI3IXRyF; arc=none smtp.client-ip=209.85.215.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KI3IXRyF" Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-c80291e6237so1003059a12.0 for ; Sun, 17 May 2026 06:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779023062; x=1779627862; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NmrD4XCw/ddiD1eD+XE4KxmCSjyDbYSOCXwkAExthfA=; b=KI3IXRyFIToM1BOabyqiJXZANtjQirFVaVz9VJPHyxWo6dBbqtfnNR78d7kmpz45Wa mobSq+A+ZwugG184a5IK6RoJ+T18iNaEvnOWcB5JJ9XJ8mJGG+gEvpXHZET1oA8uaiUM Ktxt57oqZp8kBCDkS5w7wke+34eC77LMIoDvmXUVxMaP6ONZRA9CxCXopZO+RUCSSYNN YleCpuRh5Bo0L8e0NH4w2dEg+y3h7ixHKfDkolY0rVAFv2em3nWHPm5LMf4FzjOuLs9p QqLKpXdfAMO56q9c7yRfpry+APnNq0xnhAz3C5+ZBLRJdqS8IKhuEwx8XFVqRafxVt5K +jjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779023062; x=1779627862; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NmrD4XCw/ddiD1eD+XE4KxmCSjyDbYSOCXwkAExthfA=; b=jPAJEkYqRTTFRdlZpgK96LlbrJB43ZEhj+V7JBx29gHPyWlbTHTO/WKQytv5mIdy7E WzCdJhBpyWoxBcl+vxwq1yRxJzDWczbzGf+fOGUN8+SeTdjwsfauteAW0Xqt5hQKGx8F FDAeuXYfm8bWPtOBsKnNgu2wJs5bLB4vnmKz2r43iZtg175cqflnXNxDegGXqlC2/sno wTuzpnvPR3GMEEnAoozpscdfKlQOk9DZlnbErW3uSsE6l23KNJhbbFb0h0AR6VbmZYab c/ClDYIT9qWOOL2a69PnP82nvelBAZbZgG/7mEvXDXofl5DrhjBCn3dZ04295c4dbYnm WQkw== X-Forwarded-Encrypted: i=1; AFNElJ9IUWtcAQX6y0U55vgKzkuEWNMpc7FtJrMCf1p7fsGh7yQjDSXWbti6lLOzjXdoIIi+ABsm3XNBmKMdeqk=@vger.kernel.org X-Gm-Message-State: AOJu0YzJ3gWBqFcfEQA/K+R5Gs+PWmNcPZCJKXTNUA0mHIoLmX5m/U/N uW+RfUGv3y7aZoqyKfiR4RiJKjeLVSVsgVSLeUKrsphynjFYmmQHmkqr X-Gm-Gg: Acq92OFKtS8xe3e0f2M76pOLJQpy0R/18N7HfJLVJmzB6flcvpIhpWP0xWqIC0N9+pM WhRSoZWY0S5bunwqZn7fiV9+y+eD9Z0s5k2p2nNXHLH3XObk7OL2JJfSh/plq4i7PtRepGeL5lC V6Gi/wNmqZiTlHmjH6pbz8pquvGFDieYHWELSh5cdiDsq+E8HEeRrdRFmtc8TBLXYWrLpTatooF +YqRpu/2FBLXog3440XKzNlTlk/Ll9oAi5ZqsB4tDwaqy4opEiyV/CgzuI5hG70MjLoX08bn4eJ l9nt2/mgVm6ctgz4VrRJl6kaRvdaoLkdemWRJ07wqFJtyARdsIrWonzviSPw2XY5k1fYDVhoJIH RI3bMmmoz3XPZz30tUU6nefY/U+li8OfXuV54pd1rXd+8tOmdoV/KpVGVzWTyRE9vYiC9SmakFR r4uvXCvWUt9ivpqmVbIeE8kw== X-Received: by 2002:a05:6a21:3386:b0:39f:794f:94d8 with SMTP id adf61e73a8af0-3b22ec9aecemr12673319637.29.1779023062153; Sun, 17 May 2026 06:04:22 -0700 (PDT) Received: from mincom1 ([119.214.48.64]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-83f19c77822sm11712607b3a.41.2026.05.17.06.04.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2026 06:04:21 -0700 (PDT) From: Jihong Min To: Greg Kroah-Hartman , Mathias Nyman Cc: Guenter Roeck , Jonathan Corbet , Shuah Khan , Mario Limonciello , Basavaraj Natikar , linux-usb@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Jihong Min Subject: [PATCH v6 0/2] AMD Promontory 21 xHCI temperature sensor support Date: Sun, 17 May 2026 22:04:05 +0900 Message-ID: <20260517130407.795157-1-hurryman2212@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, This series adds temperature monitoring for AMD Promontory 21 (PROM21) xHCI PCI functions. Patch 1 adds a small PROM21-specific xHCI PCI glue driver. USB host operation is delegated to the common xhci-pci code, while the PROM21 glue publishes an auxiliary device for optional sensor support. Patch 2 adds an auxiliary-bus hwmon driver that binds to that auxiliary device and exposes the PROM21 xHCI temperature value as temp1_input. The hwmon driver reads the sensor through a vendor index/data register pair in the xHCI PCI MMIO BAR. It does not wake the parent PCI device for hwmon reads; if the parent is suspended, the read returns -ENODATA. Changes in v6: - Make USB_XHCI_PCI_PROM21 a hidden tristate that follows USB_XHCI_PCI, so the PROM21 PCI glue is built in with a built-in xhci-pci core and built as a module with a modular xhci-pci core. - Use an IDA-allocated auxiliary device id instead of encoding the PCI domain/BDF into the auxiliary id. - Use a 32-bit read for the PROM21 vendor data register and mask the low byte instead of using readb(). Jihong Min (2): usb: xhci-pci: add AMD Promontory 21 PCI glue hwmon: add AMD Promontory 21 xHCI temperature sensor support Documentation/hwmon/index.rst | 1 + Documentation/hwmon/prom21-xhci.rst | 101 ++++++++ drivers/hwmon/Kconfig | 10 + drivers/hwmon/Makefile | 1 + drivers/hwmon/prom21-xhci.c | 239 ++++++++++++++++++ drivers/usb/host/Kconfig | 7 + drivers/usb/host/Makefile | 1 + drivers/usb/host/xhci-pci-prom21.c | 136 ++++++++++ drivers/usb/host/xhci-pci.c | 11 + drivers/usb/host/xhci-pci.h | 3 + include/linux/platform_data/usb-xhci-prom21.h | 22 ++ 11 files changed, 532 insertions(+) create mode 100644 Documentation/hwmon/prom21-xhci.rst create mode 100644 drivers/hwmon/prom21-xhci.c create mode 100644 drivers/usb/host/xhci-pci-prom21.c create mode 100644 include/linux/platform_data/usb-xhci-prom21.h -- 2.53.0