Skip to contentSkip to conversation

ARM PL022 SSP/SPI driver v2

PATCH New Linus Walleij 1 participant 1 message Jun 1, 2009 SPI

lore
Share & tools
lore
#0 lore raw

cover ARM PL022 SSP/SPI driver v2

ChangeLog v1->v2:

* Moved #define comments together with the #define on one line where possible. Sometimes I had to go from using tabs to using a few spaces to do this, but it works out.

* Replaced FOO_STATE with STATE_FOO everywhere using regexp s/\([A-Z]+\)_STATE/STATE_\1/g, same for CPSDVR, SCR MAX and MIN defines, same with {READING|WRITING}_{U8|U16|U32|NULL}.

* Align struct member with TAB.

* Return IRQ_NONE immediately in the interrupt handler when there is no IRQ source bit set, removing a large chunk of excess IRQ handling indentation.

* Added "(EXPERIMENTAL)" to the config description.

* Removed check for children PM status in suspend code. The device model makes sure that any suspend() hooks in the children are called and return OK anyway, so this was entirely unnecessary.

* Remove __initdata tag from AMBA PrimeCell IDs, it could potentially be referenced at runtime.

* Forward-declare struct device in the pl022.h file instead of including <device.h>.

* Fix capitalization Tx Rx -> TX RX globally.

* spi_set_ctldata(spi, NULL); in pl022_cleanup().

Yours,
Linus Walleij

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com