diff options
| author | Akinobu Mita <[email protected]> | 2018-06-03 14:14:25 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2018-06-05 13:50:20 +0000 |
| commit | 8cbc3a856fc6acee31f9820a566a9625776b68ee (patch) | |
| tree | 1ebb94a183bbed7d00e7b0be286f1ca25e1279de /drivers/pci/controller/pci-host-common.c | |
| parent | media: arch: sh: migor: Fix TW9910 PDN gpio (diff) | |
| download | kernel-8cbc3a856fc6acee31f9820a566a9625776b68ee.tar.gz kernel-8cbc3a856fc6acee31f9820a566a9625776b68ee.zip | |
media: pxa_camera: ignore -ENOIOCTLCMD from v4l2_subdev_call for s_power
When the subdevice doesn't provide s_power core ops callback, the
v4l2_subdev_call for s_power returns -ENOIOCTLCMD. If the subdevice
doesn't have the special handling for its power saving mode, the s_power
isn't required. So -ENOIOCTLCMD from the v4l2_subdev_call should be
ignored.
Actually the -ENOIOCTLCMD is ignored in this driver's suspend/resume,
but the others treat the -ENOIOCTLCMD as an error.
This prepares a wrapper function to ignore -ENOIOCTLCMD and replaces
all s_power calls with it.
This also adds warning message when s_power() is failed.
Cc: Sakari Ailus <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions
