linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Device tree node to major/minor?
@ 2012-11-20 22:23 Simon Glass
  2012-11-20 22:32 ` Grant Likely
  0 siblings, 1 reply; 6+ messages in thread
From: Simon Glass @ 2012-11-20 22:23 UTC (permalink / raw)
  To: lk; +Cc: Devicetree Discuss, Che-liang Chiou

Hi,

I hope this is a stupid question with an easy answer, but I cannot find it.

I have a device tree node for an mmc block device and I want to use
that block device from another driver. I have a phandle which lets me
get the node of the mmc device, but I am not sure how to convert that
into a block_device. In order to do so, I think I need a major/minor
number. Of course the phandle might in fact point to a SCSI driver and
I want that to work correctly also.

I imagine I might be able to search through the wonders of sysfs in
user space, but is there a better way?

Thanks,
Simon

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

end of thread, other threads:[~2012-11-22 20:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-20 22:23 Device tree node to major/minor? Simon Glass
2012-11-20 22:32 ` Grant Likely
2012-11-20 23:48   ` Simon Glass
2012-11-21 15:47     ` Grant Likely
2012-11-21 20:48       ` Simon Glass
2012-11-21 23:07         ` Grant Likely

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