From: Linyu Yuan <quic_linyyuan@quicinc.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>,
<linux-usb@vger.kernel.org>, Jack Pham <quic_jackp@quicinc.com>,
Wesley Cheng <quic_wcheng@quicinc.com>,
Pratham Pratap <quic_ppratap@quicinc.com>
Subject: Re: [PATCH v2] usb: roles: disable pm for role switch device
Date: Tue, 7 Feb 2023 15:41:17 +0800 [thread overview]
Message-ID: <ba912bbb-278e-f23d-ac2b-88958f7da491@quicinc.com> (raw)
In-Reply-To: <Y+DlHUUMX6bACxA6@kuha.fi.intel.com>
On 2/6/2023 7:31 PM, Heikki Krogerus wrote:
> On Fri, Feb 03, 2023 at 07:55:14PM +0800, Linyu Yuan wrote:
>> there is no PM operation for a role switch device,
>> call device_set_pm_not_required() in usb_role_switch_register() to disable.
>>
>> Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
as discussion in Re: [PATCH] usb: typec: disable pm for typec class
devices - Heikki Krogerus (kernel.org)
<https://lore.kernel.org/linux-usb/Y+H+8Nt%2F5bgTBv4Y@kuha.fi.intel.com/> ,
please don't merge this change after we have final solution with Heikki.
>> ---
>> v2: remove cc stable
>>
>> drivers/usb/roles/class.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/usb/roles/class.c b/drivers/usb/roles/class.c
>> index eacb46e..b303c64 100644
>> --- a/drivers/usb/roles/class.c
>> +++ b/drivers/usb/roles/class.c
>> @@ -344,6 +344,7 @@ usb_role_switch_register(struct device *parent,
>> dev_set_drvdata(&sw->dev, desc->driver_data);
>> dev_set_name(&sw->dev, "%s-role-switch",
>> desc->name ? desc->name : dev_name(parent));
>> + device_set_pm_not_required(&sw->dev);
>>
>> ret = device_register(&sw->dev);
>> if (ret) {
>> --
>> 2.7.4
next prev parent reply other threads:[~2023-02-07 7:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-03 11:55 [PATCH v2] usb: roles: disable pm for role switch device Linyu Yuan
2023-02-06 11:31 ` Heikki Krogerus
2023-02-07 7:41 ` Linyu Yuan [this message]
2023-02-07 7:48 ` Greg Kroah-Hartman
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=ba912bbb-278e-f23d-ac2b-88958f7da491@quicinc.com \
--to=quic_linyyuan@quicinc.com \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-usb@vger.kernel.org \
--cc=quic_jackp@quicinc.com \
--cc=quic_ppratap@quicinc.com \
--cc=quic_wcheng@quicinc.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox