* [PATCH] usb: typec: tipd: fix use of device-specific init function
@ 2024-01-04 17:07 Javier Carrasco
2024-01-05 12:36 ` Heikki Krogerus
0 siblings, 1 reply; 4+ messages in thread
From: Javier Carrasco @ 2024-01-04 17:07 UTC (permalink / raw)
To: Heikki Krogerus, Greg Kroah-Hartman, Roger Quadros,
Javier Carrasco
Cc: linux-usb, linux-kernel, Javier Carrasco
The current implementation supports device-pecific callbacks for the
init function with a function pointer. The patch that introduced this
feature did not update one call to the tps25750 init function to turn it
into a call with the new pointer in the resume function.
Fixes: d49f90822015 ("usb: typec: tipd: add init and reset functions to tipd_data")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/usb/typec/tipd/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c
index a956eb976906..8a7cdfee27a1 100644
--- a/drivers/usb/typec/tipd/core.c
+++ b/drivers/usb/typec/tipd/core.c
@@ -1495,7 +1495,7 @@ static int __maybe_unused tps6598x_resume(struct device *dev)
return ret;
if (ret == TPS_MODE_PTCH) {
- ret = tps25750_init(tps);
+ ret = tps->data->init(tps);
if (ret)
return ret;
}
---
base-commit: e7d3b9f28654dbfce7e09f8028210489adaf6a33
change-id: 20240104-dev_spec_init-4df8711295cd
Best regards,
--
Javier Carrasco <javier.carrasco.cruz@gmail.com>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: typec: tipd: fix use of device-specific init function
2024-01-04 17:07 [PATCH] usb: typec: tipd: fix use of device-specific init function Javier Carrasco
@ 2024-01-05 12:36 ` Heikki Krogerus
2024-01-05 12:42 ` Javier Carrasco
0 siblings, 1 reply; 4+ messages in thread
From: Heikki Krogerus @ 2024-01-05 12:36 UTC (permalink / raw)
To: Javier Carrasco
Cc: Greg Kroah-Hartman, Roger Quadros, Javier Carrasco, linux-usb,
linux-kernel
On Thu, Jan 04, 2024 at 06:07:12PM +0100, Javier Carrasco wrote:
> The current implementation supports device-pecific callbacks for the
> init function with a function pointer. The patch that introduced this
> feature did not update one call to the tps25750 init function to turn it
> into a call with the new pointer in the resume function.
>
> Fixes: d49f90822015 ("usb: typec: tipd: add init and reset functions to tipd_data")
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
This was suggested by Roger, no?
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> ---
> drivers/usb/typec/tipd/core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c
> index a956eb976906..8a7cdfee27a1 100644
> --- a/drivers/usb/typec/tipd/core.c
> +++ b/drivers/usb/typec/tipd/core.c
> @@ -1495,7 +1495,7 @@ static int __maybe_unused tps6598x_resume(struct device *dev)
> return ret;
>
> if (ret == TPS_MODE_PTCH) {
> - ret = tps25750_init(tps);
> + ret = tps->data->init(tps);
> if (ret)
> return ret;
> }
thans,
--
heikki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: typec: tipd: fix use of device-specific init function
2024-01-05 12:36 ` Heikki Krogerus
@ 2024-01-05 12:42 ` Javier Carrasco
2024-01-05 12:53 ` Greg Kroah-Hartman
0 siblings, 1 reply; 4+ messages in thread
From: Javier Carrasco @ 2024-01-05 12:42 UTC (permalink / raw)
To: Heikki Krogerus
Cc: Greg Kroah-Hartman, Roger Quadros, Javier Carrasco, linux-usb,
linux-kernel
On 05.01.24 13:36, Heikki Krogerus wrote:
> On Thu, Jan 04, 2024 at 06:07:12PM +0100, Javier Carrasco wrote:
>> The current implementation supports device-pecific callbacks for the
>> init function with a function pointer. The patch that introduced this
>> feature did not update one call to the tps25750 init function to turn it
>> into a call with the new pointer in the resume function.
>>
>> Fixes: d49f90822015 ("usb: typec: tipd: add init and reset functions to tipd_data")
>> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
>
> This was suggested by Roger, no?
>
Yes, it was. Thanks for the reminder.
Could the following trailer be added before applying?
Suggested-by: Roger Quadros <rogerq@kernel.org>
Otherwise I will resend the patch with that addition.
> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
>
>> ---
>> drivers/usb/typec/tipd/core.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c
>> index a956eb976906..8a7cdfee27a1 100644
>> --- a/drivers/usb/typec/tipd/core.c
>> +++ b/drivers/usb/typec/tipd/core.c
>> @@ -1495,7 +1495,7 @@ static int __maybe_unused tps6598x_resume(struct device *dev)
>> return ret;
>>
>> if (ret == TPS_MODE_PTCH) {
>> - ret = tps25750_init(tps);
>> + ret = tps->data->init(tps);
>> if (ret)
>> return ret;
>> }
>
> thans,
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: typec: tipd: fix use of device-specific init function
2024-01-05 12:42 ` Javier Carrasco
@ 2024-01-05 12:53 ` Greg Kroah-Hartman
0 siblings, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2024-01-05 12:53 UTC (permalink / raw)
To: Javier Carrasco
Cc: Heikki Krogerus, Roger Quadros, Javier Carrasco, linux-usb,
linux-kernel
On Fri, Jan 05, 2024 at 01:42:47PM +0100, Javier Carrasco wrote:
> On 05.01.24 13:36, Heikki Krogerus wrote:
> > On Thu, Jan 04, 2024 at 06:07:12PM +0100, Javier Carrasco wrote:
> >> The current implementation supports device-pecific callbacks for the
> >> init function with a function pointer. The patch that introduced this
> >> feature did not update one call to the tps25750 init function to turn it
> >> into a call with the new pointer in the resume function.
> >>
> >> Fixes: d49f90822015 ("usb: typec: tipd: add init and reset functions to tipd_data")
> >> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> >
> > This was suggested by Roger, no?
> >
>
> Yes, it was. Thanks for the reminder.
>
> Could the following trailer be added before applying?
>
> Suggested-by: Roger Quadros <rogerq@kernel.org>
The tools automatically just added that now, thanks.
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-05 12:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-04 17:07 [PATCH] usb: typec: tipd: fix use of device-specific init function Javier Carrasco
2024-01-05 12:36 ` Heikki Krogerus
2024-01-05 12:42 ` Javier Carrasco
2024-01-05 12:53 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox