1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

Activate CAM race condition handler

Signed-off-by: Jasmin Jessich <jasmin@anw.at>
This commit is contained in:
Jasmin Jessich 2017-03-03 00:50:03 +01:00
parent 37de742aad
commit c3839cbade

View File

@ -763,7 +763,7 @@ static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, u8 * b
status = -EAGAIN; status = -EAGAIN;
goto exit; goto exit;
} }
#if 0
/* It may need some time for the CAM to settle down, or there might be a /* It may need some time for the CAM to settle down, or there might be a
race condition between the CAM, writing HC and our last check for DA. race condition between the CAM, writing HC and our last check for DA.
This happens, if the CAM asserts DA, just after checking DA before we This happens, if the CAM asserts DA, just after checking DA before we
@ -781,7 +781,7 @@ static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, u8 * b
status = -EAGAIN; status = -EAGAIN;
goto exit; goto exit;
} }
#endif
/* send the amount of data */ /* send the amount of data */
if ((status = ca->pub->write_cam_control(ca->pub, slot, CTRLIF_SIZE_HIGH, bytes_write >> 8)) != 0) if ((status = ca->pub->write_cam_control(ca->pub, slot, CTRLIF_SIZE_HIGH, bytes_write >> 8)) != 0)
goto exit; goto exit;