linux/drivers/net/phy/ax88796b.c

// SPDX-License-Identifier: GPL-2.0+
/* Driver for Asix PHYs
 *
 * Author: Michael Schmitz <[email protected]>
 */
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mii.h>
#include <linux/phy.h>

#define PHY_ID_ASIX_AX88772A
#define PHY_ID_ASIX_AX88772C
#define PHY_ID_ASIX_AX88796B

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();

/**
 * asix_soft_reset - software reset the PHY via BMCR_RESET bit
 * @phydev: target phy_device struct
 *
 * Description: Perform a software PHY reset using the standard
 * BMCR_RESET bit and poll for the reset bit to be cleared.
 * Toggle BMCR_RESET bit off to accommodate broken AX8796B PHY implementation
 * such as used on the Individual Computers' X-Surf 100 Zorro card.
 *
 * Returns: 0 on success, < 0 on failure
 */
static int asix_soft_reset(struct phy_device *phydev)
{}

/* AX88772A is not working properly with some old switches (NETGEAR EN 108TP):
 * after autoneg is done and the link status is reported as active, the MII_LPA
 * register is 0. This issue is not reproducible on AX88772C.
 */
static int asix_ax88772a_read_status(struct phy_device *phydev)
{}

static void asix_ax88772a_link_change_notify(struct phy_device *phydev)
{}

static struct phy_driver asix_driver[] =;

module_phy_driver(asix_driver);

static struct mdio_device_id __maybe_unused asix_tbl[] =;

MODULE_DEVICE_TABLE(mdio, asix_tbl);