mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
media: qcom: camss: Restrict endpoint bus-type to D-PHY
Currently the Qualcomm CAMSS driver only supports D-PHY while the hardware on most SoCs also supports C-PHY. Until this support is added, check for D-PHY to make it somewhat explicit that C-PHY won't work. Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Tested-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Bryan O'Donoghue <bod@kernel.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
parent
2ab7f87a7f
commit
bce4c094c2
|
|
@ -2663,6 +2663,15 @@ static int camss_of_parse_endpoint_node(struct device *dev,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
/*
|
||||
* Most SoCs support both D-PHY and C-PHY standards, but currently only
|
||||
* D-PHY is supported in the driver.
|
||||
*/
|
||||
if (vep.bus_type != V4L2_MBUS_CSI2_DPHY) {
|
||||
dev_err(dev, "Unsupported bus type %d\n", vep.bus_type);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
csd->interface.csiphy_id = vep.base.port;
|
||||
|
||||
mipi_csi2 = &vep.bus.mipi_csi2;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user