From eab18b3b06bd914f623c3e8e9d2a905b8cea7366 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Tue, 11 Jan 2022 19:22:54 +0100 Subject: net: fsl: Fix busy flag polling register NXP's mEMAC reference manual, Chapter 6.5.5 "MDIO Ethernet Management Interface usage", specifies to poll the BSY (0) bit in the CFG/STAT register to wait until a transaction has finished, not bit 31 in the data register. In the Linux kernel, this has already been fixed in commit 26eee0210ad7 ("net/fsl: fix a bug in xgmac_mdio"). This patch changes the register in the fman_mdio and fsl_ls_mdio drivers. As the MDIO_DATA_BSY define is no longer in use, this patch also removes its definition from the fsl_memac header. Signed-off-by: Markus Koch Reviewed-by: Camelia Groza --- include/fsl_memac.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include') diff --git a/include/fsl_memac.h b/include/fsl_memac.h index d067f1511c6..6ac1e558b97 100644 --- a/include/fsl_memac.h +++ b/include/fsl_memac.h @@ -254,7 +254,6 @@ struct memac_mdio_controller { #define MDIO_CTL_READ (1 << 15) #define MDIO_DATA(x) (x & 0xffff) -#define MDIO_DATA_BSY (1 << 31) struct fsl_enet_mac; -- cgit v1.2.3