media: ov2680: Allow probing if link-frequencies is absent
authorFabio Estevam <festevam@denx.de>
Thu, 28 Mar 2024 22:44:13 +0000 (19:44 -0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 10 Apr 2024 13:15:30 +0000 (15:15 +0200)
commitfd2e66abd729dae5809dbb41c6c52a6931cfa6bb
treecb8ee46e133eb370f48bfb2db4ecbf3ca311da9f
parent49a9bad83b4ab5dac1d7aba2615c77978bcf3984
media: ov2680: Allow probing if link-frequencies is absent

Since commit 63b0cd30b78e ("media: ov2680: Add bus-cfg / endpoint
property verification") the ov2680 no longer probes on a imx7s-warp7:

ov2680 1-0036: error -EINVAL: supported link freq 330000000 not found
ov2680 1-0036: probe with driver ov2680 failed with error -22

As the 'link-frequencies' property is not mandatory, allow the probe
to succeed by skipping the link-frequency verification when the
property is absent.

Cc: stable@vger.kernel.org
Fixes: 63b0cd30b78e ("media: ov2680: Add bus-cfg / endpoint property verification")
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov2680.c