linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomasz Figa <tfiga@chromium.org>
To: Sakari Ailus <sakari.ailus@linux.intel.com>,
	Jacob Chen <jacob-chen@iotwrt.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
	Hans Verkuil <hverkuil@xs4all.nl>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Re: notifier is skipped in some situations
Date: Fri, 24 Nov 2017 18:19:36 +0900	[thread overview]
Message-ID: <CAAFQd5Cz0VfZB-JMf3YESAb4z0i+koQq=BRSzu7vy9Sdwi157A@mail.gmail.com> (raw)
In-Reply-To: <20171124091716.jasz6rkusazcwhpd@paasikivi.fi.intel.com>

On Fri, Nov 24, 2017 at 6:17 PM, Sakari Ailus
<sakari.ailus@linux.intel.com> wrote:
> Hi Tomasz,
>
> On Fri, Nov 24, 2017 at 06:03:26PM +0900, Tomasz Figa wrote:
>> Hi Sakari,
>>
>> We have the following graph:
>>
>>     ISP (registers notifier for v4l2_dev)
>>
>>      |
>>
>>     PHY (registers notifier for v4l2_subdev, just like sensors for
>> flash/focuser)
>>
>>   |       \
>>
>> sensor0   sensor1
>>
>> ...
>>
>> Both ISP and PHY are completely separate drivers not directly aware of
>> each other, since we have several different PHY IP blocks that we need
>> to support and some of them are multi-functional, such as CSI+DSI PHY
>> and need to be supported by drivers independent from the ISP driver.
>
> That should work fine. In the above case there are two notifiers, indeed,
> but they're not expecting the *same* sub-devices.

Got it.

Jacob, could you make sure there are no mistakes in the Device Tree source?

Best regards,
Tomasz

>
> What this could be about is that in some version of the set I disabled the
> complete callback on the sub-notifiers for two reasons: there was no need
> seen for them and the complete callback is problematic in general (there's
> been discussion on that, mostly related to earlier versions of the fwnode
> parsing patchset, on #v4l and along the Renesas rcar-csi2 patchsets).
>
>>
>> Best regards,
>> Tomasz
>>
>>
>> On Fri, Nov 24, 2017 at 5:55 PM, Sakari Ailus
>> <sakari.ailus@linux.intel.com> wrote:
>> > Hi Jacob,
>> >
>> > On Fri, Nov 24, 2017 at 09:00:14AM +0800, Jacob Chen wrote:
>> >> Hi Sakari,
>> >>
>> >> I encountered a problem when using async sub-notifiers.
>> >>
>> >> It's like that:
>> >>     There are two notifiers, and they are waiting for one subdev.
>> >>     When this subdev is probing, only one notifier is completed and
>> >> the other one is skipped.
>> >
>> > Do you have a graph that has two master drivers (that register the
>> > notifier) and both are connected to the same sub-device? Could you provide
>> > exact graph you have?
>> >
>> >>
>> >> I found that in v15 of patch "v4l: async: Allow binding notifiers to
>> >> sub-devices", "v4l2_async_notifier_complete" is replaced by
>> >> v4l2_async_notifier_call_complete, which make it only complete one
>> >> notifier.
>> >>
>> >> Why is it changed? Can this be fixed?
>> >
>> > --
>> > Sakari Ailus
>> > sakari.ailus@linux.intel.com
>
> --
> Sakari Ailus
> sakari.ailus@linux.intel.com

  reply	other threads:[~2017-11-24  9:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-24  1:00 notifier is skipped in some situations Jacob Chen
2017-11-24  8:55 ` Sakari Ailus
2017-11-24  9:03   ` Tomasz Figa
2017-11-24  9:17     ` Sakari Ailus
2017-11-24  9:19       ` Tomasz Figa [this message]
     [not found]         ` <1725377.6lDSOU2C5Q@macbookair>
     [not found]           ` <7578236.BQvekhbvUq@macbookair>
2017-11-29 12:29             ` Sakari Ailus
     [not found]               ` <8641274.XBun1tTRXh@macbookair>
2017-12-01 11:17                 ` Sakari Ailus

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='CAAFQd5Cz0VfZB-JMf3YESAb4z0i+koQq=BRSzu7vy9Sdwi157A@mail.gmail.com' \
    --to=tfiga@chromium.org \
    --cc=hverkuil@xs4all.nl \
    --cc=jacob-chen@iotwrt.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=sakari.ailus@linux.intel.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;
as well as URLs for NNTP newsgroup(s).