From: Pierre Ossman <drzeus-list@drzeus.cx>
To: linux-kernel@vger.kernel.org
Subject: platform bus, usage?
Date: Sun, 22 Aug 2004 22:45:58 +0200 [thread overview]
Message-ID: <41290606.10101@drzeus.cx> (raw)
I'm in the process of writing a driver for a SD/MMC card reader. Since
this is the first driver I'm writing I'm having some difficulties
fitting it into the linux driver model. I've read all the documentation
I can find to no avail.
The device is attached to the LPC bus and cannot be found using PNP.
From what I can gather this driver should therefore be organised under
the platform bus. I can't figure out how to do this though. I've created
the device structure, with platform_bus_type at .bus. I've called
device_register with the structure. Now how to I create a device object
and attach this to the bus? With PCI I guess this handles itself using
the PCI id:s.
At the moment I just let the driver play by itself. But that doesn't
seem to be using the driver model properly.
Any pointers would be helpful. Documentation, functions, example
drivers, anything.
Rgds
Pierre Ossman
next reply other threads:[~2004-08-22 20:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-22 20:45 Pierre Ossman [this message]
2004-08-22 23:02 ` platform bus, usage? John Lenz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41290606.10101@drzeus.cx \
--to=drzeus-list@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox