08 Apr, 2013
1 commit
-
Use devm_*() functions to make cleanup paths more simple.
Signed-off-by: Jingoo Han
Signed-off-by: Samuel Ortiz
22 Jan, 2013
1 commit
-
This fixes a regression in the TC3589x driver introduced in
commit 15e27b1088245a2de3b7d09d39cd209212eb16af
"mfd: Provide the tc3589x with its own IRQ domain"If a system with a TC3589x expander is booted and a base
IRQ is passed from platform data, a legacy domain will
be used. However, since the Ux500 is now switched to use
SPARSE_IRQ, no descriptors get allocated on-the-fly,
and we get a crash.Fix this by switching to using the simple irqdomain that
will handle this uniformly and also allocates descriptors
explicitly.Also fix two small whitespace errors in the vicinity while
we're at it.Cc: stable@kernel.org
Acked-by: Lee Jones
Signed-off-by: Linus Walleij
Signed-off-by: Samuel Ortiz
29 Nov, 2012
3 commits
-
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.Signed-off-by: Bill Pemberton
Cc: Srinidhi Kasagar
Cc: Peter Tyser
Cc: Daniel Walker
Cc: Bryan Huntsman
Acked-by: David Brown
Acked-by: Linus Walleij
Acked-by: Mark Brown
Signed-off-by: Greg Kroah-Hartman -
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.Signed-off-by: Bill Pemberton
Cc: Srinidhi Kasagar
Cc: Peter Tyser
Cc: Daniel Walker
Cc: Bryan Huntsman
Acked-by: David Brown
Acked-by: Mark Brown
Signed-off-by: Greg Kroah-Hartman -
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.Signed-off-by: Bill Pemberton
Cc: Srinidhi Kasagar
Cc: Peter Tyser
Cc: Daniel Walker
Cc: Bryan Huntsman
Acked-by: David Brown
Acked-by: Linus Walleij
Acked-by: Mark Brown
Signed-off-by: Greg Kroah-Hartman
17 Sep, 2012
2 commits
-
Here we provide a means to probe and extract vital information
from Device Tree when booting with it enabled. Without this
patch sub-devices wouldn't be able to reference the tc3589x
from Device Tree.Signed-off-by: Lee Jones
Acked-by: Linus Walleij
Signed-off-by: Samuel Ortiz -
In preparation for Device Tree enablement all IRQ controllers
should control their own IRQ domain. This patch provides just
that.Signed-off-by: Lee Jones
Acked-by: Linus Walleij
Signed-off-by: Samuel Ortiz
14 Sep, 2012
1 commit
-
Currently the MFD core supports remapping MFD cell interrupts using an
irqdomain but only if the MFD is being instantiated using device tree
and only if the device tree bindings use the pattern of registering IPs
in the device tree with compatible properties. This will be actively
harmful for drivers which support non-DT platforms and use this pattern
for their DT bindings as it will mean that the core will silently change
remapping behaviour and it is also limiting for drivers which don't do
DT with this particular pattern. There is also a potential fragility if
there are interrupts not associated with MFD cells and all the cells are
omitted from the device tree for some reason.Instead change the code to take an IRQ domain as an optional argument,
allowing drivers to take the decision about the parent domain for their
interrupts. The one current user of this feature is ab8500-core, it has
the domain lookup pushed out into the driver.Signed-off-by: Mark Brown
Signed-off-by: Samuel Ortiz
09 Jul, 2012
1 commit
-
Guard PM methods with CONFIG_PM_SLEEP and get rid of some unneeded #ifdefs.
This fixes below build warnings:CC drivers/mfd/tc3589x.o
drivers/mfd/tc3589x.c:361:12: warning: 'tc3589x_suspend' defined but not used [-Wunused-function]
drivers/mfd/tc3589x.c:375:12: warning: 'tc3589x_resume' defined but not used [-Wunused-function]SIMPLE_DEV_PM_OPS already defines constant dev_pm_ops, thus also fix
'duplicate const' sparse warning.Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz
24 Oct, 2011
1 commit
-
The CONFIG_PM code was unconditionally compiled in despite
the dev_pm_ops only being included into the driver struct
if used. Fix this by adding the missing #ifdef.Signed-off-by: Linus Walleij
Signed-off-by: Samuel Ortiz
27 Mar, 2011
1 commit
-
Converted with coccinelle.
Signed-off-by: Thomas Gleixner
Acked-by: Mark Brown
Signed-off-by: Samuel Ortiz
30 Dec, 2010
1 commit
-
Add support for the keypad controller module found on the
TC3589X devices. This driver default adds the support for
TC35893 device.Signed-off-by: Sundar Iyer
Acked-by: Dmitry Torokhov
[Some minor fixups for compilation]
Signed-off-by: Linus Walleij
20 Dec, 2010
7 commits
-
This also converts tc3589x to the new irq API.
Cc: Rabin Vincent
Signed-off-by: Samuel Ortiz
Signed-off-by: Linus Walleij -
Acked-by: Samuel Ortiz
Signed-off-by: Sundar Iyer
Signed-off-by: Linus Walleij -
Skip putting the GPIO module into a reset during the chip init. This makes
sure to preserve any existing GPIO configurations done by pre-kernel boot code.Acked-by: Samuel Ortiz
Signed-off-by: Sundar Iyer
Signed-off-by: Linus Walleij -
On the TC35892, a random delayed interrupt clear (GPIO IC) write locks up the
child interrupts. In such a case, the original interrupt is active and not yet
acknowledged. Re-check the IRQST bit for any pending interrupts and handle
those.Acked-by: Samuel Ortiz
Signed-off-by: Sundar Iyer
Signed-off-by: Linus Walleij -
Add block identifier to be able to add multiple mfd clients
to the mfd coreAcked-by: Samuel Ortiz
Signed-off-by: Sundar Iyer
Signed-off-by: Linus Walleij -
Most of the register layout, client IRQ numbers on the TC35892 is shared also
by other variants. Make this generic as tc3589xAcked-by: Samuel Ortiz
Signed-off-by: Sundar Iyer
Signed-off-by: Linus Walleij -
Rename the tc35892 core/gpio drivers to tc3589x to include
new variants in the same mfd coreAcked-by: Samuel Ortiz
Signed-off-by: Sundar Iyer
Signed-off-by: Linus Walleij