linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sata_mv errata function
@ 2008-04-21 12:42 Sylver Bruneau
  2008-04-21 13:20 ` Morrison, Tom
  2008-04-21 13:35 ` Mark Lord
  0 siblings, 2 replies; 6+ messages in thread
From: Sylver Bruneau @ 2008-04-21 12:42 UTC (permalink / raw)
  To: linux-ide; +Cc: jeff

Hello,
during my analysis of some recent patches [1] from Marvell for several
ARM based (88f5182 & 88f5281) NAS devices, i've found that some
errata stuff are a little bit different from what is done in sata_mv.c
 mainline code.

I don't know if there is a reason for the code not to be the same, but
I think that it could be useful to bring that to you.

Here are the facts ...
First, the fix value for phyMode 3 is a little bit different :
 while sata_mv.c is applying a
        tmp &= ~0x7F800000;
the patch from Marvell (check _fixPhyParams function in
arch/arm/mach-feroceon/Board
/SATA/CoreDriver/mvSata.c file) is applying a
        regVal &= ~0x7F900000;

The fix value for phyMode 4 is also different for GEN IIE (6042 &
7042) devices :
in Marvell patch, there is an additional fix for this case (where nothing
seems to be done for this in sata_mv.c) :
        /* phy mode 4 register of Gen IIE devices has some restriction */
         if (pAdapter->sataAdapterGeneration >= MV_SATA_GEN_IIE)
        {
            phyMode4Value &= ~0x5DE3FFFC;
            phyMode4Value |= MV_BIT2;
        }

I understand that what is done in this function is not well documented,
 but as it's what is done by Marvell in their patches, do you think that it
should be merged in sata_mv.c ?

If so, I will post a proper patch to add this !

Thanks,
Sylver Bruneau

[1] Marvell/QNAP patch for the TS-409 NAS (88f5281 based + PCIe
88SX7042 SATA controller)
      http://qnap.free.fr/kernel/stock/linux-2.6.21.1.patch

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

end of thread, other threads:[~2008-05-07 16:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-21 12:42 sata_mv errata function Sylver Bruneau
2008-04-21 13:20 ` Morrison, Tom
2008-04-21 13:41   ` Mark Lord
2008-04-21 13:51     ` Morrison, Tom
2008-05-07 16:02       ` Grant Grundler
2008-04-21 13:35 ` Mark Lord

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