[PATCH] imx_v6_v7_defconfig: enable SPIDEV module

Fabio Estevam festevam at gmail.com
Fri Dec 2 07:18:42 PST 2016


Hi Gary,

On Fri, Dec 2, 2016 at 12:56 PM, Gary Bisson
<gary.bisson at boundarydevices.com> wrote:
> Signed-off-by: Gary Bisson <gary.bisson at boundarydevices.com>
> ---
> Hi,
>
> Seems that this configuration is missing, especially since many
> device trees are already using "spidev" nodes.

Then they will trigger the following warning below (from the spidev
probe function):

/*
* spidev should never be referenced in DT without a specific
* compatible string, it is a Linux implementation thing
* rather than a description of the hardware.
*/
if (spi->dev.of_node && !of_match_device(spidev_dt_ids, &spi->dev)) {
    dev_err(&spi->dev, "buggy DT: spidev listed directly in DT\n");
    WARN_ON(spi->dev.of_node &&
                       !of_match_device(spidev_dt_ids, &spi->dev));
}



More information about the linux-arm-kernel mailing list