Sending error while using fec_mxc driver from u-boot on i.MX6Q board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sending error while using fec_mxc driver from u-boot on i.MX6Q board

784 Views
nu1lptr
Contributor I

Hi,

I was recently porting fec_mxc driver in u-boot to an iMX6Q board.

The initialization of the ethernet driver succeeds without any errors. However, invoking fec_send always throws the following error:

> fec_send: status 0x8c00 index 0 ret -22

It looks like that the READY bit of the TX buffer descriptor is not cleared. Does anyone have any clues about this issue or any debug suggestions? Thanks!

 

Here are some register values of the ethernet device when the error happens:

Ethernet state (ecntrl): 0xf0000102 (Active)
TX state (x_des_active): Inactive (no FEC_X_DES_ACTIVE_TDAR bit)
RX state (r_des_active): Inactive (no FEC_R_DES_ACTIVE_RDAR bit)
TX control (x_cntrl): 0x00000004
RX control (r_cntrl): 0x05f20064
RX desc base (erdsr): 0x4e07fd40 (size: 0x600)
TX desc base (etdsr): 0x4e07fdc0
Enabled events (imask): 0x00000000
Pending events (ievent): 0x00000000

 

This is the link to the driver: https://github.com/u-boot/u-boot/blob/master/drivers/net/fec_mxc.c

Labels (1)
0 Kudos
Reply
1 Reply