video: tegra: dtv: Add DTV_STATUS into debugfs
Adam Jiang [Wed, 10 Oct 2012 09:04:51 +0000 (18:04 +0900)]
Expose DTV_STATUS register in debugfs which could be read by user land
applications.

Removed read operation over DTV_FIFO registers which may cause data
loss.

Bug 1061456
Bug 1258577

Reviewed-on: http://git-master/r/144430
(cherry picked from commit a7668922b555aca4ca0f5ca0569e4aa45383cb81)
(cherry picked from commit d14000d021e65b34735a167b2f313695b984e54c)

Change-Id: If4b5bd94fe8cc62f8a9695ec114345bd7cdd90a0
Signed-off-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-on: http://git-master/r/224678
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

drivers/media/video/tegra/tegra_dtv.c

index 6408446..6bafc51 100644 (file)
@@ -2,6 +2,7 @@
  * tegra_dtv.c - Tegra DTV interface driver
  *
  * Author: Adam Jiang <chaoj@nvidia.com>
+ *
  * Copyright (c) 2011-2013, NVIDIA CORPORATION.  All rights reserved.
  *
  * This program is free software; you can redistribute it and/or
@@ -635,8 +636,8 @@ static int dtv_reg_show(struct seq_file *s, void *unused)
                   tegra_dtv_readl(dtv_ctx, DTV_MODE));
        seq_printf(s, "DTV_CONTROL:       0x%08x\n",
                   tegra_dtv_readl(dtv_ctx, DTV_CTRL));
-       seq_printf(s, "DTV_FIFO:          0x%08x\n",
-                  tegra_dtv_readl(dtv_ctx, DTV_RX_FIFO));
+       seq_printf(s, "DTV_STATUS:        0x%08x\n",
+                  tegra_dtv_readl(dtv_ctx, DTV_STATUS));
 
        return 0;