media: tegra: nvavp: change prints to dev_dbg
Naveen Kumar S [Thu, 20 Nov 2014 05:48:24 +0000 (10:48 +0530)]
Changing dev_info prints to dev_dbg to avoid them from being
printed repeatedly.

bug 1506870

Change-Id: I4a5cabbcea37556271d5afe6f1d367f3f035989b
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/606666
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

drivers/media/platform/tegra/nvavp/nvavp_dev.c

index b14fd13..2411626 100644 (file)
@@ -1021,14 +1021,14 @@ static int nvavp_load_ucode(struct nvavp_info *nvavp)
                        }
                }
 
-               dev_info(&nvavp->nvhost_dev->dev,
+               dev_dbg(&nvavp->nvhost_dev->dev,
                        "read ucode firmware from '%s' (%d bytes)\n",
                        fw_ucode_file, nvavp_ucode_fw->size);
 
                ptr = (void *)nvavp_ucode_fw->data;
 
                if (strncmp((const char *)ptr, "NVAVPAPP", 8)) {
-                       dev_info(&nvavp->nvhost_dev->dev,
+                       dev_dbg(&nvavp->nvhost_dev->dev,
                                "ucode hdr string mismatch\n");
                        ret = -EINVAL;
                        goto err_req_ucode;
@@ -1094,14 +1094,14 @@ static int nvavp_load_os(struct nvavp_info *nvavp, char *fw_os_file)
                        goto err_req_fw;
                }
 
-               dev_info(&nvavp->nvhost_dev->dev,
+               dev_dbg(&nvavp->nvhost_dev->dev,
                        "read firmware from '%s' (%d bytes)\n",
                        fw_os_file, nvavp_os_fw->size);
 
                ptr = (void *)nvavp_os_fw->data;
 
                if (strncmp((const char *)ptr, "NVAVP-OS", 8)) {
-                       dev_info(&nvavp->nvhost_dev->dev,
+                       dev_dbg(&nvavp->nvhost_dev->dev,
                                "os hdr string mismatch\n");
                        ret = -EINVAL;
                        goto err_os_bin;
@@ -1130,7 +1130,7 @@ static int nvavp_load_os(struct nvavp_info *nvavp, char *fw_os_file)
                memcpy(os_info->os_bin, ptr, os_info->size);
                memset(os_info->data + os_info->size, 0, SZ_1M - os_info->size);
 
-               dev_info(&nvavp->nvhost_dev->dev,
+               dev_dbg(&nvavp->nvhost_dev->dev,
                        "entry=%08x control=%08x debug=%08x size=%d\n",
                        os_info->entry_offset, os_info->control_offset,
                        os_info->debug_offset, os_info->size);
@@ -1140,7 +1140,7 @@ static int nvavp_load_os(struct nvavp_info *nvavp, char *fw_os_file)
        memcpy(os_info->data, os_info->os_bin, os_info->size);
        os_info->reset_addr = os_info->phys + os_info->entry_offset;
 
-       dev_info(&nvavp->nvhost_dev->dev,
+       dev_dbg(&nvavp->nvhost_dev->dev,
                "AVP os at vaddr=%p paddr=%llx reset_addr=%llx\n",
                os_info->data, (u64)(os_info->phys), (u64)os_info->reset_addr);
        return 0;
@@ -1176,14 +1176,14 @@ static int nvavp_os_init(struct nvavp_info *nvavp)
 #if defined(CONFIG_TEGRA_AVP_KERNEL_ON_MMU) /* Tegra2 with AVP MMU */
        /* paddr is phys address */
        /* vaddr is AVP_KERNEL_VIRT_BASE */
-       dev_info(&nvavp->nvhost_dev->dev,
+       dev_dbg(&nvavp->nvhost_dev->dev,
                "using AVP MMU to relocate AVP os\n");
        sprintf(fw_os_file, "nvavp_os.bin");
        nvavp->os_info.reset_addr = AVP_KERNEL_VIRT_BASE;
 #elif defined(CONFIG_TEGRA_AVP_KERNEL_ON_SMMU) /* Tegra3 with SMMU */
        /* paddr is any address behind SMMU */
        /* vaddr is TEGRA_SMMU_BASE */
-       dev_info(&nvavp->nvhost_dev->dev,
+       dev_dbg(&nvavp->nvhost_dev->dev,
                "using SMMU at %lx to load AVP kernel\n",
                (unsigned long)nvavp->os_info.phys);
        BUG_ON(nvavp->os_info.phys != 0xeff00000
@@ -1193,7 +1193,7 @@ static int nvavp_os_init(struct nvavp_info *nvavp)
                (unsigned long)nvavp->os_info.phys);
        nvavp->os_info.reset_addr = nvavp->os_info.phys;
 #else /* nvmem= carveout */
-       dev_info(&nvavp->nvhost_dev->dev,
+       dev_dbg(&nvavp->nvhost_dev->dev,
                "using nvmem= carveout at %llx to load AVP os\n",
                (u64)nvavp->os_info.phys);
        sprintf(fw_os_file, "nvavp_os_%08llx.bin", (u64)nvavp->os_info.phys);