summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2009-12-04 08:17:46 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-01-17 13:55:36 (GMT)
commitfb6de9c5fe13fd5cd866c49204e6bd91d73f83b0 (patch)
tree9dde3734aeb8105be561285b7f471c45b6eb3d3e
parentb619f9f8a111be3f6ec8ec2671eb93c66a673b90 (diff)
downloadlinux-fsl-qoriq-fb6de9c5fe13fd5cd866c49204e6bd91d73f83b0.tar.xz
V4L/DVB (13753): [Mantis CA] SLOT_CONTROL: Implement Slot RESET
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/mantis/mantis_ca.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/dvb/mantis/mantis_ca.c b/drivers/media/dvb/mantis/mantis_ca.c
index f6d70cb..a30eb84 100644
--- a/drivers/media/dvb/mantis/mantis_ca.c
+++ b/drivers/media/dvb/mantis/mantis_ca.c
@@ -80,6 +80,11 @@ static int mantis_ca_slot_reset(struct dvb_ca_en50221 *en50221, int slot)
struct mantis_pci *mantis = ca->ca_priv;
dprintk(verbose, MANTIS_DEBUG, 1, "Slot(%d): Slot RESET", slot);
+ udelay(500); /* Wait.. */
+ mmwrite(0xda, MANTIS_PCMCIA_RESET); /* Leading edge assert */
+ udelay(500);
+ mmwrite(0x00, MANTIS_PCMCIA_RESET); /* Trailing edge deassert */
+ msleep(1000);
return 0;
}