From: s.nawrocki@samsung.com (Sylwester Nawrocki)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 4/7] V4L: s5k6a3: Add support for asynchronous subdev registration
Date: Thu, 29 Aug 2013 11:47:13 +0200 [thread overview]
Message-ID: <521F18A1.2000805@samsung.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1308281819520.22743@axis700.grange>
On 08/28/2013 06:21 PM, Guennadi Liakhovetski wrote:
> Hi Sylwester,
>
> Just one doubt below
>
> On Wed, 28 Aug 2013, Sylwester Nawrocki wrote:
>
>> > This patch converts the driver to use v4l2 asynchronous subdev
>> > registration API an the clock API to control the external master
>> > clock directly.
>> >
>> > Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
>> > ---
>> > drivers/media/i2c/s5k6a3.c | 36 ++++++++++++++++++++++++++----------
>> > 1 file changed, 26 insertions(+), 10 deletions(-)
>> >
>> > diff --git a/drivers/media/i2c/s5k6a3.c b/drivers/media/i2c/s5k6a3.c
>> > index ba86e24..f65a4f8 100644
>> > --- a/drivers/media/i2c/s5k6a3.c
>> > +++ b/drivers/media/i2c/s5k6a3.c
> [snip]
>
>> > @@ -282,7 +297,7 @@ static int s5k6a3_probe(struct i2c_client *client,
>> > pm_runtime_no_callbacks(dev);
>> > pm_runtime_enable(dev);
>> >
>> > - return 0;
>> > + return v4l2_async_register_subdev(sd);
>
> If the above fails - don't you have to do any clean up? E.g. below you do
> disable runtime PM and clean up the media entity.
You're right, the clean up steps are missing. Thanks for pointing out,
I've corrected this for the next iteration.
Thanks,
Sylwester
next prev parent reply other threads:[~2013-08-29 9:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-28 15:55 [PATCH v2 0/7] Add device tree support for Exynos4412 Trats2 cameras Sylwester Nawrocki
2013-08-28 15:55 ` [PATCH v2 1/7] V4L: s5c73m3: Add device tree support Sylwester Nawrocki
2013-08-28 15:55 ` [PATCH v2 2/7] V4L: s5k6a3: Add DT binding documentation Sylwester Nawrocki
2013-08-28 15:55 ` [PATCH v2 3/7] V4L: Add driver for s5k6a3 image sensor Sylwester Nawrocki
2013-08-28 15:55 ` [PATCH v2 4/7] V4L: s5k6a3: Add support for asynchronous subdev registration Sylwester Nawrocki
2013-08-28 16:21 ` Guennadi Liakhovetski
2013-08-29 9:47 ` Sylwester Nawrocki [this message]
2013-08-28 15:55 ` [PATCH v2 5/7] exynos4-is: Add clock provider for the external clocks Sylwester Nawrocki
2013-08-28 15:55 ` [PATCH v2 6/7] exynos4-is: Use external s5k6a3 sensor driver Sylwester Nawrocki
2013-08-28 15:56 ` [PATCH v2 7/7] exynos4-is: Add support for asynchronous sensor subddevs registration Sylwester Nawrocki
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=521F18A1.2000805@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).