spi: cs42l43: Don't support sidecar properties on device tree systems
Subsystems (2)
PATCH 1/1 spi: cs42l43: Don't support sidecar properties on device tree systems
On some systems the cs42l43 has amplifiers attached to its SPI controller that are not properly defined in ACPI. However, this exists to provide compatibility with existing Windows ACPI.
On device tree systems this functionality should never be used, there is no reason not to specify the amplifiers properly through device tree. Make this more clear by only allowing the "sidecar" functionality to be used on non-DT systems.
Signed-off-by Charles Keepax <[email protected]>
--- drivers/spi/spi-cs42l43.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-cs42l43.c +2 -2
@@ -367,10 +367,10 @@ static int cs42l43_spi_probe(struct platform_device *pdev) ret =devm_add_action_or_reset (priv->dev, cs42l43_release_of_node, fwnode);if (ret)return ret; + }else { +fwnode_property_read_u32 (xu_fwnode,"01fa-sidecar-instances" , &nsidecars); } -fwnode_property_read_u32 (xu_fwnode,"01fa-sidecar-instances" , &nsidecars); -if (nsidecars) {struct software_node_ref_args args[] = { SOFTWARE_NODE_REFERENCE(fwnode, 0, GPIO_ACTIVE_LOW),
Signature · 1 line
2.47.3