* [PATCH v2] usb: typec: ucsi: Retry if notification enable timesout
@ 2026-11-04 20:56 Mark Pearson
2026-11-04 21:02 ` sashiko-bot
2026-11-27 20:42 ` Mark Pearson
0 siblings, 2 replies; 6+ messages in thread
From: Mark Pearson @ 2026-11-04 20:56 UTC (permalink / raw)
To: mpearson-lenovo; +Cc: heikki.krogerus, gregkh, linux-usb, linux-kernel
Found on Thinkpad E14 G8.
When UCSI notifications are enabled the FW does not ack the enablement
itself. Future commands will be acked correctly.
If this happens try enablement again and confirm acks are working
correctly.
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
---
Changes in v2:
- No functional change. Rebased as requested
= Added Heikki's review tag
drivers/usb/typec/ucsi/ucsi.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c
index 5aab8ab9f013..6633ad6658f2 100644
--- a/drivers/usb/typec/ucsi/ucsi.c
+++ b/drivers/usb/typec/ucsi/ucsi.c
@@ -2095,6 +2095,12 @@ static int ucsi_init(struct ucsi *ucsi)
ntfy = UCSI_ENABLE_NTFY_CMD_COMPLETE | UCSI_ENABLE_NTFY_ERROR;
command = UCSI_SET_NOTIFICATION_ENABLE | ntfy;
ret = ucsi_send_command(ucsi, command, NULL, 0);
+ /*
+ * Some FW may not ack the notification enable the first time.
+ * If this happens, repeat to confirm it is actually working
+ */
+ if (ret == -ETIMEDOUT)
+ ret = ucsi_send_command(ucsi, command, NULL, 0);
if (ret < 0)
goto err_reset;
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2] usb: typec: ucsi: Retry if notification enable timesout
2026-11-04 20:56 [PATCH v2] usb: typec: ucsi: Retry if notification enable timesout Mark Pearson
@ 2026-11-04 21:02 ` sashiko-bot
2026-11-27 20:42 ` Mark Pearson
1 sibling, 0 replies; 6+ messages in thread
From: sashiko-bot @ 2026-11-04 21:02 UTC (permalink / raw)
To: Mark Pearson; +Cc: linux-usb
> Found on Thinkpad E14 G8.
> When UCSI notifications are enabled the FW does not ack the enablement
> itself. Future commands will be acked correctly.
>
> If this happens try enablement again and confirm acks are working
> correctly.
>
> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261104205654.3518943-1-mpearson-lenovo@squebb.ca?part=1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] usb: typec: ucsi: Retry if notification enable timesout
2026-11-04 20:56 [PATCH v2] usb: typec: ucsi: Retry if notification enable timesout Mark Pearson
2026-11-04 21:02 ` sashiko-bot
@ 2026-11-27 20:42 ` Mark Pearson
2026-11-27 20:47 ` Greg KH
1 sibling, 1 reply; 6+ messages in thread
From: Mark Pearson @ 2026-11-27 20:42 UTC (permalink / raw)
Cc: Heikki Krogerus, Greg KH, linux-usb, linux-kernel
On Wed, Nov 4, 2026, at 3:56 PM, Mark Pearson wrote:
> Found on Thinkpad E14 G8.
> When UCSI notifications are enabled the FW does not ack the enablement
> itself. Future commands will be acked correctly.
>
> If this happens try enablement again and confirm acks are working
> correctly.
>
> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
> ---
> Changes in v2:
> - No functional change. Rebased as requested
> = Added Heikki's review tag
>
> drivers/usb/typec/ucsi/ucsi.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c
> index 5aab8ab9f013..6633ad6658f2 100644
> --- a/drivers/usb/typec/ucsi/ucsi.c
> +++ b/drivers/usb/typec/ucsi/ucsi.c
> @@ -2095,6 +2095,12 @@ static int ucsi_init(struct ucsi *ucsi)
> ntfy = UCSI_ENABLE_NTFY_CMD_COMPLETE | UCSI_ENABLE_NTFY_ERROR;
> command = UCSI_SET_NOTIFICATION_ENABLE | ntfy;
> ret = ucsi_send_command(ucsi, command, NULL, 0);
> + /*
> + * Some FW may not ack the notification enable the first time.
> + * If this happens, repeat to confirm it is actually working
> + */
> + if (ret == -ETIMEDOUT)
> + ret = ucsi_send_command(ucsi, command, NULL, 0);
> if (ret < 0)
> goto err_reset;
>
> --
> 2.43.0
Can I float this back to the top of the mailing list please. I don't believe any issues have been identified and the initial version was posted back in July. This does fix an issue seen on platforms that are being sold with Linux preloaded and Linux users are using - it's real.
I can see Dell and HP fixes being pulled in quickly - what am I doing wrong on my side?
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] usb: typec: ucsi: Retry if notification enable timesout
2026-11-27 20:42 ` Mark Pearson
@ 2026-11-27 20:47 ` Greg KH
2026-11-28 2:33 ` Mark Pearson
0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2026-11-27 20:47 UTC (permalink / raw)
To: Mark Pearson; +Cc: Heikki Krogerus, linux-usb, linux-kernel
On Fri, Nov 27, 2026 at 03:42:39PM -0500, Mark Pearson wrote:
> On Wed, Nov 4, 2026, at 3:56 PM, Mark Pearson wrote:
> > Found on Thinkpad E14 G8.
> > When UCSI notifications are enabled the FW does not ack the enablement
> > itself. Future commands will be acked correctly.
> >
> > If this happens try enablement again and confirm acks are working
> > correctly.
> >
> > Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> > Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
> > ---
> > Changes in v2:
> > - No functional change. Rebased as requested
> > = Added Heikki's review tag
> >
> > drivers/usb/typec/ucsi/ucsi.c | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c
> > index 5aab8ab9f013..6633ad6658f2 100644
> > --- a/drivers/usb/typec/ucsi/ucsi.c
> > +++ b/drivers/usb/typec/ucsi/ucsi.c
> > @@ -2095,6 +2095,12 @@ static int ucsi_init(struct ucsi *ucsi)
> > ntfy = UCSI_ENABLE_NTFY_CMD_COMPLETE | UCSI_ENABLE_NTFY_ERROR;
> > command = UCSI_SET_NOTIFICATION_ENABLE | ntfy;
> > ret = ucsi_send_command(ucsi, command, NULL, 0);
> > + /*
> > + * Some FW may not ack the notification enable the first time.
> > + * If this happens, repeat to confirm it is actually working
> > + */
> > + if (ret == -ETIMEDOUT)
> > + ret = ucsi_send_command(ucsi, command, NULL, 0);
> > if (ret < 0)
> > goto err_reset;
> >
> > --
> > 2.43.0
>
> Can I float this back to the top of the mailing list please. I don't believe any issues have been identified and the initial version was posted back in July. This does fix an issue seen on platforms that are being sold with Linux preloaded and Linux users are using - it's real.
>
> I can see Dell and HP fixes being pulled in quickly - what am I doing wrong on my side?
I have 1000+ pending USB patches to review/apply still. Please be
patient for things that are just normal feature additions like this.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] usb: typec: ucsi: Retry if notification enable timesout
2026-11-27 20:47 ` Greg KH
@ 2026-11-28 2:33 ` Mark Pearson
2026-11-28 7:22 ` Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Mark Pearson @ 2026-11-28 2:33 UTC (permalink / raw)
To: Greg KH; +Cc: Heikki Krogerus, linux-usb, linux-kernel
Hi Greg,
On Fri, Nov 27, 2026, at 3:47 PM, Greg KH wrote:
> On Fri, Nov 27, 2026 at 03:42:39PM -0500, Mark Pearson wrote:
>> On Wed, Nov 4, 2026, at 3:56 PM, Mark Pearson wrote:
>> > Found on Thinkpad E14 G8.
>> > When UCSI notifications are enabled the FW does not ack the enablement
>> > itself. Future commands will be acked correctly.
>> >
>> > If this happens try enablement again and confirm acks are working
>> > correctly.
>> >
>> > Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
>> > Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
>> > ---
>> > Changes in v2:
>> > - No functional change. Rebased as requested
>> > = Added Heikki's review tag
>> >
>> > drivers/usb/typec/ucsi/ucsi.c | 6 ++++++
>> > 1 file changed, 6 insertions(+)
>> >
>> > diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c
>> > index 5aab8ab9f013..6633ad6658f2 100644
>> > --- a/drivers/usb/typec/ucsi/ucsi.c
>> > +++ b/drivers/usb/typec/ucsi/ucsi.c
>> > @@ -2095,6 +2095,12 @@ static int ucsi_init(struct ucsi *ucsi)
>> > ntfy = UCSI_ENABLE_NTFY_CMD_COMPLETE | UCSI_ENABLE_NTFY_ERROR;
>> > command = UCSI_SET_NOTIFICATION_ENABLE | ntfy;
>> > ret = ucsi_send_command(ucsi, command, NULL, 0);
>> > + /*
>> > + * Some FW may not ack the notification enable the first time.
>> > + * If this happens, repeat to confirm it is actually working
>> > + */
>> > + if (ret == -ETIMEDOUT)
>> > + ret = ucsi_send_command(ucsi, command, NULL, 0);
>> > if (ret < 0)
>> > goto err_reset;
>> >
>> > --
>> > 2.43.0
>>
>> Can I float this back to the top of the mailing list please. I don't believe any issues have been identified and the initial version was posted back in July. This does fix an issue seen on platforms that are being sold with Linux preloaded and Linux users are using - it's real.
>>
>> I can see Dell and HP fixes being pulled in quickly - what am I doing wrong on my side?
>
> I have 1000+ pending USB patches to review/apply still. Please be
> patient for things that are just normal feature additions like this.
>
Ack - understood. I get it and my note was poorly phrased. My apologies.
I just wanted to understand if I'm doing something wrong - there were other patches in ucsi_acpi that landed after mine and went straight through and I didn't know why.
Looking at them again (e.g 8c51ea6 and b0baaf6) - I believe it's because they're tagging stable. I didn't realise it was OK to use the stable tag for patches that addressed FW issues (i.e. not correcting something that was previously wrong in the kernel itself - I normally only use stable for regressions).
Should I repost my patch with stable tag used? I don't want to jump the queue or cause extra workload - but I am addressing a real problem for real users on real hardware.
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] usb: typec: ucsi: Retry if notification enable timesout
2026-11-28 2:33 ` Mark Pearson
@ 2026-11-28 7:22 ` Greg KH
0 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2026-11-28 7:22 UTC (permalink / raw)
To: Mark Pearson; +Cc: Heikki Krogerus, linux-usb, linux-kernel
On Fri, Nov 27, 2026 at 09:33:11PM -0500, Mark Pearson wrote:
> Hi Greg,
>
> On Fri, Nov 27, 2026, at 3:47 PM, Greg KH wrote:
> > On Fri, Nov 27, 2026 at 03:42:39PM -0500, Mark Pearson wrote:
> >> On Wed, Nov 4, 2026, at 3:56 PM, Mark Pearson wrote:
> >> > Found on Thinkpad E14 G8.
> >> > When UCSI notifications are enabled the FW does not ack the enablement
> >> > itself. Future commands will be acked correctly.
> >> >
> >> > If this happens try enablement again and confirm acks are working
> >> > correctly.
> >> >
> >> > Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> >> > Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
> >> > ---
> >> > Changes in v2:
> >> > - No functional change. Rebased as requested
> >> > = Added Heikki's review tag
> >> >
> >> > drivers/usb/typec/ucsi/ucsi.c | 6 ++++++
> >> > 1 file changed, 6 insertions(+)
> >> >
> >> > diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c
> >> > index 5aab8ab9f013..6633ad6658f2 100644
> >> > --- a/drivers/usb/typec/ucsi/ucsi.c
> >> > +++ b/drivers/usb/typec/ucsi/ucsi.c
> >> > @@ -2095,6 +2095,12 @@ static int ucsi_init(struct ucsi *ucsi)
> >> > ntfy = UCSI_ENABLE_NTFY_CMD_COMPLETE | UCSI_ENABLE_NTFY_ERROR;
> >> > command = UCSI_SET_NOTIFICATION_ENABLE | ntfy;
> >> > ret = ucsi_send_command(ucsi, command, NULL, 0);
> >> > + /*
> >> > + * Some FW may not ack the notification enable the first time.
> >> > + * If this happens, repeat to confirm it is actually working
> >> > + */
> >> > + if (ret == -ETIMEDOUT)
> >> > + ret = ucsi_send_command(ucsi, command, NULL, 0);
> >> > if (ret < 0)
> >> > goto err_reset;
> >> >
> >> > --
> >> > 2.43.0
> >>
> >> Can I float this back to the top of the mailing list please. I don't believe any issues have been identified and the initial version was posted back in July. This does fix an issue seen on platforms that are being sold with Linux preloaded and Linux users are using - it's real.
> >>
> >> I can see Dell and HP fixes being pulled in quickly - what am I doing wrong on my side?
> >
> > I have 1000+ pending USB patches to review/apply still. Please be
> > patient for things that are just normal feature additions like this.
> >
> Ack - understood. I get it and my note was poorly phrased. My apologies.
> I just wanted to understand if I'm doing something wrong - there were other patches in ucsi_acpi that landed after mine and went straight through and I didn't know why.
>
> Looking at them again (e.g 8c51ea6 and b0baaf6) - I believe it's because they're tagging stable. I didn't realise it was OK to use the stable tag for patches that addressed FW issues (i.e. not correcting something that was previously wrong in the kernel itself - I normally only use stable for regressions).
>
> Should I repost my patch with stable tag used? I don't want to jump the queue or cause extra workload - but I am addressing a real problem for real users on real hardware.
If it is a real bug for real users and hardware, then yes, it needs a
Fixes: tag and cc: stable on it, and you are correct, that is why I
picked those "earlier" than this one.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-11-28 7:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04 20:56 [PATCH v2] usb: typec: ucsi: Retry if notification enable timesout Mark Pearson
2026-11-04 21:02 ` sashiko-bot
2026-11-27 20:42 ` Mark Pearson
2026-11-27 20:47 ` Greg KH
2026-11-28 2:33 ` Mark Pearson
2026-11-28 7:22 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox