* [PATCH] usb: typec: tipd: Separate reset for TPS6598x
@ 2024-01-05 9:06 Jai Luthra
2024-01-05 9:15 ` Sergey Shtylyov
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Jai Luthra @ 2024-01-05 9:06 UTC (permalink / raw)
To: Heikki Krogerus, Greg Kroah-Hartman, Javier Carrasco
Cc: linux-usb, linux-kernel, rogerq, r-gunasekaran, vigneshr, d-gole,
Jai Luthra
Some platforms like SK-AM62, SK-AM62A cannot boot up to prompt if
TPS6598x is cold-reset during unconditionally on probe failures by
sending "GAID" sequence.
The probe can fail initially because USB0 remote-endpoint may not be
probed yet, which defines the usb-role-switch property.
Fixes: d49f90822015 ("usb: typec: tipd: add init and reset functions to tipd_data")
Closes: https://lore.kernel.org/linux-usb/vmngazj6si7xxss7txenezkcukqje2glhvvs7ipdcx3vjiqvlk@ohmmhhhlryws/
Signed-off-by: Jai Luthra <j-luthra@ti.com>
---
Boot-logs with this patch applied:
https://gist.github.com/jailuthra/b66d5722090ce1fbc2886986e53640f7
---
drivers/usb/typec/tipd/core.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c
index a956eb976906..8ba2aa05db51 100644
--- a/drivers/usb/typec/tipd/core.c
+++ b/drivers/usb/typec/tipd/core.c
@@ -1223,11 +1223,16 @@ static int cd321x_reset(struct tps6598x *tps)
return 0;
}
-static int tps6598x_reset(struct tps6598x *tps)
+static int tps25750_reset(struct tps6598x *tps)
{
return tps6598x_exec_cmd_tmo(tps, "GAID", 0, NULL, 0, NULL, 2000, 0);
}
+static int tps6598x_reset(struct tps6598x *tps)
+{
+ return 0;
+}
+
static int
tps25750_register_port(struct tps6598x *tps, struct fwnode_handle *fwnode)
{
@@ -1545,7 +1550,7 @@ static const struct tipd_data tps25750_data = {
.trace_status = trace_tps25750_status,
.apply_patch = tps25750_apply_patch,
.init = tps25750_init,
- .reset = tps6598x_reset,
+ .reset = tps25750_reset,
};
static const struct of_device_id tps6598x_of_match[] = {
---
base-commit: e2425464bc87159274879ab30f9d4fe624b9fcd2
change-id: 20240105-next-tps-fix-904ed92bc1cc
Best regards,
--
Jai Luthra <j-luthra@ti.com>
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] usb: typec: tipd: Separate reset for TPS6598x
2024-01-05 9:06 [PATCH] usb: typec: tipd: Separate reset for TPS6598x Jai Luthra
@ 2024-01-05 9:15 ` Sergey Shtylyov
2024-01-05 9:34 ` Greg Kroah-Hartman
2024-01-05 10:01 ` Jai Luthra
2024-01-05 10:10 ` Roger Quadros
2024-01-05 10:57 ` Heikki Krogerus
2 siblings, 2 replies; 7+ messages in thread
From: Sergey Shtylyov @ 2024-01-05 9:15 UTC (permalink / raw)
To: Jai Luthra, Heikki Krogerus, Greg Kroah-Hartman, Javier Carrasco
Cc: linux-usb, linux-kernel, rogerq, r-gunasekaran, vigneshr, d-gole
Hello!
On 1/5/24 12:06 PM, Jai Luthra wrote:
> Some platforms like SK-AM62, SK-AM62A cannot boot up to prompt if
> TPS6598x is cold-reset during unconditionally on probe failures by
Hm, I can't parse this. During what?
> sending "GAID" sequence.
>
> The probe can fail initially because USB0 remote-endpoint may not be
> probed yet, which defines the usb-role-switch property.
>
> Fixes: d49f90822015 ("usb: typec: tipd: add init and reset functions to tipd_data")
> Closes: https://lore.kernel.org/linux-usb/vmngazj6si7xxss7txenezkcukqje2glhvvs7ipdcx3vjiqvlk@ohmmhhhlryws/
> Signed-off-by: Jai Luthra <j-luthra@ti.com>
[...]
MBR, Sergey
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] usb: typec: tipd: Separate reset for TPS6598x
2024-01-05 9:15 ` Sergey Shtylyov
@ 2024-01-05 9:34 ` Greg Kroah-Hartman
2024-01-05 10:01 ` Sergey Shtylyov
2024-01-05 10:01 ` Jai Luthra
1 sibling, 1 reply; 7+ messages in thread
From: Greg Kroah-Hartman @ 2024-01-05 9:34 UTC (permalink / raw)
To: Sergey Shtylyov
Cc: Jai Luthra, Heikki Krogerus, Javier Carrasco, linux-usb,
linux-kernel, rogerq, r-gunasekaran, vigneshr, d-gole
On Fri, Jan 05, 2024 at 12:15:36PM +0300, Sergey Shtylyov wrote:
> Hello!
>
> On 1/5/24 12:06 PM, Jai Luthra wrote:
>
> > Some platforms like SK-AM62, SK-AM62A cannot boot up to prompt if
> > TPS6598x is cold-reset during unconditionally on probe failures by
>
> Hm, I can't parse this. During what?
See the thread that is listed here:
> > Closes: https://lore.kernel.org/linux-usb/vmngazj6si7xxss7txenezkcukqje2glhvvs7ipdcx3vjiqvlk@ohmmhhhlryws/
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] usb: typec: tipd: Separate reset for TPS6598x
2024-01-05 9:15 ` Sergey Shtylyov
2024-01-05 9:34 ` Greg Kroah-Hartman
@ 2024-01-05 10:01 ` Jai Luthra
1 sibling, 0 replies; 7+ messages in thread
From: Jai Luthra @ 2024-01-05 10:01 UTC (permalink / raw)
To: Sergey Shtylyov
Cc: Heikki Krogerus, Greg Kroah-Hartman, Javier Carrasco, linux-usb,
linux-kernel, rogerq, r-gunasekaran, vigneshr, d-gole
[-- Attachment #1: Type: text/plain, Size: 941 bytes --]
On Jan 05, 2024 at 12:15:36 +0300, Sergey Shtylyov wrote:
> Hello!
>
> On 1/5/24 12:06 PM, Jai Luthra wrote:
>
> > Some platforms like SK-AM62, SK-AM62A cannot boot up to prompt if
> > TPS6598x is cold-reset during unconditionally on probe failures by
>
> Hm, I can't parse this. During what?
My bad
s/cold-reset during unconditionally/cold-reset unconditionally/
>
> > sending "GAID" sequence.
> >
> > The probe can fail initially because USB0 remote-endpoint may not be
> > probed yet, which defines the usb-role-switch property.
> >
> > Fixes: d49f90822015 ("usb: typec: tipd: add init and reset functions to tipd_data")
> > Closes: https://lore.kernel.org/linux-usb/vmngazj6si7xxss7txenezkcukqje2glhvvs7ipdcx3vjiqvlk@ohmmhhhlryws/
> > Signed-off-by: Jai Luthra <j-luthra@ti.com>
> [...]
>
> MBR, Sergey
>
--
Thanks,
Jai
GPG Fingerprint: 4DE0 D818 E5D5 75E8 D45A AFC5 43DE 91F9 249A 7145
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] usb: typec: tipd: Separate reset for TPS6598x
2024-01-05 9:34 ` Greg Kroah-Hartman
@ 2024-01-05 10:01 ` Sergey Shtylyov
0 siblings, 0 replies; 7+ messages in thread
From: Sergey Shtylyov @ 2024-01-05 10:01 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Jai Luthra, Heikki Krogerus, Javier Carrasco, linux-usb,
linux-kernel, rogerq, r-gunasekaran, vigneshr, d-gole
On 1/5/24 12:34 PM, Greg Kroah-Hartman wrote:
[...]
>>> Some platforms like SK-AM62, SK-AM62A cannot boot up to prompt if
>>> TPS6598x is cold-reset during unconditionally on probe failures by
>>
>> Hm, I can't parse this. During what?
>
> See the thread that is listed here:
>
>>> Closes: https://lore.kernel.org/linux-usb/vmngazj6si7xxss7txenezkcukqje2glhvvs7ipdcx3vjiqvlk@ohmmhhhlryws/
I don't see how it helps with what seems to be a grammar issue...
Either a noun should follow "during" or that "during" just shouldn't
be there...
> thanks,
>
> greg k-h
MBR, Sergey
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] usb: typec: tipd: Separate reset for TPS6598x
2024-01-05 9:06 [PATCH] usb: typec: tipd: Separate reset for TPS6598x Jai Luthra
2024-01-05 9:15 ` Sergey Shtylyov
@ 2024-01-05 10:10 ` Roger Quadros
2024-01-05 10:57 ` Heikki Krogerus
2 siblings, 0 replies; 7+ messages in thread
From: Roger Quadros @ 2024-01-05 10:10 UTC (permalink / raw)
To: Jai Luthra, Heikki Krogerus, Greg Kroah-Hartman, Javier Carrasco
Cc: linux-usb, linux-kernel, r-gunasekaran, vigneshr, d-gole
On 05/01/2024 11:06, Jai Luthra wrote:
> Some platforms like SK-AM62, SK-AM62A cannot boot up to prompt if
> TPS6598x is cold-reset during unconditionally on probe failures by
> sending "GAID" sequence.
>
> The probe can fail initially because USB0 remote-endpoint may not be
> probed yet, which defines the usb-role-switch property.
>
> Fixes: d49f90822015 ("usb: typec: tipd: add init and reset functions to tipd_data")
> Closes: https://lore.kernel.org/linux-usb/vmngazj6si7xxss7txenezkcukqje2glhvvs7ipdcx3vjiqvlk@ohmmhhhlryws/
> Signed-off-by: Jai Luthra <j-luthra@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] usb: typec: tipd: Separate reset for TPS6598x
2024-01-05 9:06 [PATCH] usb: typec: tipd: Separate reset for TPS6598x Jai Luthra
2024-01-05 9:15 ` Sergey Shtylyov
2024-01-05 10:10 ` Roger Quadros
@ 2024-01-05 10:57 ` Heikki Krogerus
2 siblings, 0 replies; 7+ messages in thread
From: Heikki Krogerus @ 2024-01-05 10:57 UTC (permalink / raw)
To: Jai Luthra
Cc: Greg Kroah-Hartman, Javier Carrasco, linux-usb, linux-kernel,
rogerq, r-gunasekaran, vigneshr, d-gole
On Fri, Jan 05, 2024 at 02:36:54PM +0530, Jai Luthra wrote:
> Some platforms like SK-AM62, SK-AM62A cannot boot up to prompt if
> TPS6598x is cold-reset during unconditionally on probe failures by
> sending "GAID" sequence.
>
> The probe can fail initially because USB0 remote-endpoint may not be
> probed yet, which defines the usb-role-switch property.
>
> Fixes: d49f90822015 ("usb: typec: tipd: add init and reset functions to tipd_data")
> Closes: https://lore.kernel.org/linux-usb/vmngazj6si7xxss7txenezkcukqje2glhvvs7ipdcx3vjiqvlk@ohmmhhhlryws/
> Signed-off-by: Jai Luthra <j-luthra@ti.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> ---
> Boot-logs with this patch applied:
> https://gist.github.com/jailuthra/b66d5722090ce1fbc2886986e53640f7
> ---
> drivers/usb/typec/tipd/core.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c
> index a956eb976906..8ba2aa05db51 100644
> --- a/drivers/usb/typec/tipd/core.c
> +++ b/drivers/usb/typec/tipd/core.c
> @@ -1223,11 +1223,16 @@ static int cd321x_reset(struct tps6598x *tps)
> return 0;
> }
>
> -static int tps6598x_reset(struct tps6598x *tps)
> +static int tps25750_reset(struct tps6598x *tps)
> {
> return tps6598x_exec_cmd_tmo(tps, "GAID", 0, NULL, 0, NULL, 2000, 0);
> }
>
> +static int tps6598x_reset(struct tps6598x *tps)
> +{
> + return 0;
> +}
> +
> static int
> tps25750_register_port(struct tps6598x *tps, struct fwnode_handle *fwnode)
> {
> @@ -1545,7 +1550,7 @@ static const struct tipd_data tps25750_data = {
> .trace_status = trace_tps25750_status,
> .apply_patch = tps25750_apply_patch,
> .init = tps25750_init,
> - .reset = tps6598x_reset,
> + .reset = tps25750_reset,
> };
>
> static const struct of_device_id tps6598x_of_match[] = {
>
> ---
> base-commit: e2425464bc87159274879ab30f9d4fe624b9fcd2
> change-id: 20240105-next-tps-fix-904ed92bc1cc
>
> Best regards,
> --
> Jai Luthra <j-luthra@ti.com>
--
heikki
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-01-05 10:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-05 9:06 [PATCH] usb: typec: tipd: Separate reset for TPS6598x Jai Luthra
2024-01-05 9:15 ` Sergey Shtylyov
2024-01-05 9:34 ` Greg Kroah-Hartman
2024-01-05 10:01 ` Sergey Shtylyov
2024-01-05 10:01 ` Jai Luthra
2024-01-05 10:10 ` Roger Quadros
2024-01-05 10:57 ` Heikki Krogerus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox