* [PATCH v1 1/1] i2c: designware: Remove dead code in AMD ISP case
@ 2026-01-29 10:34 Andy Shevchenko
2026-01-29 11:12 ` Mika Westerberg
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andy Shevchenko @ 2026-01-29 10:34 UTC (permalink / raw)
To: Andi Shyti, Pratap Nirujogi, Andy Shevchenko, linux-i2c,
linux-kernel
Cc: Mika Westerberg, Jan Dabros, Bin Du
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>
---
drivers/i2c/busses/i2c-designware-amdisp.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/i2c/busses/i2c-designware-amdisp.c b/drivers/i2c/busses/i2c-designware-amdisp.c
index ec9259dd2a4f..c48728ad9f6f 100644
--- a/drivers/i2c/busses/i2c-designware-amdisp.c
+++ b/drivers/i2c/busses/i2c-designware-amdisp.c
@@ -18,9 +18,6 @@
static void amd_isp_dw_i2c_plat_pm_cleanup(struct dw_i2c_dev *i2c_dev)
{
pm_runtime_disable(i2c_dev->dev);
-
- if (i2c_dev->shared_with_punit)
- pm_runtime_put_noidle(i2c_dev->dev);
}
static inline u32 amd_isp_dw_i2c_get_clk_rate(struct dw_i2c_dev *i2c_dev)
@@ -79,9 +76,6 @@ static int amd_isp_dw_i2c_plat_probe(struct platform_device *pdev)
device_enable_async_suspend(&pdev->dev);
- if (isp_i2c_dev->shared_with_punit)
- pm_runtime_get_noresume(&pdev->dev);
-
pm_runtime_enable(&pdev->dev);
pm_runtime_get_sync(&pdev->dev);
@@ -130,9 +124,6 @@ static int amd_isp_dw_i2c_plat_runtime_suspend(struct device *dev)
{
struct dw_i2c_dev *i_dev = dev_get_drvdata(dev);
- if (i_dev->shared_with_punit)
- return 0;
-
i2c_dw_disable(i_dev);
i2c_dw_prepare_clk(i_dev, false);
@@ -161,9 +152,7 @@ static int amd_isp_dw_i2c_plat_runtime_resume(struct device *dev)
if (!i_dev)
return -ENODEV;
- if (!i_dev->shared_with_punit)
- i2c_dw_prepare_clk(i_dev, true);
-
+ i2c_dw_prepare_clk(i_dev, true);
i2c_dw_init(i_dev);
return 0;
--
2.50.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] i2c: designware: Remove dead code in AMD ISP case
2026-01-29 10:34 [PATCH v1 1/1] i2c: designware: Remove dead code in AMD ISP case Andy Shevchenko
@ 2026-01-29 11:12 ` Mika Westerberg
2026-01-29 19:03 ` Nirujogi, Pratap
2026-02-04 1:29 ` Andi Shyti
2 siblings, 0 replies; 4+ messages in thread
From: Mika Westerberg @ 2026-01-29 11:12 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Andi Shyti, Pratap Nirujogi, linux-i2c, linux-kernel, Jan Dabros,
Bin Du
On Thu, Jan 29, 2026 at 11:34:38AM +0100, Andy Shevchenko wrote:
> 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>
Good catch!
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] i2c: designware: Remove dead code in AMD ISP case
2026-01-29 10:34 [PATCH v1 1/1] i2c: designware: Remove dead code in AMD ISP case Andy Shevchenko
2026-01-29 11:12 ` Mika Westerberg
@ 2026-01-29 19:03 ` Nirujogi, Pratap
2026-02-04 1:29 ` Andi Shyti
2 siblings, 0 replies; 4+ messages in thread
From: Nirujogi, Pratap @ 2026-01-29 19:03 UTC (permalink / raw)
To: Andy Shevchenko, Andi Shyti, Pratap Nirujogi, linux-i2c,
linux-kernel
Cc: Mika Westerberg, Jan Dabros, Bin Du
On 1/29/2026 5:34 AM, Andy Shevchenko wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
>
>
> 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>
> ---
Thanks Andy.
Reviewed-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
> drivers/i2c/busses/i2c-designware-amdisp.c | 13 +------------
> 1 file changed, 1 insertion(+), 12 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-designware-amdisp.c b/drivers/i2c/busses/i2c-designware-amdisp.c
> index ec9259dd2a4f..c48728ad9f6f 100644
> --- a/drivers/i2c/busses/i2c-designware-amdisp.c
> +++ b/drivers/i2c/busses/i2c-designware-amdisp.c
> @@ -18,9 +18,6 @@
> static void amd_isp_dw_i2c_plat_pm_cleanup(struct dw_i2c_dev *i2c_dev)
> {
> pm_runtime_disable(i2c_dev->dev);
> -
> - if (i2c_dev->shared_with_punit)
> - pm_runtime_put_noidle(i2c_dev->dev);
> }
>
> static inline u32 amd_isp_dw_i2c_get_clk_rate(struct dw_i2c_dev *i2c_dev)
> @@ -79,9 +76,6 @@ static int amd_isp_dw_i2c_plat_probe(struct platform_device *pdev)
>
> device_enable_async_suspend(&pdev->dev);
>
> - if (isp_i2c_dev->shared_with_punit)
> - pm_runtime_get_noresume(&pdev->dev);
> -
> pm_runtime_enable(&pdev->dev);
> pm_runtime_get_sync(&pdev->dev);
>
> @@ -130,9 +124,6 @@ static int amd_isp_dw_i2c_plat_runtime_suspend(struct device *dev)
> {
> struct dw_i2c_dev *i_dev = dev_get_drvdata(dev);
>
> - if (i_dev->shared_with_punit)
> - return 0;
> -
> i2c_dw_disable(i_dev);
> i2c_dw_prepare_clk(i_dev, false);
>
> @@ -161,9 +152,7 @@ static int amd_isp_dw_i2c_plat_runtime_resume(struct device *dev)
> if (!i_dev)
> return -ENODEV;
>
> - if (!i_dev->shared_with_punit)
> - i2c_dw_prepare_clk(i_dev, true);
> -
> + i2c_dw_prepare_clk(i_dev, true);
> i2c_dw_init(i_dev);
>
> return 0;
> --
> 2.50.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] i2c: designware: Remove dead code in AMD ISP case
2026-01-29 10:34 [PATCH v1 1/1] i2c: designware: Remove dead code in AMD ISP case Andy Shevchenko
2026-01-29 11:12 ` Mika Westerberg
2026-01-29 19:03 ` Nirujogi, Pratap
@ 2026-02-04 1:29 ` Andi Shyti
2 siblings, 0 replies; 4+ messages in thread
From: Andi Shyti @ 2026-02-04 1:29 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Pratap Nirujogi, linux-i2c, linux-kernel, Mika Westerberg,
Jan Dabros, Bin Du
Hi Andy,
On Thu, Jan 29, 2026 at 11:34:38AM +0100, Andy Shevchenko wrote:
> 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>
merged to i2c/i2c-host-2.
Thanks,
Andi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-02-04 1:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-29 10:34 [PATCH v1 1/1] i2c: designware: Remove dead code in AMD ISP case Andy Shevchenko
2026-01-29 11:12 ` Mika Westerberg
2026-01-29 19:03 ` Nirujogi, Pratap
2026-02-04 1:29 ` Andi Shyti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox