mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 12:21:37 +00:00
3fffd12839
Instead of having each i2c driver individually parse device tree data in case it or platform supports separate wakeup interrupt, and handle enabling and disabling wakeup interrupts in their power management routines, let's have i2c core do that for us. Platforms wishing to specify separate wakeup interrupt for the device should use named interrupt syntax in their DTSes: interrupt-parent = <&intc1>; interrupts = <5 0>, <6 0>; interrupt-names = "irq", "wakeup"; This patch is inspired by work done by Vignesh R <vigneshr@ti.com> for pixcir_i2c_ts driver. Note that the original code tried to preserve any existing wakeup settings from userspace but was not quite right in that regard: it would preserve wakeup flag set by userspace upon driver rebinding; but it would re-arm the wakeup flag if it was disabled by userspace. We think that resetting the flag upon re-binding the driver is proper behavior as the driver is responsible for setting up and handling wakeups. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Tested-by: Vignesh R <vigneshr@ti.com> [wsa: updated the commit message] Signed-off-by: Wolfram Sang <wsa@the-dreams.de> |
||
---|---|---|
.. | ||
brcm,bcm2835-i2c.txt | ||
brcm,iproc-i2c.txt | ||
brcm,kona-i2c.txt | ||
i2c-arb-gpio-challenge.txt | ||
i2c-at91.txt | ||
i2c-axxia.txt | ||
i2c-brcmstb.txt | ||
i2c-cadence.txt | ||
i2c-cbus-gpio.txt | ||
i2c-cros-ec-tunnel.txt | ||
i2c-davinci.txt | ||
i2c-designware.txt | ||
i2c-digicolor.txt | ||
i2c-efm32.txt | ||
i2c-emev2.txt | ||
i2c-exynos5.txt | ||
i2c-gpio.txt | ||
i2c-hix5hd2.txt | ||
i2c-img-scb.txt | ||
i2c-imx.txt | ||
i2c-jz4780.txt | ||
i2c-lpc2k.txt | ||
i2c-meson.txt | ||
i2c-mpc.txt | ||
i2c-mt6577.txt | ||
i2c-mux-gpio.txt | ||
i2c-mux-pca954x.txt | ||
i2c-mux-pinctrl.txt | ||
i2c-mux-reg.txt | ||
i2c-mux.txt | ||
i2c-mv64xxx.txt | ||
i2c-mxs.txt | ||
i2c-nomadik.txt | ||
i2c-ocores.txt | ||
i2c-octeon.txt | ||
i2c-omap.txt | ||
i2c-opal.txt | ||
i2c-pnx.txt | ||
i2c-pxa-pci-ce4100.txt | ||
i2c-pxa.txt | ||
i2c-rcar.txt | ||
i2c-riic.txt | ||
i2c-rk3x.txt | ||
i2c-s3c2410.txt | ||
i2c-sh_mobile.txt | ||
i2c-sirf.txt | ||
i2c-st-ddci2c.txt | ||
i2c-st.txt | ||
i2c-sunxi-p2wi.txt | ||
i2c-versatile.txt | ||
i2c-vt8500.txt | ||
i2c-xgene-slimpro.txt | ||
i2c-xiic.txt | ||
i2c-xlp9xx.txt | ||
i2c.txt | ||
nvidia,tegra20-i2c.txt | ||
qcom,i2c-qup.txt | ||
trivial-devices.txt |