All of lore.kernel.org
 help / color / mirror / Atom feed
* spi_mpc83xx driver question
@ 2006-12-29  0:46 Reeve Yang
  2006-12-29 18:27 ` Kumar Gala
  0 siblings, 1 reply; 2+ messages in thread
From: Reeve Yang @ 2006-12-29  0:46 UTC (permalink / raw)
  To: linuxppc-dev

Hi there,

I'm developing mmc driver based on spi_mpc83xx driver. Our mmc card is
connect through SPI to mpc8343E. Now the SPI controller is up, but
protocol driver has problem. I have following piece of code:

static struct spi_driver spimmc_driver = {
    .driver = {
        .name = "spimmc",
        .bus  = &spi_bus_type,
        .owner = THIS_MODULE,
    },
    .probe = spimmc_probe,
    .remove = __devexit_p(spimmc_remove),
    .suspend = spimmc_suspend,
    .resume = spimmc_resume,
};

static int __init spimmc_init (void)
{
    return spi_register_driver(&spimmc_driver);
}
module_init(spimmc_init);

Looking at sysfs, the spimmc driver is there, but ".probe" has never
been called. My question is, how this "probe" callback get called
during init? What could be the reason for that guy not being called?

If I call spimmc_probe driectly from spi_mpc83xx.c (for experiment),
kernel failure happened during boot:

[   26.484876] Badness in kref_get at lib/kref.c:32
[   26.489627] Call trace: [c0004fb0]  [c0005200]  [c00048d0]
[c00e3ad0]  [c010a780]  [c010af94]  [c013beec]  [c013b064]  [c013df68]
 [c0256474]  [c010bea
[   26.508407] Oops: kernel access of bad area, sig: 11 [#1]

I really need help from someone to explain it....

Thanks.

- Reeve

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

* Re: spi_mpc83xx driver question
  2006-12-29  0:46 spi_mpc83xx driver question Reeve Yang
@ 2006-12-29 18:27 ` Kumar Gala
  0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2006-12-29 18:27 UTC (permalink / raw)
  To: Reeve Yang; +Cc: linuxppc-dev


On Dec 28, 2006, at 6:46 PM, Reeve Yang wrote:

> Hi there,
>
> I'm developing mmc driver based on spi_mpc83xx driver. Our mmc card is
> connect through SPI to mpc8343E. Now the SPI controller is up, but
> protocol driver has problem. I have following piece of code:
>

This question is better asked to the spi-devel list spi-devel- 
general@lists.sourceforge.net

- k

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

end of thread, other threads:[~2006-12-29 18:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-29  0:46 spi_mpc83xx driver question Reeve Yang
2006-12-29 18:27 ` Kumar Gala

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.