mbox series

[v2,0/2] platform/chrome: typec: xHCI DbC

Message ID 20240213130018.3029991-1-heikki.krogerus@linux.intel.com (mailing list archive)
Headers show
Series platform/chrome: typec: xHCI DbC | expand

Message

Heikki Krogerus Feb. 13, 2024, 1 p.m. UTC
Hi,

Changed in v2:

The quirk is now wrapped inside an ugly ifdef CONFIG_ACPI :(
I don't have better ideas better ideas for this I'm afraid.

Side note! I will be away for the next three weeks (plus a few days)
starting from Friday (Feb 16).


The original message:

In order to use xHCI DbC we need to allow the USB to be muxed to xHCI
even when the connector is in device role. That's because in DbC mode
the xHCI is the USB device controller.

In the first patch I'm just adding symlinks between the USB role
switches and their USB Type-C connectors. That way the user space can
find the correct role switch simply by following the symlink.

The second patch modifies cros_ec_typec.c. I'm assigning the PLD
(Physical Location of Device) hash of the port to the USB role switch
when it's missing from the ACPI tables. That should make sure the
first patch always works.


Heikki Krogerus (2):
  usb: roles: Link the switch to its connector
  platform/chrome: cros_ec_typec: Make sure the USB role switch has PLD

 .../ABI/testing/sysfs-class-usb_role          |  6 +++
 drivers/platform/chrome/cros_ec_typec.c       | 19 +++++++++
 drivers/usb/roles/class.c                     | 40 ++++++++++++++++++-
 3 files changed, 63 insertions(+), 2 deletions(-)

Comments

patchwork-bot+chrome-platform@kernel.org March 25, 2024, 1:54 a.m. UTC | #1
Hello:

This series was applied to chrome-platform/linux.git (for-kernelci)
by Greg Kroah-Hartman <gregkh@linuxfoundation.org>:

On Tue, 13 Feb 2024 15:00:16 +0200 you wrote:
> Hi,
> 
> Changed in v2:
> 
> The quirk is now wrapped inside an ugly ifdef CONFIG_ACPI :(
> I don't have better ideas better ideas for this I'm afraid.
> 
> [...]

Here is the summary with links:
  - [v2,1/2] usb: roles: Link the switch to its connector
    https://git.kernel.org/chrome-platform/c/9a270ec7bfb0
  - [v2,2/2] platform/chrome: cros_ec_typec: Make sure the USB role switch has PLD
    https://git.kernel.org/chrome-platform/c/56403220577b

You are awesome, thank you!
patchwork-bot+chrome-platform@kernel.org March 25, 2024, 2:13 a.m. UTC | #2
Hello:

This series was applied to chrome-platform/linux.git (for-next)
by Greg Kroah-Hartman <gregkh@linuxfoundation.org>:

On Tue, 13 Feb 2024 15:00:16 +0200 you wrote:
> Hi,
> 
> Changed in v2:
> 
> The quirk is now wrapped inside an ugly ifdef CONFIG_ACPI :(
> I don't have better ideas better ideas for this I'm afraid.
> 
> [...]

Here is the summary with links:
  - [v2,1/2] usb: roles: Link the switch to its connector
    https://git.kernel.org/chrome-platform/c/9a270ec7bfb0
  - [v2,2/2] platform/chrome: cros_ec_typec: Make sure the USB role switch has PLD
    https://git.kernel.org/chrome-platform/c/56403220577b

You are awesome, thank you!