From: Tim Nordell <tim.nordell@logicpd.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: <linux-media@vger.kernel.org>, <sakari.ailus@iki.fi>
Subject: Re: [PATCH 1/3] omap3isp: Defer probing when subdev isn't available
Date: Wed, 18 Mar 2015 10:18:43 -0500 [thread overview]
Message-ID: <55099753.5010405@logicpd.com> (raw)
In-Reply-To: <3275472.GjEQv8ASR0@avalon>
Laurent -
Agreed. This is a stop gap for this, but I guess by the time this patch
could possibly get incorporated we'd be off to device tree anyways.
- Tim
(Sorry for the repeat - my e-mail client sent out an HTML message so it
didn't get through to the mailing list.)
On 03/18/15 10:15, Laurent Pinchart wrote:
> Hi Tim,
>
> Thank you for the patch.
>
> The OMAP3 ISP driver is moving to DT, hopefully in time for v4.1. See "[PATCH
> 00/15] omap3isp driver DT support" posted to the list on Monday. I'd rather go
> for proper DT support instead of custom deferred probing.
>
> On Tuesday 10 March 2015 14:24:52 Tim Nordell wrote:
>> If the subdev isn't available just yet, defer probing of
>> the system. This is useful if the omap3isp comes up before
>> the I2C subsystem does.
>>
>> Signed-off-by: Tim Nordell <tim.nordell@logicpd.com>
>> ---
>> drivers/media/platform/omap3isp/isp.c | 6 +++++-
>> 1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/media/platform/omap3isp/isp.c
>> b/drivers/media/platform/omap3isp/isp.c index 51c2129..a361c40 100644
>> --- a/drivers/media/platform/omap3isp/isp.c
>> +++ b/drivers/media/platform/omap3isp/isp.c
>> @@ -1811,7 +1811,7 @@ isp_register_subdev_group(struct isp_device *isp,
>> "device %s\n", __func__,
>> board_info->i2c_adapter_id,
>> board_info->board_info->type);
>> - continue;
>> + return ERR_PTR(-EPROBE_DEFER);
>> }
>>
>> subdev = v4l2_i2c_new_subdev_board(&isp->v4l2_dev, adapter,
>> @@ -1898,6 +1898,10 @@ static int isp_register_entities(struct isp_device
>> *isp) unsigned int i;
>>
>> sensor = isp_register_subdev_group(isp, subdevs->subdevs);
>> + if (IS_ERR(sensor)) {
>> + ret = PTR_ERR(sensor);
>> + goto done;
>> + }
>> if (sensor == NULL)
>> continue;
next prev parent reply other threads:[~2015-03-18 15:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-10 19:24 [PATCH 0/3] *** Updates against OMAP3ISP and BT.656 Tim Nordell
2015-03-10 19:24 ` [PATCH 1/3] omap3isp: Defer probing when subdev isn't available Tim Nordell
2015-03-18 15:15 ` Laurent Pinchart
2015-03-18 15:18 ` Tim Nordell [this message]
2015-03-10 19:24 ` [PATCH 2/3] omap3isp: Disable CCDC's VD0 and VD1 interrupts when stream is not enabled Tim Nordell
2015-03-18 15:19 ` Laurent Pinchart
2015-03-18 15:25 ` Tim Nordell
2015-04-21 17:58 ` Laurent Pinchart
2015-04-21 18:05 ` Tim Nordell
2015-03-10 19:24 ` [PATCH 3/3] omap3isp: Add a delayed buffers for frame mode Tim Nordell
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=55099753.5010405@logicpd.com \
--to=tim.nordell@logicpd.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@iki.fi \
/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).