Re: [PATCH] media: atomisp: fix mask and shift operation on ISPSSPM0

2020-07-19 Thread Mauro Carvalho Chehab
Em Thu, 16 Jul 2020 15:51:38 +0100 Colin King escreveu: > From: Colin Ian King > > 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

[PATCH] media: atomisp: fix mask and shift operation on ISPSSPM0

2020-07-16 Thread Colin King
From: Colin Ian King 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.