/* ks_update_link_status - link status update. @netdev: The network device being opened. @ks: The chip information  */
static void ks_update_link_status(struct net_device *netdev, struct ks_net *ks)
/* ks_update_link_status - link status update. @netdev: The network device being opened. @ks: The chip information  */
static void ks_update_link_status(struct net_device *netdev, struct ks_net *ks)
{
	u32 link_up_status;
	if (ks_rdreg16(ks, KS_P1SR) & P1SR_LINK_GOOD) {
		netif_carrier_on(netdev);
		link_up_status = true;
	} else {
		netif_carrier_off(netdev);
		link_up_status = false;
	}
	if (netif_msg_link(ks))
		ks_dbg(ks, "%s: %s\n",
			__func__, link_up_status ? "UP" : "DOWN");
}