mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 12:09:01 +02:00

This recipe is a fork of the fslc kernel with patches for supporting the imx6q-elo platform. This recipe is intended to be a stop-gap until the imx6q-elo board can be rebased and tested with the most recent fslc branch. Signed-off-by: Justin Waters <justin.waters@timesys.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
From f996ed516921512ab7a13db776f66420e07e6b90 Mon Sep 17 00:00:00 2001
|
|
From: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com>
|
|
Date: Fri, 21 Nov 2014 18:29:07 +0300
|
|
Subject: [PATCH 06/10] mfd: da9063: Get irq base dynamically before
|
|
registering device
|
|
|
|
After registering mfd device with proper irq_base
|
|
platform_get_irq_byname() calls will return VIRQ instead of local IRQ.
|
|
This fixes da9063 rtc registration issue:
|
|
da9063-rtc da9063-rtc: Failed to request ALARM IRQ 1: -22
|
|
|
|
Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com>
|
|
Signed-off-by: Lee Jones <lee.jones@linaro.org>
|
|
---
|
|
drivers/mfd/da9063-core.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/mfd/da9063-core.c b/drivers/mfd/da9063-core.c
|
|
index 93db8bb..f38bc98 100644
|
|
--- a/drivers/mfd/da9063-core.c
|
|
+++ b/drivers/mfd/da9063-core.c
|
|
@@ -118,7 +118,7 @@ int da9063_device_init(struct da9063 *da9063, unsigned int irq)
|
|
da9063->irq_base = pdata->irq_base;
|
|
} else {
|
|
da9063->flags = 0;
|
|
- da9063->irq_base = 0;
|
|
+ da9063->irq_base = -1;
|
|
}
|
|
da9063->chip_irq = irq;
|
|
|
|
@@ -168,6 +168,8 @@ int da9063_device_init(struct da9063 *da9063, unsigned int irq)
|
|
return ret;
|
|
}
|
|
|
|
+ da9063->irq_base = regmap_irq_chip_get_base(da9063->regmap_irq);
|
|
+
|
|
ret = mfd_add_devices(da9063->dev, -1, da9063_devs,
|
|
ARRAY_SIZE(da9063_devs), NULL, da9063->irq_base,
|
|
NULL);
|
|
--
|
|
2.5.0
|
|
|