All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: "Samuel Čavoj" <samuel@cavoj.net>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH] usb: typec: ucsi: introduce read_explicit operation
Date: Thu, 30 Mar 2023 17:06:31 +0300	[thread overview]
Message-ID: <ZCWXZ1KwzYeSdJhv@kuha.fi.intel.com> (raw)
In-Reply-To: <3ae633095973c747baea1a23f3b7f6f4@cavoj.net>

Hi Sam,

On Thu, Mar 30, 2023 at 01:48:18AM +0200, Samuel Čavoj wrote:
> Hi Heikki,
> 
> On 2023-03-18 03:04, Samuel Čavoj wrote:
> ...
> > > Unfortunately nothing seems to work... I'm attaching the DMI quirk
> > > patch here. Can you test it?
> > 
> > I'll definitely try it out, I hope sometime next week!
> > 
> > > I'm not sure if the DMI_PRODUCT_NAME is just "ZenBook" so you may
> > > need to fix that in the patch!!
> > > 
> > > You can get the correct value by running dmidecode. This should work:
> > > 
> > >         % dmidecode -s system-product-name
> 
> This returns "ZenBook UX325UA_UM325UA", so the DMI_MATCH would work.
> However my DMI_SYS_VENDOR is "ASUSTeK COMPUTER INC.", uppercase.
> 
> All in all, the patch works after some modifications which I'm
> attaching below. In summary:
> 
>  - The DMI_MATCH SYS_VENDOR was changed to uppercase
>  - The DMI_MATCH PRODUCT_NAME was changed to be more specific, although
>    I'm not sure what the best value is here.
>  - The conditional in ucsi_zenbook_read was fixed.
>  - ua->cmd cannot be reset to 0 after read because the reset
>    procedure repeatedly calls read without performing
>    any other commands. I don't think this should cause any problems
>  - ucsi_acpi_notify needs to call the quirked variant
>    as well, so I put an indirect call there.
> 
> Otherwise maybe ucsi_acpi_async_write should only set cmd if the offset
> is UCSI_CONTROL.

Thanks!

> I'm occasionally getting some other errors later on, but I think
> those might be specific to a certain cheap USB-C hub I have. They
> don't occur with it unplugged.

Okay... Did you see those errors with your original patch?

Br,

-- 
heikki

  reply	other threads:[~2023-03-30 14:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-20 23:39 [PATCH] usb: typec: ucsi: introduce read_explicit operation Samuel Čavoj
2023-01-21  7:17 ` Greg KH
2023-01-24 11:21   ` Heikki Krogerus
2023-03-08 16:17     ` Heikki Krogerus
2023-03-16 13:08       ` Heikki Krogerus
2023-03-18  2:04         ` Samuel Čavoj
2023-03-29 23:48           ` Samuel Čavoj
2023-03-30 14:06             ` Heikki Krogerus [this message]
2023-04-01 18:06               ` Samuel Čavoj
2023-04-04 13:02                 ` 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=ZCWXZ1KwzYeSdJhv@kuha.fi.intel.com \
    --to=heikki.krogerus@linux.intel.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=samuel@cavoj.net \
    /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.