Skip to content

Commit 6c023ad

Browse files
andy-shevbroonie
authored andcommitted
ASoC: Intel: catpt: Carefully use PCI bitwise constants
PM constants for PCI devices are defined with bitwise annotation. When used as is, sparse complains about that: .../catpt/dsp.c:390:9: warning: restricted pci_power_t degrades to integer .../catpt/dsp.c:414:9: warning: restricted pci_power_t degrades to integer Force them to be u32 in the driver. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://msgid.link/r/20240307163734.3852754-1-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 5b876c3 commit 6c023ad

File tree

1 file changed

+2
-2
lines changed
  • sound/soc/intel/catpt

1 file changed

+2
-2
lines changed

sound/soc/intel/catpt/dsp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ int catpt_dsp_power_down(struct catpt_dev *cdev)
387387
mask = cdev->spec->d3srampgd_bit | cdev->spec->d3pgd_bit;
388388
catpt_updatel_pci(cdev, VDRTCTL0, mask, cdev->spec->d3pgd_bit);
389389

390-
catpt_updatel_pci(cdev, PMCS, PCI_PM_CTRL_STATE_MASK, PCI_D3hot);
390+
catpt_updatel_pci(cdev, PMCS, PCI_PM_CTRL_STATE_MASK, (__force u32)PCI_D3hot);
391391
/* give hw time to drop off */
392392
udelay(50);
393393

@@ -411,7 +411,7 @@ int catpt_dsp_power_up(struct catpt_dev *cdev)
411411
val = mask & (~CATPT_VDRTCTL2_DTCGE);
412412
catpt_updatel_pci(cdev, VDRTCTL2, mask, val);
413413

414-
catpt_updatel_pci(cdev, PMCS, PCI_PM_CTRL_STATE_MASK, PCI_D0);
414+
catpt_updatel_pci(cdev, PMCS, PCI_PM_CTRL_STATE_MASK, (__force u32)PCI_D0);
415415

416416
/* SRAM power gating none */
417417
mask = cdev->spec->d3srampgd_bit | cdev->spec->d3pgd_bit;

0 commit comments

Comments
 (0)