* [PATCH] drm/amd/pm: remove deprecated I2C_CLASS_SPD support from newly added SMU_14_0_2
@ 2024-05-09 11:37 Heiner Kallweit
2024-05-09 17:15 ` Alex Deucher
0 siblings, 1 reply; 5+ messages in thread
From: Heiner Kallweit @ 2024-05-09 11:37 UTC (permalink / raw)
To: Evan Quan, Alex Deucher, Christian König, Pan, Xinhui,
David Airlie, Daniel Vetter
Cc: linux-i2c@vger.kernel.org,
open list:RADEON and AMDGPU DRM DRIVERS, open list:AMD KFD
Support for I2C_CLASS_SPD is currently being removed from the kernel.
Only remaining step is to remove the definition of I2C_CLASS_SPD.
Setting I2C_CLASS_SPD in a driver is a no-op meanwhile, so remove it
here.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
index 0d5ad531c..fb6f3bbe2 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
@@ -1616,7 +1616,6 @@ static int smu_v14_0_2_i2c_control_init(struct smu_context *smu)
smu_i2c->port = i;
mutex_init(&smu_i2c->mutex);
control->owner = THIS_MODULE;
- control->class = I2C_CLASS_SPD;
control->dev.parent = &adev->pdev->dev;
control->algo = &smu_v14_0_2_i2c_algo;
snprintf(control->name, sizeof(control->name), "AMDGPU SMU %d", i);
--
2.45.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/amd/pm: remove deprecated I2C_CLASS_SPD support from newly added SMU_14_0_2
2024-05-09 11:37 [PATCH] drm/amd/pm: remove deprecated I2C_CLASS_SPD support from newly added SMU_14_0_2 Heiner Kallweit
@ 2024-05-09 17:15 ` Alex Deucher
2024-05-29 6:47 ` Wolfram Sang
0 siblings, 1 reply; 5+ messages in thread
From: Alex Deucher @ 2024-05-09 17:15 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Evan Quan, Alex Deucher, Christian König, Pan, Xinhui,
David Airlie, Daniel Vetter, linux-i2c@vger.kernel.org,
open list:RADEON and AMDGPU DRM DRIVERS, open list:AMD KFD
On Thu, May 9, 2024 at 8:02 AM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>
> Support for I2C_CLASS_SPD is currently being removed from the kernel.
> Only remaining step is to remove the definition of I2C_CLASS_SPD.
> Setting I2C_CLASS_SPD in a driver is a no-op meanwhile, so remove it
> here.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
and applied.
Thanks!
> ---
> drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
> index 0d5ad531c..fb6f3bbe2 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
> @@ -1616,7 +1616,6 @@ static int smu_v14_0_2_i2c_control_init(struct smu_context *smu)
> smu_i2c->port = i;
> mutex_init(&smu_i2c->mutex);
> control->owner = THIS_MODULE;
> - control->class = I2C_CLASS_SPD;
> control->dev.parent = &adev->pdev->dev;
> control->algo = &smu_v14_0_2_i2c_algo;
> snprintf(control->name, sizeof(control->name), "AMDGPU SMU %d", i);
> --
> 2.45.0
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/amd/pm: remove deprecated I2C_CLASS_SPD support from newly added SMU_14_0_2
2024-05-09 17:15 ` Alex Deucher
@ 2024-05-29 6:47 ` Wolfram Sang
2024-05-29 21:09 ` Alex Deucher
0 siblings, 1 reply; 5+ messages in thread
From: Wolfram Sang @ 2024-05-29 6:47 UTC (permalink / raw)
To: Alex Deucher
Cc: Heiner Kallweit, Evan Quan, Alex Deucher, Christian König,
Pan, Xinhui, David Airlie, Daniel Vetter,
linux-i2c@vger.kernel.org,
open list:RADEON and AMDGPU DRM DRIVERS, open list:AMD KFD
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]
Hi Alex,
On Thu, May 09, 2024 at 01:15:32PM -0400, Alex Deucher wrote:
> On Thu, May 9, 2024 at 8:02 AM Heiner Kallweit <hkallweit1@gmail.com> wrote:
> >
> > Support for I2C_CLASS_SPD is currently being removed from the kernel.
> > Only remaining step is to remove the definition of I2C_CLASS_SPD.
> > Setting I2C_CLASS_SPD in a driver is a no-op meanwhile, so remove it
> > here.
> >
> > Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>
> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> and applied.
TLDR: can you ack this so I can apply it for -rc2?
Reason: I2C_CLASS_SPD was scheduled to be removed for 5.10. For some
reason, the newly introduced usage of I2C_CLASS_SPD in this driver went
unnoticed in -next. I would really like to remove I2C_CLASS_SPD now
before other users appear in the next cycle. In my experience, it is
possible to send Linus such patches for early rcX. Like it fixes a "bug"
when trying to handle a moving target.
So, would that be possible that I push this upstream so I can ultimately
remove I2C_CLASS_SPD without further dependencies? If you prefer to push
it through your tree, can you send it to Linus soon?
Thanks and happy hacking,
Wolfram
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/amd/pm: remove deprecated I2C_CLASS_SPD support from newly added SMU_14_0_2
2024-05-29 6:47 ` Wolfram Sang
@ 2024-05-29 21:09 ` Alex Deucher
2024-05-29 22:06 ` Wolfram Sang
0 siblings, 1 reply; 5+ messages in thread
From: Alex Deucher @ 2024-05-29 21:09 UTC (permalink / raw)
To: Wolfram Sang, Alex Deucher, Heiner Kallweit, Evan Quan,
Alex Deucher, Christian König, Pan, Xinhui, David Airlie,
Daniel Vetter, linux-i2c@vger.kernel.org,
open list:RADEON and AMDGPU DRM DRIVERS, open list:AMD KFD
On Wed, May 29, 2024 at 2:47 AM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
>
> Hi Alex,
>
> On Thu, May 09, 2024 at 01:15:32PM -0400, Alex Deucher wrote:
> > On Thu, May 9, 2024 at 8:02 AM Heiner Kallweit <hkallweit1@gmail.com> wrote:
> > >
> > > Support for I2C_CLASS_SPD is currently being removed from the kernel.
> > > Only remaining step is to remove the definition of I2C_CLASS_SPD.
> > > Setting I2C_CLASS_SPD in a driver is a no-op meanwhile, so remove it
> > > here.
> > >
> > > Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> >
> > Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> > and applied.
>
> TLDR: can you ack this so I can apply it for -rc2?
>
> Reason: I2C_CLASS_SPD was scheduled to be removed for 5.10. For some
> reason, the newly introduced usage of I2C_CLASS_SPD in this driver went
> unnoticed in -next. I would really like to remove I2C_CLASS_SPD now
> before other users appear in the next cycle. In my experience, it is
> possible to send Linus such patches for early rcX. Like it fixes a "bug"
> when trying to handle a moving target.
>
> So, would that be possible that I push this upstream so I can ultimately
> remove I2C_CLASS_SPD without further dependencies? If you prefer to push
> it through your tree, can you send it to Linus soon?
Yes, I'll include the patch in my PR for this week.
Thanks,
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/amd/pm: remove deprecated I2C_CLASS_SPD support from newly added SMU_14_0_2
2024-05-29 21:09 ` Alex Deucher
@ 2024-05-29 22:06 ` Wolfram Sang
0 siblings, 0 replies; 5+ messages in thread
From: Wolfram Sang @ 2024-05-29 22:06 UTC (permalink / raw)
To: Alex Deucher
Cc: Heiner Kallweit, Evan Quan, Alex Deucher, Christian König,
Pan, Xinhui, David Airlie, Daniel Vetter,
linux-i2c@vger.kernel.org,
open list:RADEON and AMDGPU DRM DRIVERS, open list:AMD KFD
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
> > remove I2C_CLASS_SPD without further dependencies? If you prefer to push
> > it through your tree, can you send it to Linus soon?
>
> Yes, I'll include the patch in my PR for this week.
Awesome, thank you!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-05-29 22:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-09 11:37 [PATCH] drm/amd/pm: remove deprecated I2C_CLASS_SPD support from newly added SMU_14_0_2 Heiner Kallweit
2024-05-09 17:15 ` Alex Deucher
2024-05-29 6:47 ` Wolfram Sang
2024-05-29 21:09 ` Alex Deucher
2024-05-29 22:06 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox