struct mx6s_buffer *buf;
struct vb2_buffer *vb;
unsigned long phys;
+ unsigned int phys_fb1;
+ unsigned int phys_fb2;
ibuf = list_first_entry(&csi_dev->active_bufs, struct mx6s_buf_internal,
queue);
vb = &buf->vb.vb2_buf;
phys = vb2_dma_contig_plane_dma_addr(vb, 0);
if (bufnum == 1) {
- if (csi_read(csi_dev, CSI_CSIDMASA_FB2) != phys) {
+ phys_fb2 = csi_read(csi_dev, CSI_CSIDMASA_FB2);
+ if (phys_fb2 != (u32)phys) {
dev_err(csi_dev->dev, "%lx != %x\n", phys,
- csi_read(csi_dev, CSI_CSIDMASA_FB2));
+ phys_fb2);
}
} else {
- if (csi_read(csi_dev, CSI_CSIDMASA_FB1) != phys) {
+ phys_fb1 = csi_read(csi_dev, CSI_CSIDMASA_FB1);
+ if (phys_fb1 != (u32)phys) {
dev_err(csi_dev->dev, "%lx != %x\n", phys,
- csi_read(csi_dev, CSI_CSIDMASA_FB1));
+ phys_fb1);
}
}
dev_dbg(csi_dev->dev, "%s (vb=0x%p) 0x%p %lu\n", __func__, vb,