File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,6 @@ static int rtsx_usb_get_status_with_bulk(struct rtsx_ucr *ucr, u16 *status)
286
286
int rtsx_usb_get_card_status (struct rtsx_ucr * ucr , u16 * status )
287
287
{
288
288
int ret ;
289
- u8 interrupt_val = 0 ;
290
289
u16 * buf ;
291
290
292
291
if (!status )
@@ -309,20 +308,6 @@ int rtsx_usb_get_card_status(struct rtsx_ucr *ucr, u16 *status)
309
308
ret = rtsx_usb_get_status_with_bulk (ucr , status );
310
309
}
311
310
312
- rtsx_usb_read_register (ucr , CARD_INT_PEND , & interrupt_val );
313
- /* Cross check presence with interrupts */
314
- if (* status & XD_CD )
315
- if (!(interrupt_val & XD_INT ))
316
- * status &= ~XD_CD ;
317
-
318
- if (* status & SD_CD )
319
- if (!(interrupt_val & SD_INT ))
320
- * status &= ~SD_CD ;
321
-
322
- if (* status & MS_CD )
323
- if (!(interrupt_val & MS_INT ))
324
- * status &= ~MS_CD ;
325
-
326
311
/* usb_control_msg may return positive when success */
327
312
if (ret < 0 )
328
313
return ret ;
You can’t perform that action at this time.
0 commit comments