E5010 Probe Cleanup and Adding autosuspend
Status from this message: Applied, I'll send a PR this week.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest4 patches 3 repliesApplied
- v84 patches 3 repliesSuperseded
- v74 patches 1 replySuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 | 4 patches | 3 replies | Superseded | |
| v5 | 4 patches | 0 replies | Superseded | |
| v4 | 4 patches | 8 replies | Superseded |
Changes in v9 from the cover letter
- Patch 2: deleted new line I added in e5010_remove
- Patch 3 and 4: no code changed just commit message updates
Patches in v9 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | media: imagination: e5010: release m2m device on probe failuredrivers/ | +6 | 0 replies | |
| 2/4 | media: imagination: e5010: Fix clk never enabled without CONFIG_PMdrivers/ | +17 | 0 replies | |
| 3/4 | media: imagination: e5010: Update e5010_init_device Call Sites to Ensure Proper Device Statedrivers/ | +12 | 0 replies | |
| 4/4 | media: imagination: e5010: Enable autosuspend for runtime PMdrivers/ drivers/ | +24 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Devarsh Thakkar |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v9 0/4] E5010 Probe Cleanup and Adding autosuspend
Hello all,
I noticed a report from the intel bot[0] which pointed out a valid issue with the driver never calling e5010_init_device unless CONFIG_PM was enabled.
While looking at probe though, I noticed that the clk_enable was never properly called. That has now been fixed with a proper remove path as well.
Lastly, I cleaned up the goto jumps in probe to fix an issue where the m2m_dev wasn't being freed.
The rest of the series is setting up the driver for properly adding in support for autosuspend. Last patch adds in autosuspend support and moves e5010_init_device into probe for cases where PM isn't enabled.
Changes since v8:
- Patch 2: deleted new line I added in e5010_remove
- Patch 3 and 4: no code changed just commit message updates
Changes since v7:
- patch 3 subject wasn't formatted correctly after I updated it so wasn't properly showing up
Changes since v6:
- Patch 2 changed order of calls during remove cleanup. video unregister now happens before pm disable
- patch 3 was updated to account for the case where a reset was called and the device was never properly reinitialized
- patch 3 has moved setting the last_run_context to NULL as well to always update QP values when device is turned back on/reinitialized
- removed the r-b by Kendall, Devarsh, and Jai since I have made a slight code change requested by Devarsh
- patch 4 remove the last_run_context in runtime resume hook that it had before because I moved it to patch 3
- patch 4 has updates to commit message to accurately reflect why init_device was added to probe
- patch 4 has updates where disable autosuspend now comes before disable pm
Changes since v5:
- Fix patch 1 not properly removing all references to the fail_after_video_register_device label
Changes since v4:
- Change authorship of patch 1 since Myeonghun sent a similar patch first
- addressed Devarsh's comments in Patch 1 to follow similar naming structure as rest of probe function
- Moved the clk_enable call after pm_runtime_enable here so I can check success of that call. If runtime pm is enabled then don't enable the clock here
- Patch 3 no changes
- Patch 4 I added the macro requested by Devarsh instead of using magic number
- failure to power on now goes through the existing no_ready_buf_err path, so buffers are marked as error and the job is finished
Changes since v3:
- patches 1 and 2 are new in v4
- patch 3 remains unchanged
- patch 4:
- updated goto to match changes in patch 1
- update PM calls in probe
Best,
Brandon
[0]: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Brandon Brnich (3):
media: imagination: e5010: Fix clk never enabled without CONFIG_PM
media: imagination: e5010: Update e5010_init_device Call Sites to
Ensure Proper Device State
media: imagination: e5010: Enable autosuspend for runtime PM
Myeonghun Pak (1):
media: imagination: e5010: release m2m device on probe failure
.../platform/imagination/e5010-jpeg-enc.c | 91 +++++++++++-------- .../platform/imagination/e5010-jpeg-enc.h | 1 + 2 files changed, 56 insertions(+), 36 deletions(-)
Signature · 1 line
2.43.0