From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: Alan Stern <stern@rowland.harvard.edu>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
linux-media@vger.kernel.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 2/2] [media] uvcvideo: Remain runtime-suspended at sleeps
Date: Mon, 09 Nov 2015 23:23:52 +0200 [thread overview]
Message-ID: <5182419.7mg9xmtEix@avalon> (raw)
In-Reply-To: <CAAObsKCP4dTvOPB=XrZexauHmdC99JYkc6cYKoaT-vZjnLaynw@mail.gmail.com>
Hi Tomeu,
On Monday 20 April 2015 09:11:36 Tomeu Vizoso wrote:
> On 17 April 2015 at 19:32, Alan Stern <stern@rowland.harvard.edu> wrote:
> > On Fri, 17 Apr 2015, Tomeu Vizoso wrote:
> >> When the system goes to sleep and afterwards resumes, a significant
> >> amount of time is spent suspending and resuming devices that were
> >> already runtime-suspended.
> >>
> >> By setting the power.force_direct_complete flag, the PM core will ignore
> >> the state of descendant devices and the device will be let in
> >> runtime-suspend.
> >>
> >> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
> >> ---
> >>
> >> drivers/media/usb/uvc/uvc_driver.c | 2 ++
> >> 1 file changed, 2 insertions(+)
> >>
> >> diff --git a/drivers/media/usb/uvc/uvc_driver.c
> >> b/drivers/media/usb/uvc/uvc_driver.c index 5970dd6..ae75a70 100644
> >> --- a/drivers/media/usb/uvc/uvc_driver.c
> >> +++ b/drivers/media/usb/uvc/uvc_driver.c
> >> @@ -1945,6 +1945,8 @@ static int uvc_probe(struct usb_interface *intf,
> >>
> >> "supported.\n", ret);
> >>
> >> }
> >>
> >> + intf->dev.parent->power.force_direct_complete = true;
> >
> > This seems wrong. The uvc driver is bound to intf, not to intf's
> > parent. So it would be okay for the driver to set
> > intf->dev.power.force_direct_complete, but it's wrong to set
> > intf->dev.parent->power.force_direct_complete.
>
> Agreed.
Do you plan to resubmit this patch series with the above fix ? I know you've
had a hard time trying to find an approach that could get accepted, but please
rest assured that your work on the uvcvideo driver is appreciated.
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2015-11-09 21:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-17 15:24 [PATCH v3 0/2] Allow UVC devices to remain runtime-suspended when sleeping Tomeu Vizoso
2015-04-17 15:24 ` [PATCH v3 1/2] PM / sleep: Let devices force direct_complete Tomeu Vizoso
2015-04-17 15:33 ` Greg Kroah-Hartman
2015-04-17 15:35 ` Laurent Pinchart
2015-04-17 17:30 ` Alan Stern
2015-04-17 17:30 ` Alan Stern
2015-04-20 7:10 ` Tomeu Vizoso
2015-04-20 14:12 ` Alan Stern
2015-04-28 14:26 ` Tomeu Vizoso
2015-04-28 14:54 ` Rafael J. Wysocki
2015-04-30 7:11 ` Ulf Hansson
2015-04-30 14:53 ` Alan Stern
2015-05-06 8:30 ` Ulf Hansson
2015-05-06 14:43 ` Alan Stern
2015-05-06 16:05 ` Ulf Hansson
2015-04-17 15:24 ` [PATCH v3 2/2] [media] uvcvideo: Remain runtime-suspended at sleeps Tomeu Vizoso
2015-04-17 17:32 ` Alan Stern
2015-04-17 17:32 ` Alan Stern
2015-04-20 7:11 ` Tomeu Vizoso
2015-11-09 21:23 ` Laurent Pinchart [this message]
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=5182419.7mg9xmtEix@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
--cc=stern@rowland.harvard.edu \
--cc=tomeu.vizoso@collabora.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 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.