This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem about dm8168 mcbsp driver lose frame sync

Hi all:

We write a mcbsp driver as a character device,

and when we  disconnect the slave device from the master device,

we found that (irqst_spcr1 & RSYNC_ERR)==TRUE,

and we Writing zero to RSYNC_ERR clears the IRQ referred dm8168 datasheet,

however when we connect the slave and master, the  condtion (irqst_spcr1 & RSYNC_ERR)==TRUE

nerver change any more also no data recevies , seems clears the RSYNC_ERR IRQ referred fail,

Is there any other irq must be cleaned ?

  u16 irqst_spcr1;
116
117         irqst_spcr1 = MCBSP_READ(mcbsp_rx->io_base, SPCR1);
118         dev_dbg(mcbsp_rx->dev, "RX IRQ callback : 0x%x\n", irqst_spcr1);
119
120         if (irqst_spcr1 & RSYNC_ERR) {
121                 dev_err(mcbsp_rx->dev, "RX Frame Sync Error! : 0x%x\n",
122                         irqst_spcr1);
123                 /* Writing zero to RSYNC_ERR clears the IRQ */
124                 MCBSP_WRITE(mcbsp_rx->io_base, SPCR1,
125                         irqst_spcr1 & ~(RSYNC_ERR));
126         } else {
127                 ....

128         }

xavier

best regards