]> git.baikalelectronics.ru Git - kernel.git/commit
media: camss: Allocate power domain resources dynamically
authorVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Thu, 12 May 2022 08:23:18 +0000 (09:23 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:30 +0000 (10:30 +0100)
commit3d35f48a7307a7684c6d58c3c34ccfcc9ad70d5f
tree9e6d0000afde613d17904f6868f08a7c49576e2c
parente28fd87ea3401bc1ab2883135cc609eedf43645d
media: camss: Allocate power domain resources dynamically

To simplify the driver's maintenance it makes sense to escape from
hardcoded numbers of power domain resources per platform and statical
allocation of the resources. For instance on a QCOM SM8450 platform
the number of CAMSS power domains shall be bumped up to 6, also notably
CAMSS on MSM8916 has only one power domain, however it expects to get 2,
and thus it should result in a runtime error on driver probe.

The change fixes an issue mentioned above and gives more flexibility
to support more platforms in future.

Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/qcom/camss/camss.c
drivers/media/platform/qcom/camss/camss.h