Skip to content

spi: Fix pxa2xx_spi.c chip select sequence error

Ned Forrester linux-spi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 1 patch 4 repliesIn review

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] spi: Fix pxa2xx_spi.c chip select sequence error

My next message of this subject contains a patch for the issue initially raised by the thread: "PXA270 SSPSFRM gates chip select ?"

This patch is created to apply to the development kernel: 2.6.25-rc1. This kernel has a newly re-organized regs-ssp.h file, and since I needed to add a new bit definition to that file, it is included in the patch. However, as noted in the comments to the patch, kernels 2.6.20 (when the bug was introduced) through 2.6.24 have the ssp bit definitions in pxa-regs.h, so the extra bit needs to be added there for the earlier versions.

David:

Is there a defined procedure for distributing patches the can be applied to different kernel versions, when they won't apply directly?

---

Also note that I am still developing on 2.6.20, and so I have only tested this code on that version. Furthermore, I don't use chip select, so really I just compiled and ran the changes to show that they do no harm.

David:

Can I assume that you or someone up the chain will go through the motions of applying this patch to 2.6.25 and showing that it compiles? I really don't expect any trouble with that.

Scott:

Can you apply the patch to your 2.6.21 tree, and see if it fixes your original problem? Note that you will have to add the bit definition line to include/asm-arm/arch-pxa/pxa-regs.h, by hand, or alter the file names in the patch from regs-ssp.h to pxa-regs.h

Signature · 13 lines
Ned Forrester                                       nforrester-/[email protected]
Oceanographic Systems Lab                                  508-289-2226
Applied Ocean Physics and Engineering Dept.
Woods Hole Oceanographic Institution          Woods Hole, MA 02543, USA
http://www.whoi.edu/sbl/liteSite.do?litesiteid=7212
http://www.whoi.edu/hpb/Site.do?id=1532
http://www.whoi.edu/page.do?pid=10079


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/