public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Leo Yan <leo.yan@linaro.org>
To: Russell King <linux@arm.linux.org.uk>,
	Michael Turquette <mturquette@baylibre.com>,
	Jassi Brar <jassisinghbrar@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Query: Clock driver requests mailbox channel
Date: Mon, 6 Jul 2015 19:33:55 +0800	[thread overview]
Message-ID: <20150706113355.GA6967@leoy-linaro> (raw)

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

             reply	other threads:[~2015-07-06 11:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06 11:33 Leo Yan [this message]
2015-07-07  5:24 ` Query: Clock driver requests mailbox channel Jassi Brar
2015-07-07 14:04   ` Leo Yan
2015-07-08 16:54     ` Michael Turquette
2015-07-10  6:08       ` Leo Yan

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=20150706113355.GA6967@leoy-linaro \
    --to=leo.yan@linaro.org \
    --cc=jassisinghbrar@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mturquette@baylibre.com \
    /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