diff options
| author | Linus Torvalds <[email protected]> | 2025-01-10 16:14:22 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2025-01-10 16:14:22 +0000 |
| commit | 8c8d54116fa289e4d559c0a8fb27d11de9a3a8bc (patch) | |
| tree | b78e9e1369de5808394a3e0450abc4790e46115b /drivers/platform/x86/intel/pmc | |
| parent | Merge tag 'regulator-fix-v6.13-rc6' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
| parent | platform/x86: intel/pmc: Fix ioremap() of bad address (diff) | |
| download | kernel-8c8d54116fa289e4d559c0a8fb27d11de9a3a8bc.tar.gz kernel-8c8d54116fa289e4d559c0a8fb27d11de9a3a8bc.zip | |
Merge tag 'platform-drivers-x86-v6.13-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver fixes from Ilpo Järvinen:
"Fixes and new HW support:
- amd/pmc: Match IRQ1 wakeup disable with the enable on i8042 side
- intel: power-domains: Clearwater Forest support
- intel/pmc: Skip SSRAM setup when no additional devices are present
- ISST: Clearwater Forest support"
* tag 'platform-drivers-x86-v6.13-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
platform/x86: intel/pmc: Fix ioremap() of bad address
platform/x86: ISST: Add Clearwater Forest to support list
platform/x86/intel: power-domains: Add Clearwater Forest support
platform/x86/amd/pmc: Only disable IRQ1 wakeup where i8042 actually enabled it
Diffstat (limited to 'drivers/platform/x86/intel/pmc')
| -rw-r--r-- | drivers/platform/x86/intel/pmc/core_ssram.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel/pmc/core_ssram.c b/drivers/platform/x86/intel/pmc/core_ssram.c index 50ebfd586d3f..739569803017 100644 --- a/drivers/platform/x86/intel/pmc/core_ssram.c +++ b/drivers/platform/x86/intel/pmc/core_ssram.c @@ -269,8 +269,12 @@ pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset) /* * The secondary PMC BARS (which are behind hidden PCI devices) * are read from fixed offsets in MMIO of the primary PMC BAR. + * If a device is not present, the value will be 0. */ ssram_base = get_base(tmp_ssram, offset); + if (!ssram_base) + return 0; + ssram = ioremap(ssram_base, SSRAM_HDR_SIZE); if (!ssram) return -ENOMEM; |
