|
@@ -829,14 +829,14 @@ static int isp_pipeline_link_notify(struct media_link *link, u32 flags,
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
if (notification == MEDIA_DEV_NOTIFY_POST_LINK_CH &&
|
|
if (notification == MEDIA_DEV_NOTIFY_POST_LINK_CH &&
|
|
- !(link->flags & MEDIA_LNK_FL_ENABLED)) {
|
|
|
|
|
|
+ !(flags & MEDIA_LNK_FL_ENABLED)) {
|
|
/* Powering off entities is assumed to never fail. */
|
|
/* Powering off entities is assumed to never fail. */
|
|
isp_pipeline_pm_power(source, -sink_use);
|
|
isp_pipeline_pm_power(source, -sink_use);
|
|
isp_pipeline_pm_power(sink, -source_use);
|
|
isp_pipeline_pm_power(sink, -source_use);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
- if (notification == MEDIA_DEV_NOTIFY_POST_LINK_CH &&
|
|
|
|
|
|
+ if (notification == MEDIA_DEV_NOTIFY_PRE_LINK_CH &&
|
|
(flags & MEDIA_LNK_FL_ENABLED)) {
|
|
(flags & MEDIA_LNK_FL_ENABLED)) {
|
|
|
|
|
|
ret = isp_pipeline_pm_power(source, sink_use);
|
|
ret = isp_pipeline_pm_power(source, sink_use);
|