From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 239E12D9ED1 for ; Thu, 7 May 2026 03:32:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778124743; cv=none; b=PlC/tOv9fWqTaKvklDcVmb4SOmnyoVfBtslyq8gq0sBh8B+1JbwiPElTuUgzBquhc8v1+g17ScuR44cmW5ePxEkem4KcT3y3Sa6iQ+N2BeZZ39ZidkN7EsdZcVVaWKAWYgN8LiX9XyAeIW7Ngl6XSiQU5OM3QgWIkE1R5Jnnpu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778124743; c=relaxed/simple; bh=GXflDZZtOj++0sRst0xKUH830AVIhbrLZYn/7oCG1YI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CJxdZaKvpgqMBvBWtmyl1mPH8aXZz7xt6dhPDSIncuJtB6hu8BOYi3lpd1np25tfVpJl76SHsnXQvFvkrpB8MSrPaRe7OHwub6rQMdWP/ke3QTSLv3GGxSciIAXtJBFZxx6+Ei2Y/ooggKIb0zqVYxdYQs8O74TnrrqF9R2F45w= 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=luqXzygQ; arc=none smtp.client-ip=209.85.210.182 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="luqXzygQ" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-82fbf5d4dc2so218310b3a.1 for ; Wed, 06 May 2026 20:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778124741; x=1778729541; 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=/VhP1DpEaR3JO7WzlQe2Tdq2/A5+ePt/o60+NrBJM7o=; b=luqXzygQvDDqQO6JKgJeh8+erGDIEh/0uGuXD79oS+mm46+HPKEtLo/P0w8IkuSmY7 5lvj1MAcNM8vKTH+km062J07QoupRDeHMcKE/U/yzoX7a0/6PuNlxpDV5j4bwNYiG+XE 8ywAqTbAqDAffoI1K3ONp1PNHVzcIq7iIB9Jz8no2uRt0u+dzqcNiJx/4MN1SbJDxDFv 7wiKoGphgQXlLh53TEdOAMnYmmRzFLB2ivVIJVHZB6FKAS3EYTb5JS32U/pc92kZrrxK Gmh2WVhf8sUuEOWEJ1bF98JLq8E3j9PhXlCRu025wU4WzQZpemAoX0SbI+FJks/dCUqf TJ9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778124741; x=1778729541; 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=/VhP1DpEaR3JO7WzlQe2Tdq2/A5+ePt/o60+NrBJM7o=; b=cLA33dqyHe6851wTY6l1f74bp56r/ojOpzArK/2uyzV6sv7ir9Qkmk17Eb25G+UA2R zzT8PRlyBB2CqnJBo75hEAcMw2PgXYAY0vZG0PaAT+E53oZ7wfPoTcUtTqWz358a0BUc XYI/U3wkbxFFh2FoePUVi6zWY5Px1DCGbsu+wmKsxz1sACT8G7jNzDhhRsl6lAwtLZL5 2R84U6TEkEi/S2ekpI1kGq4UkCddtLWOamN3RbFQEHCl8HxyFM0MuHQscXSPzvlqRs0W EEN61Y4wCfWWdPfm+VBLZXWy20JfyGXRvTFbb+cZn+KUmFlAWkRi/TbbSvO8hcYkg5hD dXnA== X-Forwarded-Encrypted: i=1; AFNElJ+0NuraA03KGBOjPQNAEkkf6mdTWaG5FIahHNx0q23RW+wTjYE0Narrz6662YLh2h9sudHbVcyNO1XJiA==@vger.kernel.org X-Gm-Message-State: AOJu0YxzSVSI+CtPQSMpsc8RmUCHCrrxyzkfbYNoklmclAsdj+54sXNI g5LkzizlKY11ESaHxbIyUiknJxg7DWjQZhz9pGOZ41SCNXN5shT5aiYp X-Gm-Gg: AeBDiett+Q3AN2SnGycvdd29YJnaK5RdBgF4zBd0/XZZc8V39x/KVY5P5EJ0N86Yuak vHD5SUeN/pcbqynpSr362Xf84smY8k0UkYszHbLBHPgqpbXo6EH5ARiYgSAiV418SB6yXlh7v+q M3TPGiZGdAtDxJGQp3pLVDu0bs6aStWwiF275Y5GZF+DVaEIaKSp7YuKWGRSRqWgd08yJureAqs dLxT1QjrCoLLicQnwI8DYYIkrTx2USw5J0MIMkwaZYj5Xx/UNtdy/Q+3HTtBgOkFa+Jye5UEHzU kyYtC6MO1XvqqP7qvvYMJjDBYt+EoZiNdEG/nr+CmPdVFzcbw6dFgZPP4iiu+ir5Wm2URIUKu24 ffSTF3s3ehLBZGgYqdYIklRXWfTldpNUXyKF06jYSIuCygeUqPjvuNMHzOAojmdhwABlAnfRr4K ohowDvF3cR/FGIx70xY931mA0+ne2sRpQ= X-Received: by 2002:a05:6a00:198c:b0:82c:b808:4c59 with SMTP id d2e1a72fcca58-83a5ea3fe9bmr5893529b3a.46.1778124741306; Wed, 06 May 2026 20:32:21 -0700 (PDT) Received: from mincom1 ([14.67.155.79]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-839682a103esm9171580b3a.51.2026.05.06.20.32.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2026 20:32:20 -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 v3 0/2] AMD Promontory 21 xHCI temperature hwmon support Date: Thu, 7 May 2026 12:31:57 +0900 Message-ID: X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, This series adds hwmon support for the temperature sensor exposed by AMD Promontory 21 (PROM21) xHCI controllers. Patch 1 adds a small generic auxiliary-device registration path to xhci-pci for selected xHCI PCI controllers. Patch 2 adds the PROM21 hwmon driver. The driver binds through the auxiliary bus, reads the PROM21 xHCI temperature value through the controller MMIO BAR, and exposes it through hwmon. Changes in v3: - Use pci_match_id() with a plain struct pci_device_id table and PCI_DEVICE_DATA() for the auxiliary device name. - Remove conditional compilation blocks from xhci-pci.c and guard the auxiliary add/remove call sites with IS_ENABLED(). - Use the full AMD Promontory 21 name in commit messages, Kconfig help text, and documentation. - Document the PROM21 chipset IP relationship to AMD 6xx/8xx series chipsets. - Change the default hwmon read behavior to not wake the xHCI PCI device. Return -EPERM when the device is suspended, matching the amdgpu precedent, and keep pm as an opt-in module parameter for runtime PM state changes during device memory access. - Keep Documentation/hwmon/index.rst sorted. - Small refactoring: remove the duplicate PROM21 PCI ID check from the hwmon driver and use the hwmon device name as the auxiliary device suffix. v2: https://lore.kernel.org/r/cover.1778099627.git.hurryman2212@gmail.com v1: https://lore.kernel.org/r/20260506032939.92351-1-hurryman2212@gmail.com Jihong Min (2): usb: xhci-pci: add generic auxiliary device interface hwmon: add AMD Promontory 21 xHCI temperature sensor support Documentation/hwmon/index.rst | 1 + Documentation/hwmon/prom21-hwmon.rst | 86 ++++++++ drivers/hwmon/Kconfig | 11 + drivers/hwmon/Makefile | 1 + drivers/hwmon/prom21-hwmon.c | 293 +++++++++++++++++++++++++++ drivers/usb/host/Kconfig | 10 + drivers/usb/host/xhci-pci.c | 83 ++++++++ 7 files changed, 485 insertions(+) create mode 100644 Documentation/hwmon/prom21-hwmon.rst create mode 100644 drivers/hwmon/prom21-hwmon.c -- 2.53.0