msm: camera: cdm: Avoid presence of stale tags in BL_FIFO

There is a possibility that some bl_tag might remain in the
bl_list used by the KMD for BL_FIFO representation. This can
cause timeout failures for init packet if the stale entry
gets matched with the newly assigned tag.
To avoid this, call the cdm_callback for all the entries in
the list till we reach the one gen_irq was received for.
As the BL_FIFO works in FIFO fashion, no next IRQ will get
triggered before the first entry is done with.

Change-Id: I4d9640cd4e655f421d4fd1390efde819258caf30
Signed-off-by: Abhilash Kumar <krabhi@codeaurora.org>
Signed-off-by: Chandan Gera <cgera@codeaurora.org>
2 files changed