Commit f555a68
media: i2c: imx500: Keep the device active while network firmware is loaded
Hold a pm_runtime reference for the lifetime of imx500->fw_network.
The reference is taken in imx500_set_ctrl() before kernel_read_file_from_fd()
and released in imx500_clear_fw_network() on vfree. This prevents
the autosuspend from racing the read (kernel oops in __memcpy) and from
silently dropping the rpk before stream-on.
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>1 parent 1759b25 commit f555a68
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1924 | 1924 | | |
1925 | 1925 | | |
1926 | 1926 | | |
| 1927 | + | |
| 1928 | + | |
1927 | 1929 | | |
1928 | | - | |
| 1930 | + | |
1929 | 1931 | | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
1930 | 1938 | | |
1931 | 1939 | | |
1932 | 1940 | | |
| |||
2138 | 2146 | | |
2139 | 2147 | | |
2140 | 2148 | | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
2141 | 2156 | | |
2142 | 2157 | | |
2143 | 2158 | | |
| |||
2151 | 2166 | | |
2152 | 2167 | | |
2153 | 2168 | | |
2154 | | - | |
| 2169 | + | |
| 2170 | + | |
2155 | 2171 | | |
2156 | 2172 | | |
2157 | 2173 | | |
| |||
0 commit comments