2019-10-31 22:55:52

by Andreas Kemnade

[permalink] [raw]
Subject: [PATCH v2 2/5] mfd: rn5t618: add irq support

This adds support for irq handling in the rc5t619 which is required
for properly implementing subdevices like rtc.
For now only definitions for the variant rc5t619 are included.

Signed-off-by: Andreas Kemnade <[email protected]>
---
Changes in v2:
- no dead code, did some more testing and thinking for that
- remove extra empty lines
drivers/mfd/Kconfig | 1 +
drivers/mfd/Makefile | 2 +-
drivers/mfd/rn5t618-core.c | 35 ++++++++++++++-
drivers/mfd/rn5t618-irq.c | 85 +++++++++++++++++++++++++++++++++++++
include/linux/mfd/rn5t618.h | 16 +++++++
5 files changed, 137 insertions(+), 2 deletions(-)
create mode 100644 drivers/mfd/rn5t618-irq.c

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index ae24d3ea68ea..522e068d0082 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -1057,6 +1057,7 @@ config MFD_RN5T618
depends on OF
select MFD_CORE
select REGMAP_I2C
+ select REGMAP_IRQ
help
Say yes here to add support for the Ricoh RN5T567,
RN5T618, RC5T619 PMIC.
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
index 110ea700231b..2906d5db67d0 100644
--- a/drivers/mfd/Makefile
+++ b/drivers/mfd/Makefile
@@ -217,7 +217,7 @@ obj-$(CONFIG_MFD_VIPERBOARD) += viperboard.o
obj-$(CONFIG_MFD_RC5T583) += rc5t583.o rc5t583-irq.o
obj-$(CONFIG_MFD_RK808) += rk808.o

-rn5t618-objs := rn5t618-core.o
+rn5t618-objs := rn5t618-core.o rn5t618-irq.o
obj-$(CONFIG_MFD_RN5T618) += rn5t618.o
obj-$(CONFIG_MFD_SEC_CORE) += sec-core.o sec-irq.o
obj-$(CONFIG_MFD_SYSCON) += syscon.o
diff --git a/drivers/mfd/rn5t618-core.c b/drivers/mfd/rn5t618-core.c
index da5cd9c92a59..d4ed2865ed8b 100644
--- a/drivers/mfd/rn5t618-core.c
+++ b/drivers/mfd/rn5t618-core.c
@@ -8,6 +8,7 @@

#include <linux/delay.h>
#include <linux/i2c.h>
+#include <linux/interrupt.h>
#include <linux/mfd/core.h>
#include <linux/mfd/rn5t618.h>
#include <linux/module.h>
@@ -105,7 +106,8 @@ static int rn5t618_i2c_probe(struct i2c_client *i2c,

i2c_set_clientdata(i2c, priv);
priv->variant = (long)of_id->data;
-
+ priv->chip_irq = i2c->irq;
+ priv->dev = &i2c->dev;
priv->regmap = devm_regmap_init_i2c(i2c, &rn5t618_regmap_config);
if (IS_ERR(priv->regmap)) {
ret = PTR_ERR(priv->regmap);
@@ -137,6 +139,11 @@ static int rn5t618_i2c_probe(struct i2c_client *i2c,
return ret;
}

+ if (priv->chip_irq > 0) {
+ if (rn5t618_irq_init(priv))
+ priv->chip_irq = 0;
+ }
+
return 0;
}

@@ -154,15 +161,41 @@ static int rn5t618_i2c_remove(struct i2c_client *i2c)
return 0;
}

+static int __maybe_unused rn5t618_i2c_suspend(struct device *dev)
+{
+ struct rn5t618 *priv = dev_get_drvdata(dev);
+
+ if (priv->chip_irq)
+ disable_irq(priv->chip_irq);
+
+ return 0;
+}
+
+static int __maybe_unused rn5t618_i2c_resume(struct device *dev)
+{
+ struct rn5t618 *priv = dev_get_drvdata(dev);
+
+ if (priv->chip_irq)
+ enable_irq(priv->chip_irq);
+
+ return 0;
+}
+
+
static const struct i2c_device_id rn5t618_i2c_id[] = {
{ }
};
MODULE_DEVICE_TABLE(i2c, rn5t618_i2c_id);

+static SIMPLE_DEV_PM_OPS(rn5t618_i2c_dev_pm_ops,
+ rn5t618_i2c_suspend,
+ rn5t618_i2c_resume);
+
static struct i2c_driver rn5t618_i2c_driver = {
.driver = {
.name = "rn5t618",
.of_match_table = of_match_ptr(rn5t618_of_match),
+ .pm = &rn5t618_i2c_dev_pm_ops,
},
.probe = rn5t618_i2c_probe,
.remove = rn5t618_i2c_remove,
diff --git a/drivers/mfd/rn5t618-irq.c b/drivers/mfd/rn5t618-irq.c
new file mode 100644
index 000000000000..5d5490f08134
--- /dev/null
+++ b/drivers/mfd/rn5t618-irq.c
@@ -0,0 +1,85 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2019 Andreas Kemnade
+ */
+#include <linux/device.h>
+#include <linux/interrupt.h>
+#include <linux/irq.h>
+#include <linux/module.h>
+#include <linux/regmap.h>
+
+#include <linux/mfd/rn5t618.h>
+
+static const struct regmap_irq rc5t619_irqs[] = {
+ [RN5T618_IRQ_SYS] = {
+ .reg_offset = 0,
+ .mask = (0 << 1)
+ },
+ [RN5T618_IRQ_DCDC] = {
+ .reg_offset = 0,
+ .mask = (1 << 1)
+ },
+ [RN5T618_IRQ_RTC] = {
+ .reg_offset = 0,
+ .mask = (1 << 2)
+ },
+ [RN5T618_IRQ_ADC] = {
+ .reg_offset = 0,
+ .mask = (1 << 3)
+ },
+ [RN5T618_IRQ_GPIO] = {
+ .reg_offset = 0,
+ .mask = (1 << 4)
+ },
+ [RN5T618_IRQ_CHG] = {
+ .reg_offset = 0,
+ .mask = (1 << 6),
+ }
+};
+
+static const struct regmap_irq_chip rc5t619_irq_chip = {
+ .name = "rc5t619",
+ .irqs = rc5t619_irqs,
+ .num_irqs = ARRAY_SIZE(rc5t619_irqs),
+ .num_regs = 1,
+ .status_base = RN5T618_INTMON,
+ .mask_base = RN5T618_INTEN,
+ .mask_invert = true,
+};
+
+int rn5t618_irq_init(struct rn5t618 *rn5t618)
+{
+ const struct regmap_irq_chip *irq_chip;
+ int ret;
+
+ if (!rn5t618->chip_irq)
+ return 0;
+
+ switch (rn5t618->variant) {
+ case RC5T619:
+ irq_chip = &rc5t619_irq_chip;
+ break;
+
+ /* TODO: check irq definitions for other variants */
+
+ default:
+ irq_chip = NULL;
+ break;
+ }
+
+ if (!irq_chip) {
+ dev_err(rn5t618->dev, "no IRQ definition known for variant\n");
+ return -ENOENT;
+ }
+
+ ret = devm_regmap_add_irq_chip(rn5t618->dev, rn5t618->regmap,
+ rn5t618->chip_irq,
+ IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
+ 0, irq_chip, &rn5t618->irq_data);
+ if (ret != 0) {
+ dev_err(rn5t618->dev, "Failed to register IRQ chip\n");
+ return ret;
+ }
+
+ return 0;
+}
diff --git a/include/linux/mfd/rn5t618.h b/include/linux/mfd/rn5t618.h
index d62ef48060b5..edd2b6485e3b 100644
--- a/include/linux/mfd/rn5t618.h
+++ b/include/linux/mfd/rn5t618.h
@@ -242,9 +242,25 @@ enum {
RC5T619,
};

+/* RN5T618 IRQ definitions */
+enum {
+ RN5T618_IRQ_SYS,
+ RN5T618_IRQ_DCDC,
+ RN5T618_IRQ_RTC,
+ RN5T618_IRQ_ADC,
+ RN5T618_IRQ_GPIO,
+ RN5T618_IRQ_CHG,
+ RN5T618_NR_IRQS,
+};
+
struct rn5t618 {
struct regmap *regmap;
+ struct device *dev;
long variant;
+
+ int chip_irq;
+ struct regmap_irq_chip_data *irq_data;
};

+extern int rn5t618_irq_init(struct rn5t618 *rn5t618);
#endif /* __LINUX_MFD_RN5T618_H */
--
2.20.1


2019-11-06 21:49:12

by Andreas Kemnade

[permalink] [raw]
Subject: Re: [PATCH v2 2/5] mfd: rn5t618: add irq support

On Thu, 31 Oct 2019 22:38:32 +0100
Andreas Kemnade <[email protected]> wrote:

> This adds support for irq handling in the rc5t619 which is required
> for properly implementing subdevices like rtc.
> For now only definitions for the variant rc5t619 are included.
>
> Signed-off-by: Andreas Kemnade <[email protected]>

after having some more look at it, I think I should note the interrupts
property in the bindings documentation since it gets used by using
i2c->irq. Will probably send a v3 the next days.

Regards,
Andreas

2019-11-16 06:54:43

by kernel test robot

[permalink] [raw]
Subject: Re: [PATCH v2 2/5] mfd: rn5t618: add irq support

Hi Andreas,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on ljones-mfd/for-mfd-next]
[also build test WARNING on v5.4-rc7 next-20191115]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url: https://github.com/0day-ci/linux/commits/Andreas-Kemnade/Add-rtc-support-for-rn5t618-mfd/20191102-142337
base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
config: powerpc-randconfig-a001-20191115 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=powerpc

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <[email protected]>

All warnings (new ones prefixed by >>):

powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/sysfs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/generic_ops.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/common.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/qos.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/runtime.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/wakeirq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/clock_ops.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/firmware_loader/main.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/firmware_loader/fallback.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/node.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/module.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regcache.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regcache-rbtree.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regcache-flat.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-debugfs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-mmio.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-w1.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-i3c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/soc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/devcoredump.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/dummy-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/ics932s401.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/apds990x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/apds9802als.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/isl29003.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/ds1682.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/c2port/core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/eeprom/eeprom.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/eeprom/max6875.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/eeprom/eeprom_93cx6.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/altera-stapl/altera-lpt.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/altera-stapl/altera-jtag.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/altera-stapl/altera-comp.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/altera-stapl/altera.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/sram.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/echo/echo.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/pvpanic.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/xilinx_sdfec.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/88pm800.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/88pm80x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/act8945a.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/sm501.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/bcm590xx.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/bd9571mwv.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/htc-i2cpld.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/lp873x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/lp87565.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/ti_am335x_tscadc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm831x-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm831x-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm831x-otp.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm831x-auxadc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm831x-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm8994-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm8994-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm8994-regmap.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps6105x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps6507x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps65086.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps65217.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps65218.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps80031.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/twl-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/twl4030-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/twl6030-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/twl4030-audio.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/mc13xxx-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/mc13xxx-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/mfd-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/smsc-ece1099.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/da903x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/lp3943.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/ti-lmu.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/da9063-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/da9063-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/da9063-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max14577.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max77693.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max77843.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max8925-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max8925-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max8998.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max8998-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/pcf50633-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/pcf50633-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/pcf50633-adc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/pcf50633-gpio.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/kempld-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wl1273-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/si476x-cmd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/si476x-prop.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/si476x-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/aat2870-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/atmel-flexcom.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/palmas.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/rk808.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/rn5t618-core.o' being placed in section `.ctors.65435'.
>> powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/rn5t618-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/syscon.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/lm3533-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/lm3533-ctrlbank.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/retu-mfd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/as3722.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/menf21bmc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/rt5033.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/sky81452.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/mt6397-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/mt6397-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/rohm-bd70528.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dax/super.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dax/bus.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/dma-buf.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/dma-fence.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/dma-fence-array.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/dma-fence-chain.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/dma-resv.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/seqno-fence.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/sync_file.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/udmabuf.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/selftest.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/st-dma-fence.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-ioctls.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-io.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-iops.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-lib.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-probe.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-taskfile.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-pm.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-park.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-sysfs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-devsets.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-io-std.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-eh.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-atapi.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-proc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-gd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-floppy.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-floppy_ioctl.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-floppy_proc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-tape.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-cs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide_platform.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/hosts.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_ioctl.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsicam.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_error.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_lib.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_lib_dma.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_scan.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_sysfs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_devinfo.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_sysctl.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_trace.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_logging.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_pm.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_common.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/raid_class.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_transport_iscsi.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_transport_sas.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_init.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_phy.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_port.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_event.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_discover.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_expander.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_scsi_host.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_task.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/sd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/sd_dif.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/sg.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/ch.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/trace.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/multipath.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/lightnvm.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/fabrics.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/fc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/configfs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/admin-cmd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/fabrics-cmd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/discovery.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/io-cmd-file.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/io-cmd-bdev.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/trace.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/fc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/fcloop.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtdcore.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtdsuper.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtdconcat.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtdpart.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtdchar.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/parsers/ar7part.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/parsers/cmdlinepart.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/parsers/redboot.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtd_blkdevs.o' being placed in section `.ctors.65435'.
--
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/sysfs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/generic_ops.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/common.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/qos.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/runtime.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/wakeirq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/power/clock_ops.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/firmware_loader/main.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/firmware_loader/fallback.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/node.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/module.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regcache.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regcache-rbtree.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regcache-flat.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-debugfs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-mmio.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-w1.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/regmap/regmap-i3c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/soc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/base/devcoredump.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/dummy-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/ics932s401.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/apds990x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/apds9802als.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/isl29003.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/ds1682.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/c2port/core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/eeprom/eeprom.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/eeprom/max6875.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/eeprom/eeprom_93cx6.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/altera-stapl/altera-lpt.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/altera-stapl/altera-jtag.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/altera-stapl/altera-comp.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/altera-stapl/altera.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/sram.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/echo/echo.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/pvpanic.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/misc/xilinx_sdfec.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/88pm800.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/88pm80x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/act8945a.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/sm501.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/bcm590xx.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/bd9571mwv.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/htc-i2cpld.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/lp873x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/lp87565.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/ti_am335x_tscadc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm831x-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm831x-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm831x-otp.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm831x-auxadc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm831x-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm8994-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm8994-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wm8994-regmap.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps6105x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps6507x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps65086.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps65217.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps65218.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/tps80031.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/twl-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/twl4030-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/twl6030-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/twl4030-audio.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/mc13xxx-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/mc13xxx-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/mfd-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/smsc-ece1099.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/da903x.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/lp3943.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/ti-lmu.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/da9063-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/da9063-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/da9063-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max14577.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max77693.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max77843.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max8925-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max8925-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max8998.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/max8998-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/pcf50633-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/pcf50633-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/pcf50633-adc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/pcf50633-gpio.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/kempld-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/wl1273-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/si476x-cmd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/si476x-prop.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/si476x-i2c.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/aat2870-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/atmel-flexcom.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/palmas.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/rk808.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/rn5t618-core.o' being placed in section `.ctors.65435'.
>> powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/rn5t618-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/syscon.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/lm3533-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/lm3533-ctrlbank.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/retu-mfd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/as3722.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/menf21bmc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/rt5033.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/sky81452.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/mt6397-core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/mt6397-irq.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mfd/rohm-bd70528.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dax/super.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dax/bus.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/dma-buf.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/dma-fence.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/dma-fence-array.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/dma-fence-chain.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/dma-resv.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/seqno-fence.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/sync_file.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/udmabuf.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/selftest.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/dma-buf/st-dma-fence.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-ioctls.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-io.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-iops.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-lib.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-probe.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-taskfile.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-pm.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-park.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-sysfs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-devsets.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-io-std.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-eh.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-atapi.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-proc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-gd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-floppy.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-floppy_ioctl.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-floppy_proc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-tape.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide-cs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/ide/ide_platform.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/hosts.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_ioctl.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsicam.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_error.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_lib.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_lib_dma.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_scan.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_sysfs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_devinfo.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_sysctl.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_trace.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_logging.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_pm.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_common.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/raid_class.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_transport_iscsi.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/scsi_transport_sas.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_init.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_phy.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_port.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_event.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_discover.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_expander.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_scsi_host.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/libsas/sas_task.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/sd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/sd_dif.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/sg.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/scsi/ch.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/trace.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/multipath.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/lightnvm.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/fabrics.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/host/fc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/core.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/configfs.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/admin-cmd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/fabrics-cmd.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/discovery.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/io-cmd-file.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/io-cmd-bdev.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/trace.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/fc.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/nvme/target/fcloop.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtdcore.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtdsuper.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtdconcat.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtdpart.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtdchar.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/parsers/ar7part.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/parsers/cmdlinepart.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/parsers/redboot.o' being placed in section `.ctors.65435'.
powerpc64-linux-ld: warning: orphan section `.ctors.65435' from `drivers/mtd/mtd_blkdevs.o' being placed in section `.ctors.65435'.
..

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/[email protected] Intel Corporation


Attachments:
(No filename) (54.88 kB)
.config.gz (29.61 kB)
Download all attachments

2019-11-20 07:56:47

by Pierre-Hugues Husson

[permalink] [raw]
Subject: Re: [PATCH v2 2/5] mfd: rn5t618: add irq support

Le jeu. 31 oct. 2019 à 22:38, Andreas Kemnade <[email protected]> a écrit :
>
> This adds support for irq handling in the rc5t619 which is required
> for properly implementing subdevices like rtc.
> For now only definitions for the variant rc5t619 are included.
>
> Signed-off-by: Andreas Kemnade <[email protected]>
> ---
> Changes in v2:
> - no dead code, did some more testing and thinking for that
> - remove extra empty lines
> drivers/mfd/Kconfig | 1 +
> drivers/mfd/Makefile | 2 +-
> drivers/mfd/rn5t618-core.c | 35 ++++++++++++++-
> drivers/mfd/rn5t618-irq.c | 85 +++++++++++++++++++++++++++++++++++++
> include/linux/mfd/rn5t618.h | 16 +++++++
> 5 files changed, 137 insertions(+), 2 deletions(-)
> create mode 100644 drivers/mfd/rn5t618-irq.c
>
> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index ae24d3ea68ea..522e068d0082 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -1057,6 +1057,7 @@ config MFD_RN5T618
> depends on OF
> select MFD_CORE
> select REGMAP_I2C
> + select REGMAP_IRQ
> help
> Say yes here to add support for the Ricoh RN5T567,
> RN5T618, RC5T619 PMIC.
> diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> index 110ea700231b..2906d5db67d0 100644
> --- a/drivers/mfd/Makefile
> +++ b/drivers/mfd/Makefile
> @@ -217,7 +217,7 @@ obj-$(CONFIG_MFD_VIPERBOARD) += viperboard.o
> obj-$(CONFIG_MFD_RC5T583) += rc5t583.o rc5t583-irq.o
> obj-$(CONFIG_MFD_RK808) += rk808.o
>
> -rn5t618-objs := rn5t618-core.o
> +rn5t618-objs := rn5t618-core.o rn5t618-irq.o
> obj-$(CONFIG_MFD_RN5T618) += rn5t618.o
> obj-$(CONFIG_MFD_SEC_CORE) += sec-core.o sec-irq.o
> obj-$(CONFIG_MFD_SYSCON) += syscon.o
> diff --git a/drivers/mfd/rn5t618-core.c b/drivers/mfd/rn5t618-core.c
> index da5cd9c92a59..d4ed2865ed8b 100644
> --- a/drivers/mfd/rn5t618-core.c
> +++ b/drivers/mfd/rn5t618-core.c
> @@ -8,6 +8,7 @@
>
> #include <linux/delay.h>
> #include <linux/i2c.h>
> +#include <linux/interrupt.h>
> #include <linux/mfd/core.h>
> #include <linux/mfd/rn5t618.h>
> #include <linux/module.h>
> @@ -105,7 +106,8 @@ static int rn5t618_i2c_probe(struct i2c_client *i2c,
>
> i2c_set_clientdata(i2c, priv);
> priv->variant = (long)of_id->data;
> -
> + priv->chip_irq = i2c->irq;
> + priv->dev = &i2c->dev;
> priv->regmap = devm_regmap_init_i2c(i2c, &rn5t618_regmap_config);
> if (IS_ERR(priv->regmap)) {
> ret = PTR_ERR(priv->regmap);
> @@ -137,6 +139,11 @@ static int rn5t618_i2c_probe(struct i2c_client *i2c,
> return ret;
> }
>
> + if (priv->chip_irq > 0) {
> + if (rn5t618_irq_init(priv))
> + priv->chip_irq = 0;
> + }
> +
> return 0;
> }
>
> @@ -154,15 +161,41 @@ static int rn5t618_i2c_remove(struct i2c_client *i2c)
> return 0;
> }
>
> +static int __maybe_unused rn5t618_i2c_suspend(struct device *dev)
> +{
> + struct rn5t618 *priv = dev_get_drvdata(dev);
> +
> + if (priv->chip_irq)
> + disable_irq(priv->chip_irq);
> +
> + return 0;
> +}
> +
> +static int __maybe_unused rn5t618_i2c_resume(struct device *dev)
> +{
> + struct rn5t618 *priv = dev_get_drvdata(dev);
> +
> + if (priv->chip_irq)
> + enable_irq(priv->chip_irq);
> +
> + return 0;
> +}

For what it's worth, the boards I have (Archos 101 Oxygen and Pipo P9)
with rc5t619 use GPIO for power button.
So IRQ would need to be enabled in suspend for this to work.
Also, since you actually added alarm support, perhaps you want to
wake-up from suspend using alarm as well?

2019-11-20 10:55:20

by Andreas Kemnade

[permalink] [raw]
Subject: Re: [PATCH v2 2/5] mfd: rn5t618: add irq support

On Wed, 20 Nov 2019 08:54:44 +0100
Pierre-Hugues Husson <[email protected]> wrote:

[...]
> >
> > +static int __maybe_unused rn5t618_i2c_suspend(struct device *dev)
> > +{
> > + struct rn5t618 *priv = dev_get_drvdata(dev);
> > +
> > + if (priv->chip_irq)
> > + disable_irq(priv->chip_irq);
> > +
> > + return 0;
> > +}
> > +
> > +static int __maybe_unused rn5t618_i2c_resume(struct device *dev)
> > +{
> > + struct rn5t618 *priv = dev_get_drvdata(dev);
> > +
> > + if (priv->chip_irq)
> > + enable_irq(priv->chip_irq);
> > +
> > + return 0;
> > +}
>
> For what it's worth, the boards I have (Archos 101 Oxygen and Pipo P9)
> with rc5t619 use GPIO for power button.
> So IRQ would need to be enabled in suspend for this to work.
> Also, since you actually added alarm support, perhaps you want to
> wake-up from suspend using alarm as well?
>
Already tested that, that works, because device_init_wakeup() is used.
disable_irq() is needed because we cannot do i2c that early after resume.
Other mfd drivers do thas as well and waking up works.

Regards,
Andreas