Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
From: Michal Suchanek
Date: Mon May 04 2015 - 06:49:57 EST
On 4 May 2015 at 12:12, Mark Brown <broonie@xxxxxxxxxx> wrote:
> On Sun, May 03, 2015 at 11:00:40PM +0200, Martin Sperl wrote:
>
>> I will investigate the fine details, but I fear we may need some
>> âcompatibilityâ magic similar to ânew_idâ in USB to make it work,
>> because it seems as if you can ONLY force a driver to bind if it
>> _is_ compatible...
>
> I'm confused. What would the point of the functionality be if not to
> override the existing data, otherwise we'd already have bound the
> driver?
Presumably you can swap different versions of a driver this way.
Many devices have two drivers in Linux (old and new) which are
obviously both compatible.
Loading driver which is not compatible is something which you probably
do not want to be done easily as much as sending random junk to SPI
devices controlled by a kernel driver.
I am, of course, enjoying the ability to send some ID command to a
flash memory which is technically controlled by a kernel driver when I
physically replace the chip in the socket or the chip was not seated
well to start with and I want to check that it's working without
rebooting the board.
Thanks
Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/