Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

i2c: designware: Remove dead code in AMD ISP case

The I²C bus shared with P-Unit is Intel only thing as far as I know.
The AMD ISP driver has no relationship with P-Unit. Remove dead code
that seems copied without much thinking.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260129103439.187478-1-andriy.shevchenko@linux.intel.com

authored by

Andy Shevchenko and committed by
Andi Shyti
f35e16ec 56007224

+1 -12
+1 -12
drivers/i2c/busses/i2c-designware-amdisp.c
··· 18 18 static void amd_isp_dw_i2c_plat_pm_cleanup(struct dw_i2c_dev *i2c_dev) 19 19 { 20 20 pm_runtime_disable(i2c_dev->dev); 21 - 22 - if (i2c_dev->shared_with_punit) 23 - pm_runtime_put_noidle(i2c_dev->dev); 24 21 } 25 22 26 23 static inline u32 amd_isp_dw_i2c_get_clk_rate(struct dw_i2c_dev *i2c_dev) ··· 76 79 77 80 device_enable_async_suspend(&pdev->dev); 78 81 79 - if (isp_i2c_dev->shared_with_punit) 80 - pm_runtime_get_noresume(&pdev->dev); 81 - 82 82 pm_runtime_enable(&pdev->dev); 83 83 pm_runtime_get_sync(&pdev->dev); 84 84 ··· 124 130 { 125 131 struct dw_i2c_dev *i_dev = dev_get_drvdata(dev); 126 132 127 - if (i_dev->shared_with_punit) 128 - return 0; 129 - 130 133 i2c_dw_disable(i_dev); 131 134 i2c_dw_prepare_clk(i_dev, false); 132 135 ··· 152 161 if (!i_dev) 153 162 return -ENODEV; 154 163 155 - if (!i_dev->shared_with_punit) 156 - i2c_dw_prepare_clk(i_dev, true); 157 - 164 + i2c_dw_prepare_clk(i_dev, true); 158 165 i2c_dw_init(i_dev); 159 166 160 167 return 0;