Re: [PATCH] spi: Check conflicting CS based on spi->chip_selectinstead of device name

From: Mark Brown
Date: Thu Jan 09 2014 - 09:07:03 EST


On Thu, Jan 09, 2014 at 03:23:55PM +0200, Mika Westerberg wrote:

> In case of a buggy BIOS that lists multiple SPI devices sharing the same
> chip select (even though they should use different) the current code fails
> to detect that and allows the devices to be added to the bus.

This actually also points out another issue - if we have two instances
of a device on different buses they could end up with the same
dev_name() if they have the same chip select. Hrm.

I'll apply this but we'll probably need to do something about such
conflicts at some point.

Attachment: signature.asc
Description: Digital signature