diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-16 15:51:38 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-07-19 13:31:53 +0200 |
commit | 23988c9704f0e341d2e860476430aaf378efd129 (patch) | |
tree | df015d158d29770db21060cbfad13f1f60050be8 /scripts | |
parent | 85ebb8eb12e6fb1abdff774d9cfc926d2dc3246d (diff) |
media: atomisp: fix mask and shift operation on ISPSSPM0
Currently the check on bits 25:24 on ISPSSPM0 is always 0 because
the mask and shift operations are incorrect. Fix this by shifting
by MRFLD_ISPSSPM0_ISPSSS_OFFSET (24 bits right) and then masking
with RFLD_ISPSSPM0_ISPSSC_MASK (0x03) to get the appropriate 2 bits
to check.
Addresses-Coverity: ("Operands don't affect result")
Fixes: 0f441fd70b1e ("media: atomisp: simplify the power down/up code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions