Message ID | 20240925162513.435177-1-abhishekpandit@chromium.org (mailing list archive) |
---|---|
Headers | show |
Series | Thunderbolt and DP altmode support for cros-ec-typec | expand |
On Wed, Sep 25, 2024 at 09:25:01AM GMT, Abhishek Pandit-Subedi wrote: > > Hi Heikki, Tzung-Bi et al, > > This patch series adds support for alternate mode entry for the > cros-ec-typec driver for Displayport and Thunderbolt. > > Thunderbolt support is added by adapting an RFC Heikki had posted > previously: > > https://lore.kernel.org/linux-usb/20191230152857.43917-1-heikki.krogerus@linux.intel.com/ > > A few comments on the series: > > * The cros-ec interface will not accept any VDOs/VDMs so we simply > ignore any configurations we are passed (i.e. DPConfigure). This means > the sysfs control of DP lanes won't work. > * ChromeOS has two modes of operation for alt-modes: entirely EC driven > or AP-driven from userspace (via the typec daemon). Thus, we never > expect the kernel alt-mode drivers to auto-enter modes. > > This was tested on kernel 6.6 with a ChromeOS Brya device and compile > tested against linux-usb (with allmodconfig). Please test on top of the linux-usb or linux-next. 6.6 is nine months old kernel. Also for v2 please consider CC'ing both lists for all patches. Otherwise it's hard to follow the changes. > > Thanks, > Abhishek > > >
On Wed, Sep 25, 2024 at 10:12 AM Dmitry Baryshkov <dmitry.baryshkov@linaro.org> wrote: > > On Wed, Sep 25, 2024 at 09:25:01AM GMT, Abhishek Pandit-Subedi wrote: > > > > Hi Heikki, Tzung-Bi et al, > > > > This patch series adds support for alternate mode entry for the > > cros-ec-typec driver for Displayport and Thunderbolt. > > > > Thunderbolt support is added by adapting an RFC Heikki had posted > > previously: > > > > https://lore.kernel.org/linux-usb/20191230152857.43917-1-heikki.krogerus@linux.intel.com/ > > > > A few comments on the series: > > > > * The cros-ec interface will not accept any VDOs/VDMs so we simply > > ignore any configurations we are passed (i.e. DPConfigure). This means > > the sysfs control of DP lanes won't work. > > * ChromeOS has two modes of operation for alt-modes: entirely EC driven > > or AP-driven from userspace (via the typec daemon). Thus, we never > > expect the kernel alt-mode drivers to auto-enter modes. > > > > This was tested on kernel 6.6 with a ChromeOS Brya device and compile > > tested against linux-usb (with allmodconfig). > > Please test on top of the linux-usb or linux-next. 6.6 is nine months > old kernel. Ack -- I'm going to try to load the upstream kernel on my ChromeOS device + test. > > Also for v2 please consider CC'ing both lists for all patches. Otherwise > it's hard to follow the changes. Really sorry about that. I'm using patman to send patches and didn't realize it would split the patch series between the two. v2 will send all 8 patches to both lists. > > > > > Thanks, > > Abhishek > > > > > > > > -- > With best wishes > Dmitry