Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fe50bc8a authored by Petar Sivenov's avatar Petar Sivenov
Browse files

msm: camera: isp: Replace unsafe bitwise operations



Using addition and substraction for bitwise operations is unsafe and
error prone. If some of operations are repeated, the mask can be
leaved in invalid state. Also, cleaning of masks relies upon stats
composite IRQ register, which value is invalid in case of preceeding
VFE hw reset. This fix uses bitwise AND and OR for mask operations and
cleans properly the mask irrespectively of VFE condition.

Change-Id: Iad4f7e18b10589de5c227babe89acecdd85fb885
Signed-off-by: default avatarPetar Sivenov <psiven@codeaurora.org>
parent d81481d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment