mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Query: should 'Marvell SATA support' depend on PCI?
@ 2008-08-10  6:47 Grant Coady
  2008-08-10 12:08 ` Rafael J. Wysocki
  2008-08-10 12:24 ` Frans Pop
  0 siblings, 2 replies; 5+ messages in thread
From: Grant Coady @ 2008-08-10  6:47 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

Hi Alan,

I was reworking the ATA driver menu patch to shrink it (merge 'depends on' 
lines) and noticed that the:

config SATA_MV
        tristate "Marvell SATA support (HIGHLY EXPERIMENTAL)"
        depends on EXPERIMENTAL
        help
          This option enables support for the Marvell Serial ATA family.
          Currently supports 88SX[56]0[48][01] chips.

doesn't have 'depends on PCI && EXPERIMENTAL' like other drivers around 
it, this is okay or should it also depend on PCI?

Grant.

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

* Re: Query: should 'Marvell SATA support' depend on PCI?
  2008-08-10 12:08 ` Rafael J. Wysocki
@ 2008-08-10 11:54   ` Alan Cox
  2008-08-10 12:26     ` Rafael J. Wysocki
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Cox @ 2008-08-10 11:54 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Grant Coady, linux-kernel

> > doesn't have 'depends on PCI && EXPERIMENTAL' like other drivers around 
> > it, this is okay or should it also depend on PCI?
> 
> Well, I think so.  It obviously depends on PCI.

Obviously ? Try looking a bit harder

/**
 *      mv_platform_probe - handle a positive probe of an soc Marvell
 *      host
 *      @pdev: platform device found
 *
 *      LOCKING:
 *      Inherited from caller.
 */
static int mv_platform_probe(struct platform_device *pdev)


Alan

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

* Re: Query: should 'Marvell SATA support' depend on PCI?
  2008-08-10  6:47 Query: should 'Marvell SATA support' depend on PCI? Grant Coady
@ 2008-08-10 12:08 ` Rafael J. Wysocki
  2008-08-10 11:54   ` Alan Cox
  2008-08-10 12:24 ` Frans Pop
  1 sibling, 1 reply; 5+ messages in thread
From: Rafael J. Wysocki @ 2008-08-10 12:08 UTC (permalink / raw)
  To: Grant Coady; +Cc: Alan Cox, linux-kernel

On Sunday, 10 of August 2008, Grant Coady wrote:
> Hi Alan,
> 
> I was reworking the ATA driver menu patch to shrink it (merge 'depends on' 
> lines) and noticed that the:
> 
> config SATA_MV
>         tristate "Marvell SATA support (HIGHLY EXPERIMENTAL)"
>         depends on EXPERIMENTAL
>         help
>           This option enables support for the Marvell Serial ATA family.
>           Currently supports 88SX[56]0[48][01] chips.
> 
> doesn't have 'depends on PCI && EXPERIMENTAL' like other drivers around 
> it, this is okay or should it also depend on PCI?

Well, I think so.  It obviously depends on PCI.

Thanks,
Rafael

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

* Re: Query: should 'Marvell SATA support' depend on PCI?
  2008-08-10  6:47 Query: should 'Marvell SATA support' depend on PCI? Grant Coady
  2008-08-10 12:08 ` Rafael J. Wysocki
@ 2008-08-10 12:24 ` Frans Pop
  1 sibling, 0 replies; 5+ messages in thread
From: Frans Pop @ 2008-08-10 12:24 UTC (permalink / raw)
  To: Grant Coady; +Cc: alan, linux-kernel

Grant Coady wrote:
> I was reworking the ATA driver menu patch to shrink it (merge 'depends
> on' lines) and noticed that the:
> 
> config SATA_MV
>         tristate "Marvell SATA support (HIGHLY EXPERIMENTAL)"
>         depends on EXPERIMENTAL
>         help
>           This option enables support for the Marvell Serial ATA family.
>           Currently supports 88SX[56]0[48][01] chips.
> 
> doesn't have 'depends on PCI && EXPERIMENTAL' like other drivers around
> it, this is okay or should it also depend on PCI?

AFAICT it should not as it can also be implemented as a platform device.

I have SATA_MV on a QNAP TS-109 NAS dervice (arm) and lspci on that gives me:
$ lspci
00:00.0 Memory controller: Marvell Technology Group Ltd. Device 5182 (rev 02)
01:00.0 Memory controller: Marvell Technology Group Ltd. Device 5182 (rev 02)

So the disk controller is not on the PCI bus.
And in /sys/ I see sata_mv listed under devices/platform/.


Cheers,
FJP

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

* Re: Query: should 'Marvell SATA support' depend on PCI?
  2008-08-10 11:54   ` Alan Cox
@ 2008-08-10 12:26     ` Rafael J. Wysocki
  0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2008-08-10 12:26 UTC (permalink / raw)
  To: Alan Cox; +Cc: Grant Coady, linux-kernel

On Sunday, 10 of August 2008, Alan Cox wrote:
> > > doesn't have 'depends on PCI && EXPERIMENTAL' like other drivers around 
> > > it, this is okay or should it also depend on PCI?
> > 
> > Well, I think so.  It obviously depends on PCI.
> 
> Obviously ? Try looking a bit harder
> 
> /**
>  *      mv_platform_probe - handle a positive probe of an soc Marvell
>  *      host
>  *      @pdev: platform device found
>  *
>  *      LOCKING:
>  *      Inherited from caller.
>  */
> static int mv_platform_probe(struct platform_device *pdev)

Sorry, I didn't notice the '#ifdef CONFIG_PCI' in there.

Rafael

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

end of thread, other threads:[~2008-08-10 12:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-10  6:47 Query: should 'Marvell SATA support' depend on PCI? Grant Coady
2008-08-10 12:08 ` Rafael J. Wysocki
2008-08-10 11:54   ` Alan Cox
2008-08-10 12:26     ` Rafael J. Wysocki
2008-08-10 12:24 ` Frans Pop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®