Commit e538839
media: i2c: imx500: release rpk on subdev close
The pm_runtime reference is held for as long as imx500->fw_network is
populated. This means the cached rpk (plus the pm reference that blocks
autosuspend) is present in the device state past userspace closing the
subdev fd, until the next VIDIOC_S_CTRL cleared or replaced it.
Add a .close internal op that calls imx500_clear_fw_network() when the
last userspace handle on the subdev is released.
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>1 parent 89b446d commit e538839
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
2331 | 2332 | | |
2332 | 2333 | | |
2333 | 2334 | | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
2334 | 2355 | | |
2335 | 2356 | | |
2336 | 2357 | | |
| |||
3632 | 3653 | | |
3633 | 3654 | | |
3634 | 3655 | | |
| 3656 | + | |
3635 | 3657 | | |
3636 | 3658 | | |
3637 | 3659 | | |
| |||
0 commit comments