Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

stmmac: display the descriptors if DES0 = 0

It makes sense to display the descriptors even if
DES0 is zero. This helps for example in case of it
is needed to dump rx write-back descriptors to get
timestamp status.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Giuseppe CAVALLARO and committed by
David S. Miller
8be0328e ae3877bc

+3 -4
+3 -4
drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c
··· 347 347 pr_info("%s descriptor ring:\n", rx ? "RX" : "TX"); 348 348 349 349 for (i = 0; i < size; i++) { 350 - if (p->des0) 351 - pr_info("%d [0x%x]: 0x%x 0x%x 0x%x 0x%x\n", 352 - i, (unsigned int)virt_to_phys(p), 353 - p->des0, p->des1, p->des2, p->des3); 350 + pr_info("%d [0x%x]: 0x%x 0x%x 0x%x 0x%x\n", 351 + i, (unsigned int)virt_to_phys(p), 352 + p->des0, p->des1, p->des2, p->des3); 354 353 p++; 355 354 } 356 355 }