lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150706113355.GA6967@leoy-linaro>
Date:	Mon, 6 Jul 2015 19:33:55 +0800
From:	Leo Yan <leo.yan@...aro.org>
To:	Russell King <linux@....linux.org.uk>,
	Michael Turquette <mturquette@...libre.com>,
	Jassi Brar <jassisinghbrar@...il.com>,
	linux-kernel@...r.kernel.org
Subject: Query: Clock driver requests mailbox channel

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ