media: rcar-vin: Route events to correct video device
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 15 Jan 2021 00:21:46 +0000 (01:21 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 13:42:05 +0000 (14:42 +0100)
commitbdd59592b29b4047f450131d2490702332a5a467
treea3fdebdf3530d91599906353367204e60dca85f5
parentc4f115355c53a0df9ac3a8a33f31ff23970c2737
media: rcar-vin: Route events to correct video device

The event route for VIN running with a media controller (Gen3) is
incorrect as all events are only routed to the video device that are
used to register the async notifier.

Remedy this be examining which subdevice generated the event and route
it to all VIN(s) that are connected to that subdevice.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-v4l2.c