[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <219c4c0d-9aee-5541-b19a-1f79845b3e3e@linaro.org>
Date: Mon, 18 May 2020 17:18:12 +0100
From: Bryan O'Donoghue <bryan.odonoghue@...aro.org>
To: Bryan O'Donoghue <bryan.odonoghue@...aro.org>, square@...aro.org
Cc: Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Chunfeng Yun <chunfeng.yun@...iatek.com>,
Suzuki K Poulose <suzuki.poulose@....com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Wen Yang <wenyang@...ux.alibaba.com>,
chenqiwu <chenqiwu@...omi.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] UPSTREAM: usb: roles: Switch on role-switch uevent
reporting
On 18/05/2020 17:14, Bryan O'Donoghue wrote:
> Right now we don't report to user-space a role switch when doing a
> usb_role_switch_set_role() despite having registered the uevent callbacks.
>
> This patch switches on the notifications allowing user-space to see
> role-switch change notifications and subsequently determine the current
> controller data-role.
>
> example:
> PFX=/devices/platform/soc/78d9000.usb/ci_hdrc.0
>
> root@...ebox# udevadm monitor -p
>
> KERNEL[49.894994] change $PFX/usb_role/ci_hdrc.0-role-switch (usb_role)
> ACTION=change
> DEVPATH=$PFX/usb_role/ci_hdrc.0-role-switch
> SUBSYSTEM=usb_role
> DEVTYPE=usb_role_switch
> USB_ROLE_SWITCH=ci_hdrc.0-role-switch
> SEQNUM=2432
>
> Cc: Heikki Krogerus <heikki.krogerus@...ux.intel.com>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Cc: Chunfeng Yun <chunfeng.yun@...iatek.com>
> Cc: Suzuki K Poulose <suzuki.poulose@....com>
> Cc: Alexandre Belloni <alexandre.belloni@...tlin.com>
> Cc: Wen Yang <wenyang@...ux.alibaba.com>
> Cc: chenqiwu <chenqiwu@...omi.com>
> Cc: linux-kernel@...r.kernel.org
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@...aro.org>
> Link: https://lore.kernel.org/r/20200508162937.2566818-1-bryan.odonoghue@linaro.org
> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> [cherry-pick commit 3e63cff384e625f09758ce8f4d01ae3033402b63 upstream]
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@...aro.org>
oops, applying this to a local tree.
Please ignore
Powered by blists - more mailing lists