Commit d5d6619
committed
media: i2c: imx500: keep chip 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 48abadb commit d5d6619
1 file changed
Lines changed: 22 additions & 1 deletion
| 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 | | |
| |||
2152 | 2167 | | |
2153 | 2168 | | |
2154 | 2169 | | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
2155 | 2176 | | |
2156 | 2177 | | |
2157 | 2178 | | |
| |||
0 commit comments