When (partially) programming the PL, the driver outputs unwanted
messages like "Found normal sync word".
Replace use of "default" printk with pr_debug. This surpresses the
message until explicitly asked for.
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
/* Look for sync word */
for (i = 0; i < count - 4; i++) {
if (memcmp(kbuf + i, "\x66\x55\x99\xAA", 4) == 0) {
- printk("Found normal sync word\n");
+ pr_debug("Found normal sync word\n");
drvdata->endian_swap = 0;
break;
}
if (memcmp(kbuf + i, "\xAA\x99\x55\x66", 4) == 0) {
- printk("Found swapped sync word\n");
+ pr_debug("Found swapped sync word\n");
drvdata->endian_swap = 1;
break;
}