platform/x86/intel/pmc: Fix in pmc_core_ssram_get_pmc()
Subsystems (2)
PATCH 2/2 platform/x86/intel/pmc: Fix in pmc_core_ssram_get_pmc()
From: Rajvi Jingar <[email protected]>
Passing PMC_IDX_MAIN in pmc_core_pmc_add() adds only primary pmc to pmcdev. Use pmc_idx instead to add all available pmcs.
--- drivers/platform/x86/intel/pmc/core_ssram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/intel/pmc/core_ssram.c +1 -1
@@ -287,7 +287,7 @@ pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset)if (!map)return -ENODEV ; -return pmc_core_pmc_add (pmcdev, pwrm_base, map,PMC_IDX_MAIN ); +return pmc_core_pmc_add (pmcdev, pwrm_base, map, pmc_idx); }int pmc_core_ssram_init (struct pmc_dev *pmcdev)
Signature · 1 line
2.34.1
Quoted 16 lines · rjingar
From: Rajvi Jingar <[email protected]>
Passing
PMC_IDX_MAINinpmc_core_pmc_add()adds only primary pmc to pmcdev. Usepmc_idxinstead to add all available pmcs.Fixes a01486dc4bb1 ("platform/x86/intel/pmc: Cleanup SSRAM discovery")Signed-off-by Rajvi Jingar <[email protected]>--- drivers/platform/x86/intel/pmc/core_ssram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/intel/pmc/core_ssram.c +0
-0
drivers/platform/x86/intel/pmc/core_ssram.c pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset) · line 290
Quoted 5 lines
drivers/platform/x86/intel/pmc/core_ssram.c +1
-1@@ -287,7 +287,7 @@ pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset)if (!map)return -ENODEV ; -return pmc_core_pmc_add (pmcdev, pwrm_base, map,PMC_IDX_MAIN ); +return pmc_core_pmc_add (pmcdev, pwrm_base, map, pmc_idx);
Signature · 1 line
i.
Hi,
Quoted 7 lines · rjingar
From: Rajvi Jingar <[email protected]>
Passing
PMC_IDX_MAINinpmc_core_pmc_add()adds only primary pmc to pmcdev. Usepmc_idxinstead to add all available pmcs.Fixes a01486dc4bb1 ("platform/x86/intel/pmc: Cleanup SSRAM discovery")Signed-off-by Rajvi Jingar <[email protected]>
Thank you for your patch, I've applied this patch to my review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while.
Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window.
Regards,
Hans
Quoted 17 lines
--- drivers/platform/x86/intel/pmc/core_ssram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/intel/pmc/core_ssram.c +1
-1@@ -287,7 +287,7 @@ pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset)if (!map)return -ENODEV ; -return pmc_core_pmc_add (pmcdev, pwrm_base, map,PMC_IDX_MAIN ); +return pmc_core_pmc_add (pmcdev, pwrm_base, map, pmc_idx); }int pmc_core_ssram_init (struct pmc_dev *pmcdev)