From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 238CB2D97AA for ; Thu, 7 May 2026 03:32:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778124743; cv=none; b=uoehvX+3a+/cIEbBoeeFXm2VnSaSfqZuwJBOycCNM3qdeRBBqQcXRbTd54j5PVGhn5O9SlfnmZp9LQP+nMnhV6IDYAeWbM3OKfM+oUmcju0ZBIckqkJuAIkMNDN7ikRnWwcGwzniYPMJKGHHJUkk8CSd9pFs4SUIx7tkq8Vx/kA= 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.178 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-f178.google.com with SMTP id d2e1a72fcca58-837b39eb078so200940b3a.2 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=koFYPz6H73Zy0MjZsYjtmSs+4qrUGrgLvZcpwNure6mLGHfub1dCRWDd8TFKdszwda X19zSzdqDy0nF46xj61q3WpJowmoDIjobb5pYAm8AQbSoieU9RRJl3/ImhAxNP2WtSSI 2sCjpqyYb3zPAHVztUXKgwgF0eaAef1wTfNeNSwBERkOooa/4JqOJ56VlNvOnBbra/wX aWzPpEDpYo5Q++CWmUdWyrkhya2AdfHjK3gWT7pA/qe62gXO7ys/ZYwPnZ64UDVN8jii Vhq+XXwZXSOK7KtB5/dUaKHPChV7rBWS0G3yCixSU8+N9IHKVO0wJaNu0m/gYdQOKROI +FXw== X-Forwarded-Encrypted: i=1; AFNElJ/SsIAAr6XbOoIJ8Iqt2OyhBZ340nfokN/NBWgA/cZdy+0F9oNwuH+Wm9qaLYmWOhOYi/doCTp7AR9pTHw=@vger.kernel.org X-Gm-Message-State: AOJu0YzUESVdMdLjbs2SrORdjWyxLWtxTpm65Nz0vtA8TEJK2IyMiNUa aCv4QU2EqMh+de/nojigERPl3fK1b3I5uXKihPvMU8q9b5n0bcV1DSV+ROz7cAtJ X-Gm-Gg: AeBDiet+SsRbE1enPcp7AKBpVXVEcgeb/KB7jDCsZjCpoDM/HhIPEi8Vm6pjl/khZ/O 7BXh9zMdZ7E1DsrvwLVQUCrEj5ZHMKSqV2OsLgpYi7KZqHggY7bh1PADRU6bkCIdgo39gWkAg8v QrU2YRpuwup/DViou8M/K50wVmZTJ19zLy/HdyPROpUiWdIAB1O8Gv7HPD6zikn4DGeHK7Ck2Tl VzogP/Gk9AveM5YPtFqBTHwoqu81JcumdciMwBIGR4wwU62LhDpun4+CIcqBDqfLhpRFiVzr8c8 Ljtqm4rmXnh4TL4O5+oj3kDpcjPValcNq37ygdhOL5bdgpodZpLLDkIT4QtAEROOqCayCMOx/tp x6ALZnJQw3P6Hv7V8YTapuVI+IPHbbccJSfuQsrHoWdzsl5Ab2ioO03iXL/fWHaA2SNpFAx7BR3 EoxemBStWBVaKdL1aKHjWfM26yUmSfmac= 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-kernel@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