From: Greg KH <gregkh@linuxfoundation.org>
To: "François Scala" <francois@scala.name>
Cc: linux-usb@vger.kernel.org,
Heikki Krogerus <heikki.krogerus@linux.intel.com>
Subject: Re: [PATCH] usb: typec: altmode: Fix altmode to handle multiple parners
Date: Thu, 2 Apr 2026 14:18:11 +0200 [thread overview]
Message-ID: <2026040254-exposure-stubbly-7239@gregkh> (raw)
In-Reply-To: <20260402120433.22967-1-francois@scala.name>
On Thu, Apr 02, 2026 at 02:04:32PM +0200, François Scala wrote:
> From: François Scala <francois@scala.name>
>
> The partner field in the altmode struct is a single pointer and the sysfs
> symlink uses a fixed name. This cause an error when a second partner is
> registered.
>
> sysfs: cannot create duplicate filename '/devices/platform/USBC000:00/typec/port0/port0.0/partner'
>
> The field is replaced by an array of pointers and the symlink use the
> device name to avoid conflict.
>
> /sys/devices/platform/USBC000:00/typec/port0/port0.0/
> lrwxrwxrwx 1 root root 0 Apr 2 09:12 port0-partner.0 -> ../port0-partner/port0-partner.0
> lrwxrwxrwx 1 root root 0 Apr 2 09:12 port0-partner.1 -> ../port0-partner/port0-partner.1
>
> Signed-off-by: François Scala <francois@scala.name>
>
> Thanks
> François
No need for the "Thanks" here :)
And what commit id does this fix?
thanks,
greg k-h
next prev parent reply other threads:[~2026-04-02 12:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-02 12:04 [PATCH] usb: typec: altmode: Fix altmode to handle multiple parners François Scala
2026-04-02 12:18 ` Greg KH [this message]
2026-04-02 12:27 ` François Scala
2026-04-02 13:35 ` Greg KH
2026-04-02 13:26 ` Heikki Krogerus
2026-04-02 18:10 ` François Scala
2026-04-07 12:17 ` Heikki Krogerus
[not found] ` <d627d2fe-415f-4489-b4fa-ec0575a33239@scala.name>
2026-04-08 10:00 ` 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=2026040254-exposure-stubbly-7239@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=francois@scala.name \
--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.