From: Robert Jarzmik <robert.jarzmik@free.fr>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: video4linux-list@redhat.com
Subject: Re: [PATCH] Fix suspend/resume of pxa_camera driver
Date: Wed, 30 Jul 2008 23:47:48 +0200 [thread overview]
Message-ID: <87iqun2ge3.fsf@free.fr> (raw)
In-Reply-To: <Pine.LNX.4.64.0807291902200.17188@axis700.grange> (Guennadi Liakhovetski's message of "Tue\, 29 Jul 2008 19\:16\:24 +0200 \(CEST\)")
Guennadi Liakhovetski <g.liakhovetski@gmx.de> writes:
>> >> For the camera part, by now, I'm using standard suspend/resume functions of the
>> >> platform driver (mt9m111.c). It does work, but it's not clean ATM. The chaining
>> >> between the driver resume function and the availability of the I2C bus are not
>> >> properly chained. I'm still working on it.
>> >
>> > Yes, we have to clarify this too.
All right, I have my mind clarified, let's discuss now.
>> - I cook up a clean suspend/resume (unless you did it first of course :)
Well, let's expose what we're facing here :
- our video chip driver (ex: mt9m111) is an i2c driver
=> its resume function is called when i2c bus is resumed, so all is fine here
- our video chip needs an external clock to work
=> example: mt9m111 needs a clock from pxa camera interface to have its i2c
unit enabled
=> the mt9m111 driver resume function is unusable, as pxa_camera is resumed
_after_ mt9m111, and thus mt9m111's i2c unit is not available at that moment
- a working suspend/resume restores fully the video chip state
=> restores width/height/bpp
=> restores autoexposure, brightness, etc ...
=> all that insures userland is not impacted by suspend/resume
So, the only way I see to have suspend/resume working is :
- modify soc_camera_ops to add suspend and resume functions
- add suspend and resume functions in each chip driver (mt9m001, mt9m111, ...)
- modify soc_camera.c (or pxa_camera.c ?) to call icd->ops->suspend() and
icd->ops->resume()
- modify pxa_camera.c (the patch I sent before)
Would you find that acceptable, or is there a better way ?
--
Robert
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-07-30 21:48 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-26 23:07 [PATCH] Fix suspend/resume of pxa_camera driver Robert Jarzmik
2008-07-26 23:11 ` Robert Jarzmik
2008-07-27 0:07 ` Guennadi Liakhovetski
2008-07-27 7:17 ` Robert Jarzmik
2008-07-27 19:11 ` Guennadi Liakhovetski
2008-07-27 19:11 ` Guennadi Liakhovetski
2008-07-27 22:10 ` Alan Stern
2008-07-28 18:37 ` [linux-pm] " Robert Jarzmik
2008-08-13 12:16 ` Pavel Machek
2008-07-28 18:37 ` Robert Jarzmik
2008-07-28 18:33 ` Robert Jarzmik
2008-07-28 18:33 ` Robert Jarzmik
2008-07-29 17:16 ` Guennadi Liakhovetski
2008-07-29 17:16 ` Guennadi Liakhovetski
2008-07-30 21:47 ` Robert Jarzmik [this message]
2008-07-30 22:19 ` Guennadi Liakhovetski
2008-07-31 19:57 ` Robert Jarzmik
2008-07-31 21:49 ` Guennadi Liakhovetski
2011-06-28 13:47 ` Guennadi Liakhovetski
2011-07-01 16:41 ` Robert Jarzmik
2008-07-31 21:51 ` Robert Jarzmik
2008-08-01 20:16 ` Guennadi Liakhovetski
2008-08-01 20:58 ` Robert Jarzmik
2008-08-01 20:58 ` Robert Jarzmik
2008-08-01 21:26 ` Guennadi Liakhovetski
2008-08-01 21:26 ` Guennadi Liakhovetski
2008-08-01 22:23 ` Robert Jarzmik
2008-08-01 22:26 ` [PATCH] Add suspend/resume capabilities to soc_camera Robert Jarzmik
2008-08-01 22:26 ` [PATCH] Fix suspend/resume of pxa_camera driver Robert Jarzmik
2008-08-01 23:31 ` Guennadi Liakhovetski
2008-08-02 9:32 ` Robert Jarzmik
2008-08-02 10:21 ` Guennadi Liakhovetski
2008-08-02 10:35 ` Robert Jarzmik
2008-08-01 23:28 ` [PATCH] Add suspend/resume capabilities to soc_camera Guennadi Liakhovetski
2008-08-01 20:58 ` [PATCH] Fix suspend/resume of pxa_camera driver Robert Jarzmik
2008-08-01 20:16 ` Guennadi Liakhovetski
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=87iqun2ge3.fsf@free.fr \
--to=robert.jarzmik@free.fr \
--cc=g.liakhovetski@gmx.de \
--cc=video4linux-list@redhat.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.