cs_change for SPI transfers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I think there's an error in most IIO devices that use SPI transfers.

Haavard Skinnemoen wrote:
The normal behaviour is:
  * After all transfers except the last: CS stays active
  * After the last transfer: CS goes inactive

The cs_change flag is used to invert this behaviour. So for the last
transfer, cs_change indicates that CS should stay active after the
transfer (though the driver may not actually be able to do so, e.g. if
the message is followed by a message to a different device.)


The drivers in IIO set cs_change for all transfers (including the last in a message), which is not what we want. I can prepare a patch to correct this.

Regards,
--
Manuel Stahl
Fraunhofer-Institut IIS
Leistungsoptimierte Systeme

Nordostpark 93
D90411 NÃrnberg
Telefon  +49 (0)911/58061-6419
Fax      +49 (0)911/58061-6398
E-Mail   manuel.stahl@xxxxxxxxxxxxxxxxx

http://www.iis.fraunhofer.de
http://www.smart-power.fraunhofer.de
begin:vcard
fn:Manuel Stahl
n:Stahl;Manuel
email;internet:manuel.stahl@xxxxxxxxxxxxxxxxx
tel;work:+49 911 58061-6419
x-mozilla-html:FALSE
version:2.1
end:vcard


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux