This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bug in ETH_KSZ8851SNL.c

In network driver ETH_KSZ8851SNL.c

Waiting for SPI completion is missing in function MAC_ReadFrame(), resulting in the driver cannot work. Obviously, there is a fatal bug.

Code snippet from line 640:

 /* Read received frame */
  ptrSPI->Receive (frame, len);
   while (ptrSPI->GetStatus().busy);

  /* Read dummy bytes for alignment */
  if (len & 3)
  {
    ptrSPI->Receive (buf, 4 - (len & 3));
    while (ptrSPI->GetStatus().busy);
  }

The bold parts are fix patch. Please patch it when next release. Thanx!