pm_runtime_enable() should happen prior to vfe_get() since vfe_get() calls
pm_runtime_resume_and_get().
This is a basic race condition that doesn't show up for most users so is
not widely reported. If you blacklist qcom-camss in modules.d and then
subsequently modprobe the module post-boot it is possible to reliably show
this error up.
The kernel log for this error looks like this:
qcom-camss ac5a000.camss: Failed to power up pipeline: -13
Fixes:
|
||
|---|---|---|
| .. | ||
| camss-csid-4-1.c | ||
| camss-csid-4-7.c | ||
| camss-csid-gen1.h | ||
| camss-csid-gen2.c | ||
| camss-csid-gen2.h | ||
| camss-csid.c | ||
| camss-csid.h | ||
| camss-csiphy-2ph-1-0.c | ||
| camss-csiphy-3ph-1-0.c | ||
| camss-csiphy.c | ||
| camss-csiphy.h | ||
| camss-format.c | ||
| camss-format.h | ||
| camss-ispif.c | ||
| camss-ispif.h | ||
| camss-vfe-4-1.c | ||
| camss-vfe-4-7.c | ||
| camss-vfe-4-8.c | ||
| camss-vfe-17x.c | ||
| camss-vfe-480.c | ||
| camss-vfe-gen1.c | ||
| camss-vfe-gen1.h | ||
| camss-vfe.c | ||
| camss-vfe.h | ||
| camss-video.c | ||
| camss-video.h | ||
| camss.c | ||
| camss.h | ||
| Kconfig | ||
| Makefile | ||