Milo Kim
fa9170522b
mfd: tps65217: Make an interrupt handler simpler
...
Rework the IRQ handler by using HW IRQ number and status bit.
Each HW IRQ number is matched with TPS65217 register layout[*].
(USB IRQ number is 0, AC is 1, Push button is 2)
When an interrupt is enabled, mask bit should be cleared (unmasked).
If an interrupt is disabled, then mask bit should be set (masked).
This mask value is updated into the TPS65217 register in irq_sync_unlock().
Mask bit and interrupt status bit can be handled with HW IRQ number.
Eventually, additional IRQ data, 'tps65217_irqs[]' and the function,
'irq_to_tps65217_irq()' are not necessary.
[*] TPS65217 interrupt register layout
Bit7 6 5 4 3 2 1 0
----------------------------------------------
| x | PBM | ACM | USBM | x | PBI | ACI | USBI
PBM: Push button status change interrupt mask
ACM: AC interrupt mask
USBM: USB power status change interrupt mask
PBI: Push button status change interrupt
ACI: AC power status change interrupt
USBI: USB power status change interrupt
x: Not used
Signed-off-by: Milo Kim <woogyom.kim@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2016-11-29 08:21:40 +00:00
..
accessibility
acpi
More ACPI updates for v4.9-rc1
2016-10-14 12:50:05 -07:00
amba
android
ata
atm
auxdisplay
auxdisplay: img-ascii-lcd: driver for simple ASCII LCD displays
2016-10-06 17:03:41 +02:00
base
memory-hotplug: fix store_mem_state() return value
2016-10-07 18:46:28 -07:00
bcma
block
kthread: kthread worker API cleanup
2016-10-11 15:06:33 -07:00
bluetooth
Bluetooth: btusb: Fix atheros firmware download error
2016-10-07 09:46:56 +02:00
bus
ARM: SoC driver updates for v4.9
2016-10-07 21:23:40 -07:00
cdrom
char
This adds a new gcc plugin named "latent_entropy". It is designed to
2016-10-15 10:03:15 -07:00
clk
ARM: SoC: late DT updates for v4.9
2016-10-07 21:34:49 -07:00
clocksource
ARM: SoC driver updates for v4.9
2016-10-07 21:23:40 -07:00
connector
cpufreq
More power management updates for v4.9-rc1
2016-10-14 12:46:13 -07:00
cpuidle
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
2016-10-15 09:26:12 -07:00
crypto
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
2016-10-10 14:04:16 -07:00
dax
Merge branch 'for-4.9/dax' into libnvdimm-for-next
2016-10-07 16:46:30 -07:00
dca
devfreq
PM / devfreq: Skip status update on uninitialized previous_freq
2016-10-11 00:01:20 +02:00
dio
dma
dmaengine updates for 4.8-rc1
2016-10-06 17:13:54 -07:00
dma-buf
Merge tag 'drm-for-v4.9' of git://people.freedesktop.org/~airlied/linux
2016-10-11 18:12:22 -07:00
edac
eisa
extcon
firewire
firmware
ARM: SoC driver updates for v4.9
2016-10-07 21:23:40 -07:00
fmc
fpga
gpio
mfd: tps65218: Remove redundant read wrapper
2016-10-26 10:30:02 +01:00
gpu
Merge tag 'drm-for-v4.9' of git://people.freedesktop.org/~airlied/linux
2016-10-11 18:12:22 -07:00
hid
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
2016-10-07 11:58:38 -07:00
hsi
hv
hwmon
hwspinlock
hwtracing
i2c
i2c: 'i2c-bus' node support for v4.8-rc1
2016-10-11 23:37:26 +02:00
ide
idle
nmi_backtrace: generate one-line reports for idle cpus
2016-10-07 18:46:30 -07:00
iio
Staging/IIO patches for 4.9-rc1
2016-10-05 14:50:51 -07:00
infiniband
Merge of the qedr RoCE driver
2016-10-14 13:43:08 -07:00
input
input: tps65218-pwrbutton: Add platform_device_id table
2016-10-26 10:30:20 +01:00
iommu
IOMMU Updates for Linux v4.9
2016-10-11 12:52:41 -07:00
ipack
irqchip
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
2016-10-15 09:26:12 -07:00
isdn
leds
mfd: qcom-pm8xxx: Clean up PM8XXX namespace
2016-11-21 12:54:28 +00:00
lguest
lightnvm
Merge branch 'for-4.9/block' of git://git.kernel.dk/linux-block
2016-10-07 14:42:05 -07:00
macintosh
mailbox
Merge branch 'mailbox-for-next' of git://git.linaro.org/landing-teams/working/fujitsu/integration
2016-10-06 17:36:53 -07:00
mcb
md
kthread: kthread worker API cleanup
2016-10-11 15:06:33 -07:00
media
linux-kselftest-4.9-rc1-update
2016-10-14 15:17:12 -07:00
memory
ARM: SoC driver updates for v4.9
2016-10-07 21:23:40 -07:00
memstick
message
mfd
mfd: tps65217: Make an interrupt handler simpler
2016-11-29 08:21:40 +00:00
misc
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2016-10-10 20:16:43 -07:00
mmc
mtd
Merge branch 'akpm' (patches from Andrew)
2016-10-11 17:34:10 -07:00
net
Merge of the qedr RoCE driver
2016-10-14 13:43:08 -07:00
nfc
ntb
nubus
nvdimm
Merge branch 'for-4.9/dax' into libnvdimm-for-next
2016-10-07 16:46:30 -07:00
nvme
nvme: use the DMA_ATTR_NO_WARN attribute
2016-10-11 15:06:32 -07:00
nvmem
ARM: SoC driver updates for v4.9
2016-10-07 21:23:40 -07:00
of
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
2016-10-15 09:26:12 -07:00
oprofile
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2016-10-10 20:16:43 -07:00
parisc
parport
pci
PCI changes for the v4.9 merge window:
2016-10-13 17:08:58 -07:00
pcmcia
perf
ARM: SoC driver updates for v4.9
2016-10-07 21:23:40 -07:00
phy
pinctrl
ARM: SoC driver updates for v4.9
2016-10-07 21:23:40 -07:00
platform
platform-drivers-x86 for 4.9-1
2016-10-13 16:52:39 -07:00
pnp
power
power supply and reset changes for the v4.9 series
2016-10-06 18:21:15 -07:00
powercap
pps
pps: kc: fix non-tickless system config dependency
2016-10-11 15:06:32 -07:00
ps3
ptp
drivers/ptp: Fix kernel memory disclosure
2016-10-13 10:20:06 -04:00
pwm
rapidio
rapidio/rio_cm: use memdup_user() instead of duplicating code
2016-10-11 15:06:32 -07:00
ras
regulator
regulator: tps65218: Remove all the compatibles
2016-10-26 10:30:39 +01:00
remoteproc
rpmsg updates for v4.9
2016-10-06 17:03:49 -07:00
reset
rpmsg
rtc
RTC for 4.9
2016-10-14 13:13:44 -07:00
s390
SCSI misc on 20161006
2016-10-07 09:28:53 -07:00
sbus
scsi
SCSI misc on 20161014
2016-10-14 11:37:50 -07:00
sfi
sh
sn
soc
powerpc updates for 4.9 #2
2016-10-14 11:07:42 -07:00
spi
kthread: kthread worker API cleanup
2016-10-11 15:06:33 -07:00
spmi
ssb
staging
Merge branch 'akpm' (patches from Andrew)
2016-10-11 17:34:10 -07:00
target
tc
thermal
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
2016-10-12 11:05:23 -07:00
thunderbolt
tty
kthread: kthread worker API cleanup
2016-10-11 15:06:33 -07:00
uio
usb
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
2016-10-15 09:26:12 -07:00
uwb
vfio
vhost
video
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
2016-10-15 09:26:12 -07:00
virt
virtio
vlynq
vme
w1
watchdog
Merge git://www.linux-watchdog.org/linux-watchdog
2016-10-13 16:44:20 -07:00
xen
xen: features and fixes for 4.9-rc0
2016-10-06 11:19:10 -07:00
zorro
Kconfig
Makefile