* [MMC] Multiple cards on one host
@ 2008-09-03 8:43 Sascha Hauer
2008-09-03 14:11 ` Pierre Ossman
0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2008-09-03 8:43 UTC (permalink / raw)
To: linux-kernel; +Cc: Pierre Ossman
Hi,
I have a board (PXA based) which has two SD slots. It uses a gpio to
switch between the slots. In times when the MMC subsystem implemented
the bus topology our customer used this fact to connect the two slots on
a single host (although it was never intended to work with SD cards, it
seemed to work). Any idea how to implement this on recent kernels? I
thought about registering two hosts in pxamci.c, but this seems quite
hacky and I suppose I'll run into locking trouble.
Sascha
--
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [MMC] Multiple cards on one host
2008-09-03 8:43 [MMC] Multiple cards on one host Sascha Hauer
@ 2008-09-03 14:11 ` Pierre Ossman
2008-09-03 16:50 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Pierre Ossman @ 2008-09-03 14:11 UTC (permalink / raw)
To: Sascha Hauer; +Cc: linux-kernel
On Wed, 3 Sep 2008 10:43:43 +0200
Sascha Hauer <s.hauer@pengutronix.de> wrote:
> Hi,
>
> I have a board (PXA based) which has two SD slots. It uses a gpio to
> switch between the slots. In times when the MMC subsystem implemented
> the bus topology our customer used this fact to connect the two slots on
> a single host (although it was never intended to work with SD cards, it
> seemed to work). Any idea how to implement this on recent kernels? I
> thought about registering two hosts in pxamci.c, but this seems quite
> hacky and I suppose I'll run into locking trouble.
>
To be honest, I don't think you can sanely support it. The OMAP guys
have been playing with some kind of multiplexer in front of the
controller, but it just seems like a world of hurt to me.
Perhaps you can convert to using SPI for the second slot if the
customer really needs a design with two slots?
Rgds
--
-- Pierre Ossman
Linux kernel, MMC maintainer http://www.kernel.org
rdesktop, core developer http://www.rdesktop.org
WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [MMC] Multiple cards on one host
2008-09-03 14:11 ` Pierre Ossman
@ 2008-09-03 16:50 ` Sascha Hauer
0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2008-09-03 16:50 UTC (permalink / raw)
To: Pierre Ossman; +Cc: linux-kernel
On Wed, Sep 03, 2008 at 04:11:02PM +0200, Pierre Ossman wrote:
> On Wed, 3 Sep 2008 10:43:43 +0200
> Sascha Hauer <s.hauer@pengutronix.de> wrote:
>
> > Hi,
> >
> > I have a board (PXA based) which has two SD slots. It uses a gpio to
> > switch between the slots. In times when the MMC subsystem implemented
> > the bus topology our customer used this fact to connect the two slots on
> > a single host (although it was never intended to work with SD cards, it
> > seemed to work). Any idea how to implement this on recent kernels? I
> > thought about registering two hosts in pxamci.c, but this seems quite
> > hacky and I suppose I'll run into locking trouble.
> >
>
> To be honest, I don't think you can sanely support it. The OMAP guys
> have been playing with some kind of multiplexer in front of the
> controller, but it just seems like a world of hurt to me.
That's what I was afraid of. Lets see what our customer says (I hope I
won't find myself in this world of hurt)
>
> Perhaps you can convert to using SPI for the second slot if the
> customer really needs a design with two slots?
Might be an option.
Thanks for your answer.
Sascha
--
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-03 16:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-03 8:43 [MMC] Multiple cards on one host Sascha Hauer
2008-09-03 14:11 ` Pierre Ossman
2008-09-03 16:50 ` Sascha Hauer
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®