Thread (5 messages) 5 messages, 4 authors, 2015-06-01

[PATCH 1/4]:Add mbigen driver to support mbigen interrupt controller

From: majun F <hidden>
Date: 2015-05-30 06:10:55
Also in: lkml

Hi Joe Perches:
	Thanks for you advice.
I will fixed it in next version

? 2015/5/30 13:38, Joe Perches ??:
On Sat, 2015-05-30 at 11:19 +0800, majun (F) wrote:
quoted
This patch contains the mbigen device driver.
Trivial notes:

Please use scripts/checkpatch.pl on your patches and see
if you want to correct any of the messages it produces.
quoted
diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c
You could add
#define pr_fmt(fmt) "mbigen: " fmt
before any of the #includes so that all of the
pr_<level>(fmt, ...) uses are prefixed with "mbigen: "
quoted
+int mbi_parse_irqs(struct device *dev, struct mbi_ops *ops)
+{
+	pr_warn("%s:this function not use now\n", __func__);
Maybe pr_warn_once()
quoted
+	return -EINVAL;
+}
+EXPORT_SYMBOL(mbi_parse_irqs);
+
+void mbi_free_irqs(struct device *dev, unsigned int virq, unsigned int nvec)
+{
+	pr_warn("%s:this function not use now\n", __func__);
pr_warn_once()?
quoted
+static struct mbigen *mbigen_get_device(struct mbigen_chip *chip,
+										unsigned int nid)
+{
+	struct mbigen *tmp, *mbigen;
+	bool found = false;
+
+	if (nid >= MG_NR) {
+		pr_warn("MBIGEN: Device ID exceeds max number!\n");
So this wouldn't need a "MBIGEN: " prefix

etc...


.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help