]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: fix the last transmit buffer descriptor
authorYangbo Lu <yangbo.lu@nxp.com>
Thu, 2 Jun 2016 09:36:28 +0000 (17:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jun 2016 23:32:23 +0000 (19:32 -0400)
commitd3eb575d5ab9d4b27e43ea43e57e70fee342b3b8
tree07af47943c364135e8efe4bbec0a63142a56fe6a
parentd7fe9753e945cbd2bc9b8e66f1eb5b438458003c
gianfar: fix the last transmit buffer descriptor

When the transmit hardware timestamping is enabled, an additional
TxBD would be added and would be set as the last TxBD with TXBD_LAST
and TXBD_INTERRUPT. However this has been broken by a patch recently.
This made the software couldn't get transmit hardware timestamps and
resulted in call trace. So, this patch is to fix this issue.

Fixes: c786c1fc0491 ("gianfar: Remove redundant ops for do_tstamp
       from xmit()")
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c