kidoman / embd

Embedded Programming Framework in Go
http://embd.kidoman.io
MIT License
1.28k stars 156 forks source link

add csChange, pad fields to spiIOCTransfer struct #39

Closed bgentry closed 7 years ago

bgentry commented 8 years ago

Per the discussion in #38, these two fields are part of the equivalent struct in the kernel SPI driver. Adding the fields allows the SPI driver to work on a Raspberry Pi Model 2 B.

h/t @hbhasker

Fixes #38. Fixes #24.

luxflux commented 8 years ago

Any news on this one? The change looks good to me.

wujiang commented 8 years ago

This is a showstopper for spi on raspberry pi 2. The fix looks good to me. Please review and merge.

alaingilbert commented 8 years ago

Fix my rpi2 as well. :+1:

kidoman commented 8 years ago

Has anyone gotten the chance to test this on the other RPi's ?

npotts commented 8 years ago

This fixes the problem on mine as well

anthonylawson commented 8 years ago

@kidoman I have a model B1 running the latest version of Raspbian that was running into this issue, but this fix worked on the B1 version as well.

tve commented 7 years ago

Closing as this should be fixed by #69, please reopen if I missed something.