Commit 91043f5
Bartosz Golaszewski
gpio: cdev: wake up lineevent poll() on device unbind
Add a notifier block to the lineevent_state structure and register it
with the gpio_device's device notifier. Upon reception of an event, wake
up the wait queue so that the user-space be forced out of poll() and
need to go into a new system call which will then fail due to the chip
being gone.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Kent Gibson <warthog618@gmail.com>1 parent a0dda50 commit 91043f5
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1802 | 1802 | | |
1803 | 1803 | | |
1804 | 1804 | | |
| 1805 | + | |
1805 | 1806 | | |
1806 | 1807 | | |
1807 | 1808 | | |
| |||
1814 | 1815 | | |
1815 | 1816 | | |
1816 | 1817 | | |
| 1818 | + | |
1817 | 1819 | | |
1818 | 1820 | | |
1819 | 1821 | | |
| |||
1847 | 1849 | | |
1848 | 1850 | | |
1849 | 1851 | | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
1850 | 1863 | | |
1851 | 1864 | | |
1852 | 1865 | | |
| |||
1932 | 1945 | | |
1933 | 1946 | | |
1934 | 1947 | | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
1935 | 1951 | | |
1936 | 1952 | | |
1937 | 1953 | | |
| |||
2160 | 2176 | | |
2161 | 2177 | | |
2162 | 2178 | | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
2163 | 2185 | | |
2164 | 2186 | | |
2165 | 2187 | | |
| |||
0 commit comments