Skip to content

ARM PL022 SSP/SPI driver v2

Linus Walleij linux-spi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 1 patch 0 repliesNew

ChangeLog v1->v2 from the cover letter

* 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().

Patches in v1 No applies recorded yet

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] 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