All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch 0/1] spi: Fix pxa2xx_spi.c chip select sequence error
@ 2008-02-18  4:35 Ned Forrester
       [not found] ` <47B90B11.6000601-/d+BM93fTQY@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Ned Forrester @ 2008-02-18  4:35 UTC (permalink / raw)
  To: David Brownell; +Cc: spi-devel, merrij3-IL7dBOYR4Vg, Stephen Street

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

-- 
Ned Forrester                                       nforrester-/d+BM93fTQY@public.gmane.org
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Patch 0/1] spi: Fix pxa2xx_spi.c chip select sequence error
       [not found] ` <47B90B11.6000601-/d+BM93fTQY@public.gmane.org>
@ 2008-02-18 22:21   ` J. Scott Merritt
       [not found]     ` <20080218172128.6fd1522c.merrij3-IL7dBOYR4Vg@public.gmane.org>
  2008-02-20 22:48   ` David Brownell
  1 sibling, 1 reply; 5+ messages in thread
From: J. Scott Merritt @ 2008-02-18 22:21 UTC (permalink / raw)
  To: Ned Forrester
  Cc: david-b-yBeKhBN/0LDR7s880joybQ,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	stephen-nl6u4wocdmy51APUEpUfAkEOCMrvLtNR

On Sun, 17 Feb 2008 23:35:29 -0500
Ned Forrester <nforrester-/d+BM93fTQY@public.gmane.org> wrote:

> 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


I am pleased to report that the supplied Patch DOES indeed appear to
correct the corruption (translation) that I was seeing in the first
SPI data transferred after a reboot :)

Thanks, Scott.

-------------------------------------------------------------------------
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Patch 0/1] spi: Fix pxa2xx_spi.c chip select sequence error
       [not found]     ` <20080218172128.6fd1522c.merrij3-IL7dBOYR4Vg@public.gmane.org>
@ 2008-02-18 23:03       ` Ned Forrester
       [not found]         ` <47BA0ED9.5040501-/d+BM93fTQY@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Ned Forrester @ 2008-02-18 23:03 UTC (permalink / raw)
  To: J. Scott Merritt
  Cc: david-b-yBeKhBN/0LDR7s880joybQ,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	stephen-nl6u4wocdmy51APUEpUfAkEOCMrvLtNR

J. Scott Merritt wrote:
> On Sun, 17 Feb 2008 23:35:29 -0500
> Ned Forrester <nforrester-/d+BM93fTQY@public.gmane.org> wrote:
> 
>> 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
> 
> 
> I am pleased to report that the supplied Patch DOES indeed appear to
> correct the corruption (translation) that I was seeing in the first
> SPI data transferred after a reboot :)

Thanks for testing.

-- 
Ned Forrester                                       nforrester-/d+BM93fTQY@public.gmane.org
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Patch 0/1] spi: Fix pxa2xx_spi.c chip select sequence error
       [not found]         ` <47BA0ED9.5040501-/d+BM93fTQY@public.gmane.org>
@ 2008-02-20 18:26           ` Ned Forrester
  0 siblings, 0 replies; 5+ messages in thread
From: Ned Forrester @ 2008-02-20 18:26 UTC (permalink / raw)
  To: david-b-yBeKhBN/0LDR7s880joybQ
  Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	stephen-nl6u4wocdmy51APUEpUfAkEOCMrvLtNR

Ned Forrester wrote:
> J. Scott Merritt wrote:
>> On Sun, 17 Feb 2008 23:35:29 -0500
>> Ned Forrester <nforrester-/d+BM93fTQY@public.gmane.org> wrote:
>>
>>> 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
>>
>> I am pleased to report that the supplied Patch DOES indeed appear to
>> correct the corruption (translation) that I was seeing in the first
>> SPI data transferred after a reboot :)
> 
> Thanks for testing.

David:

It appears that the patch works, and there have been no other comments
in the past several days.  Unless you have comments of your own, is it
time to push "[Patch 1/1] spi: Fix pxa2xx_spi.c chip select sequence
error" up stream?

-- 
Ned Forrester                                       nforrester-/d+BM93fTQY@public.gmane.org
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Patch 0/1] spi: Fix pxa2xx_spi.c chip select sequence error
       [not found] ` <47B90B11.6000601-/d+BM93fTQY@public.gmane.org>
  2008-02-18 22:21   ` J. Scott Merritt
@ 2008-02-20 22:48   ` David Brownell
  1 sibling, 0 replies; 5+ messages in thread
From: David Brownell @ 2008-02-20 22:48 UTC (permalink / raw)
  To: Ned Forrester; +Cc: spi-devel, merrij3-IL7dBOYR4Vg, Stephen Street


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

A couple of them.  One is to just cc the "stable" list,
possibly with a note about merge issues.  Another is to
leave the issue up to other folk who support back-rev
kernels, which isn't quite as useful.

> 
> 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.

Yes.

-------------------------------------------------------------------------
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-20 22:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-18  4:35 [Patch 0/1] spi: Fix pxa2xx_spi.c chip select sequence error Ned Forrester
     [not found] ` <47B90B11.6000601-/d+BM93fTQY@public.gmane.org>
2008-02-18 22:21   ` J. Scott Merritt
     [not found]     ` <20080218172128.6fd1522c.merrij3-IL7dBOYR4Vg@public.gmane.org>
2008-02-18 23:03       ` Ned Forrester
     [not found]         ` <47BA0ED9.5040501-/d+BM93fTQY@public.gmane.org>
2008-02-20 18:26           ` Ned Forrester
2008-02-20 22:48   ` David Brownell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.