Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb61488a authored by Ralph Metzler's avatar Ralph Metzler Committed by Mauro Carvalho Chehab
Browse files

media: dvb_ca_en50221: State UNINITIALISED instead of INVALID



In case of a linkinit failure change to state UNINITIALISED to re-init
the CAM.

Original code change by Ralph Metzler, modified by Jasmin Jessich to match
Kernel code style.

Signed-off-by: default avatarRalph Metzler <rjkm@metzlerbros.de>
Signed-off-by: default avatarJasmin Jessich <jasmin@anw.at>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 4ee92289
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1176,7 +1176,8 @@ static int dvb_ca_en50221_thread(void *data)

					pr_err("dvb_ca adapter %d: DVB CAM link initialisation failed :(\n",
					       ca->dvbdev->adapter->num);
					ca->slot_info[slot].slot_state = DVB_CA_SLOTSTATE_INVALID;
					ca->slot_info[slot].slot_state =
						DVB_CA_SLOTSTATE_UNINITIALISED;
					dvb_ca_en50221_thread_update_delay(ca);
					break;
				}