linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [PATCH/2.6.17-rc4 10/10]  bugs fix for marvell SATA on powerp c pl atform
@ 2006-05-18  4:03 Zang Roy-r61911
  2006-05-18  7:02 ` Benjamin Herrenschmidt
  2006-05-18 12:01 ` Ric Wheeler
  0 siblings, 2 replies; 21+ messages in thread
From: Zang Roy-r61911 @ 2006-05-18  4:03 UTC (permalink / raw)
  To: jgarzik
  Cc: linux-ide, linux-kernel, Paul Mackerras, linuxppc-dev list,
	Alexandre.Bounine, Yang Xin-Xin-r48390, Kumar Gala


-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: 2006年5月17日 21:28
To: Zang Roy-r61911
Cc: Paul Mackerras; linuxppc-dev list; Alexandre.Bounine@tundra.com; Yang Xin-Xin-r48390
Subject: Re: [PATCH/2.6.17-rc4 10/10] bugs fix for marvell SATA on powerpc pl atform



On May 17, 2006, at 5:14 AM, Zang Roy-r61911 wrote:

> Fix Marvell SATA driver bugs on PowerPC platform:
> SATA device can't work for the problem on little-endian mode.
> U-Boot can't find SATA device after kernel reboots.
>
> Signed-off-by: Hongjun cheng	<hong-jun.chen@reescale.com>
> Signed-off-by: Roy Zang		<tie-fei.zang@freescale.com>
>
>> From nobody Mon Sep 17 00:00:00 2001
> From: roy zang <tie-fei.zang@freescale.com>
> Date: Tue May 16 15:25:23 2006 +0800
> Subject: [PATCH] Fix bugs on powerpc platform for mv sata driver

This needs to go to Jeff Garzik as SATA driver maintainer.

- kumar

>
>  drivers/scsi/sata_mv.c |   10 +++++++++-
>  1 files changed, 9 insertions(+), 1 deletions(-)
>
> d82ac19d259f8487a31105eaf844a93cbd9008e8
> diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c
> index d5fdcb9..4166422 100644
> --- a/drivers/scsi/sata_mv.c
> +++ b/drivers/scsi/sata_mv.c
> @@ -1032,6 +1032,9 @@ static inline void mv_crqb_pack_cmd(u16
>  {
>  	*cmdw = data | (addr << CRQB_CMD_ADDR_SHIFT) | CRQB_CMD_CS |
>  		(last ? CRQB_CMD_LAST : 0);
> +#ifdef CONFIG_PPC
> +	*cmdw = cpu_to_le16(*cmdw);
> +#endif
>  }
>
>  /**
> @@ -1567,13 +1570,18 @@ static void mv5_read_preamp(struct mv_ho
>  static void mv5_enable_leds(struct mv_host_priv *hpriv, void  
> __iomem *mmio)
>  {
>  	u32 tmp;
> -
> +#ifndef CONFIG_PPC
>  	writel(0, mmio + MV_GPIO_PORT_CTL);
> +#endif
>
>  	/* FIXME: handle MV_HP_ERRATA_50XXB2 errata */
>
>  	tmp = readl(mmio + MV_PCI_EXP_ROM_BAR_CTL);
> +#ifdef CONFIG_PPC
> +	tmp &= ~(1 << 0);
> +#else	
>  	tmp |= ~(1 << 0);
> +#endif
>  	writel(tmp, mmio + MV_PCI_EXP_ROM_BAR_CTL);
>  }
>
> -- 
> 1.3.0
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: [PATCH/2.6.17-rc4 10/10]  bugs fix for marvell SATA on powerp c pl atform
@ 2006-05-19  4:06 Zang Roy-r61911
  0 siblings, 0 replies; 21+ messages in thread
From: Zang Roy-r61911 @ 2006-05-19  4:06 UTC (permalink / raw)
  To: Mark Lord, Jeff Garzik
  Cc: Benjamin Herrenschmidt, linux-ide, linux-kernel, Paul Mackerras,
	linuxppc-dev list, Alexandre.Bounine, Yang Xin-Xin-r48390,
	Kumar Gala

 
> Jeff Garzik wrote:
> > Benjamin Herrenschmidt wrote:
> >> On Thu, 2006-05-18 at 12:03 +0800, Zang Roy-r61911 wrote:
> ..
> >>> @@ -1567,13 +1570,18 @@ static void mv5_read_preamp(struct mv_ho
> >>>  static void mv5_enable_leds(struct mv_host_priv *hpriv, 
> void __iomem
> >> *mmio)
> >>>  {
> >>>       u32 tmp;
> >>> -
> >>> +#ifndef CONFIG_PPC
> >>>       writel(0, mmio + MV_GPIO_PORT_CTL);
> >>> +#endif
> >>
> >> You'll have to do better here too... I don't wee why when 
> compiled on
> >> PPC, this driver should "magically" not clear those 
> bits... At the very
> >> least, you should test the machine type if you want to do something
> >> specific to your platform, but first, you'll have to 
> convince Jeff why
> >> this change has to be done in the first place and if there 
> is a better
> >> way to handle it.
> > 
> > Correct...  it does seem some bugs were found, but #ifdef 
> powerpc is 
> > certainly out of the question.  We want the driver to work without 
> > ifdefs on all platforms.
> 
> Yup.  I have a powerpc platform here with PCI-X, and a PCI-X 
> Marvell card
> to try in it.  So I'll pick up these changes and try to 
> integrate them a
> little more nicely in my internal updated driver, and then 
> pass it on to Jeff.
> 
> Cheers
> 

^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: [PATCH/2.6.17-rc4 10/10]  bugs fix for marvell SATA on powerp c pl atform
@ 2006-05-19  4:12 Zang Roy-r61911
  0 siblings, 0 replies; 21+ messages in thread
From: Zang Roy-r61911 @ 2006-05-19  4:12 UTC (permalink / raw)
  To: Mark Lord, Jeff Garzik
  Cc: Benjamin Herrenschmidt, linux-ide, linux-kernel, Paul Mackerras,
	linuxppc-dev list, Alexandre.Bounine, Yang Xin-Xin-r48390,
	Kumar Gala

> Jeff Garzik wrote:
> > Benjamin Herrenschmidt wrote:
> >> On Thu, 2006-05-18 at 12:03 +0800, Zang Roy-r61911 wrote:
> ..
> >>> @@ -1567,13 +1570,18 @@ static void mv5_read_preamp(struct mv_ho
> >>>  static void mv5_enable_leds(struct mv_host_priv *hpriv, 
> void __iomem
> >> *mmio)
> >>>  {
> >>>       u32 tmp;
> >>> -
> >>> +#ifndef CONFIG_PPC
> >>>       writel(0, mmio + MV_GPIO_PORT_CTL);
> >>> +#endif
> >>
> >> You'll have to do better here too... I don't wee why when 
> compiled on
> >> PPC, this driver should "magically" not clear those 
> bits... At the very
> >> least, you should test the machine type if you want to do something
> >> specific to your platform, but first, you'll have to 
> convince Jeff why
> >> this change has to be done in the first place and if there 
> is a better
> >> way to handle it.
> > 
> > Correct...  it does seem some bugs were found, but #ifdef 
> powerpc is 
> > certainly out of the question.  We want the driver to work without 
> > ifdefs on all platforms.
> 
> Yup.  I have a powerpc platform here with PCI-X, and a PCI-X 
> Marvell card
> to try in it.  So I'll pick up these changes and try to 
> integrate them a
> little more nicely in my internal updated driver, and then 
> pass it on to Jeff.
> 
> Cheers
> 

The reason why I use "ifdef" is that I do not want to affect other platform. I do not 
have other platform to verify. If you can verify my patch on your powerpc platform, 
please help to integrate it into your driver.

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

end of thread, other threads:[~2006-05-26 16:25 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-18  4:03 [PATCH/2.6.17-rc4 10/10] bugs fix for marvell SATA on powerp c pl atform Zang Roy-r61911
2006-05-18  7:02 ` Benjamin Herrenschmidt
2006-05-18 15:26   ` Jeff Garzik
2006-05-18 20:50     ` Mark Lord
2006-05-18 21:07       ` Jeff Garzik
2006-05-18 21:37         ` Mark Lord
2006-05-26  8:39       ` Sven Luther
2006-05-26  8:56         ` Jeff Garzik
2006-05-26  8:58           ` Sven Luther
2006-05-26 11:41         ` Mark Lord
2006-05-26 11:42           ` Sven Luther
2006-05-26 13:19             ` Mark Lord
2006-05-26 14:15               ` Sven Luther
2006-05-26 15:47                 ` Mark Lord
2006-05-26 16:01                   ` Sven Luther
2006-05-26 16:15                     ` Sven Luther
2006-05-26 16:21                     ` Mark Lord
2006-05-26 16:25                       ` Sven Luther
2006-05-18 12:01 ` Ric Wheeler
  -- strict thread matches above, loose matches on Subject: below --
2006-05-19  4:06 Zang Roy-r61911
2006-05-19  4:12 Zang Roy-r61911

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).