- Added few print()
- Removed unneeded nand_info
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
ecc_code++;
}
} else {
- printk(KERN_INFO "pl350: ecc status failed\n");
+ debug("xnandps_calculate_hwecc: ecc status failed\n");
}
}
return 0;
{
struct xnandps_info *xnand;
struct mtd_info *mtd;
- extern struct mtd_info nand_info[];
unsigned long ecc_page_size;
int err = -1;
u8 maf_id, dev_id, i;
nand_chip->read_buf(mtd, get_feature, 4);
if (get_feature[0] & 0x08) {
- printf("OnDie ECC flash\n");
+ debug("zynq_nand_init: OnDie ECC flash\n");
ondie_ecc_enabled = 1;
- }
+ } else
+ printf("zynq_nand_init: Unable to detect OnDie ECC\n");
}
if (ondie_ecc_enabled) {