>If we configure 10GBASE-R, then you clear the SGMIIEN bit and then >enable the HS MAC. Can we go back to non-10GBASE-R after that? Should >the code reverse those actions here?
Yes, when interface mode changes, SGMIIEN, PCSSEL and ENABLE_HS_MAC bits need to be programmed accordingly. I will make that modification and send next version. Regards, Parshuram Thombare