Re: [PATCH net v11 3/3] net/8390: apne.c - add 100 Mbit support to apne.c driver

From
Michael Schmitz <schmitzmic@gmail.com>
Date
2021-11-18 19:35:16
Also in
netdev
Reply to
Joe Perches, 2021-11-18
Hi Joe,

thanks for your review!

On 19/11/21 08:18, Joe Perches wrote:
On Mon, 2021-11-15 at 12:40 +1300, Michael Schmitz wrote:
quoted
Add module parameter, IO mode autoprobe and PCMCIA reset code
required to support 100 Mbit PCMCIA ethernet cards on Amiga.
[]
quoted
diff --git a/drivers/net/ethernet/8390/apne.c b/drivers/net/ethernet/8390/apne.c
[]
quoted
@@ -119,6 +119,48 @@ static u32 apne_msg_enable;
[]
quoted
+	cftuple_len = pcmcia_copy_tuple(CISTPL_CFTABLE_ENTRY, cftuple, 256);
+	if (cftuple_len < 3)
+		return 0;
+#ifdef DEBUG
+	else
+		print_hex_dump(KERN_WARNING, "cftable: ", DUMP_PREFIX_NONE, 8,
+			       sizeof(char), cftuple, cftuple_len, false);
+#endif
Why KERN_WARNING and why not use print_hex_dump_debug without the #ifdef
No particular reason - head still stuck in the '90 perhaps.
[]
quoted
+#ifdef DEBUG
+	pr_info("IO flags: %x\n", cftable_entry.io.flags);
pr_debug ?
Both changed now, thanks!

Regards,

	Michael Schmitz
Thread (16 messages) 16 messages, 3 authors, last reply 2021-11-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help