From: Ulrich Huber <ulrich@huberulrich.de>
To: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: ucsi_acpi GET_CONNECTOR_STATUS failed (-5)
Date: Thu, 26 Aug 2021 21:50:58 +0200 [thread overview]
Message-ID: <3fe6d701-bc14-9b26-a5af-aa38fe7c585e@huberulrich.de> (raw)
In-Reply-To: <YSekP0+tq6ISq6my@kuha.fi.intel.com>
On 26.08.21 16:25, Heikki Krogerus wrote:
> On Wed, Aug 25, 2021 at 08:37:14PM +0200, Ulrich Huber wrote: >> Hi, >> >> I just managed to get some more details. The bug
definitely originates from >> `ucsi_handle_connector_change`. Within
this function it is the second call >> to ucsi_send_command with
UCSI_GET_CONNECTOR_STATUS that fails (Step 4). >> >> `ucsi_send_command`
calls `ucsi_exec_command` internally, which does the >> synchronous
write and following read. Within `ucsi_exec_command` the check >> on
line 134 fails: >> >> if (cci & UCSI_CCI_COMMAND_COMPLETE) >> >> Hope
this is of some help. > Thanks for debugging this.
You are welcome!
> Yeah, I think that the second GET_CONNECTOR_STATUS immediately after > the first one is confusing the firmware on some board> > I'll send
you a patch series I've been working on that tries to > improve the
situation. I better include the list as well (sending it > as RFC).
I just got around to test your patches. They seem to solve the issue
completely! Whatever I tried, the behavior of the port stayed consistent
and no error messages appeared in the log.
I'll continue using the patch for now and will notify you, should any
issue appear.
Thanks
Ulrich
next prev parent reply other threads:[~2021-08-26 19:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-23 14:29 ucsi_acpi GET_CONNECTOR_STATUS failed (-5) Ulrich Huber
2021-08-25 8:12 ` Heikki Krogerus
2021-08-25 13:53 ` Ulrich Huber
2021-08-25 18:37 ` Ulrich Huber
2021-08-26 14:25 ` Heikki Krogerus
2021-08-26 19:50 ` Ulrich Huber [this message]
2021-08-28 9:48 ` Heikki Krogerus
2021-08-29 11:02 ` Ulrich Huber
2021-09-09 12:19 ` Heikki Krogerus
2021-09-09 12:24 ` Ulrich Huber
2021-09-13 13:32 ` Heikki Krogerus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3fe6d701-bc14-9b26-a5af-aa38fe7c585e@huberulrich.de \
--to=ulrich@huberulrich.de \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.