linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Query: Clock driver requests mailbox channel
@ 2015-07-06 11:33 Leo Yan
  2015-07-07  5:24 ` Jassi Brar
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Yan @ 2015-07-06 11:33 UTC (permalink / raw)
  To: Russell King, Michael Turquette, Jassi Brar, linux-kernel

Hi all,

i'm working with one clock driver, which will invoke mailbox API to
request the mailbox channel and send message.

Usually clock driver will init with devicetree, below is the example:
CLK_OF_DECLARE(hi6220_clk_power, "hisilicon,hi6220-clock-power",
hi6220_clk_power_init);

Clock init function it will pass the pointer of struct device_node
but not the pointer of struct device. So finally it's difficult to
invoke mailbox API *mbox_request_channel()*, due it need use the
struct device to search DT's property "mboxes".

I want to find which is the best way to resolve this issue, so do you
suggest clock driver to manually register one device? Or can we add
one more API to request the mailbox channel directly with device_node?

Welcome any suggestion.

Thanks,
Leo Yan

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

end of thread, other threads:[~2015-07-10  6:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06 11:33 Query: Clock driver requests mailbox channel Leo Yan
2015-07-07  5:24 ` Jassi Brar
2015-07-07 14:04   ` Leo Yan
2015-07-08 16:54     ` Michael Turquette
2015-07-10  6:08       ` Leo Yan

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