From patchwork Thu Aug 29 16:15:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Chevallier X-Patchwork-Id: 13783409 X-Patchwork-Delegate: kuba@kernel.org Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C7CF1B5EA2; Thu, 29 Aug 2024 16:15:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724948147; cv=none; b=IHmjGhDLMsA6tQqDUKqBDI/ph75XvH+e/BAh3x9saNStJ1A//06pXBUYlUtoMg2jW/T07FNlrCACPZLin1OiFdRALJCnFLHIao5u1sj2j1dpURKfP9l+2NPT7G4sJz2OXKdio1O1ppylaHmvBm5zu+7emD+j1cUUbi4NP/x58fE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724948147; c=relaxed/simple; bh=D7+W257rxAGDBxVfBosCX3PcZ+3Ux1QUz7gWik1on1U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WXKmwurF/j/iWDuhXEyW2LFC6V09RlPH0IK8b1/d4/HMRT/Ldmkuz2aaCabMcERxs+SGPLvTfFknGDNEj/W9xXwFJYhH5EGV70NY98VSeEmH4DdtN+SREjZ4UO3ejm+6QMv2fM5EK2JGiHVOdI3EusyvZ0RDi5wvOCnR7Twqems= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=NsaGGPmx; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="NsaGGPmx" Received: by mail.gandi.net (Postfix) with ESMTPSA id 9D8F9E0006; Thu, 29 Aug 2024 16:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1724948138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SIsPTyrxGgw/Zac0/0z0TI/VToGqrLc2BdFxemVNJ2A=; b=NsaGGPmxG3Ickd/pWRrm8GNa4IFdZgVRXGADqN63R2ECTw+/30GXlJsMjPZwXQ+PU8NZrN PdUtRFw4lp7N636fFYAyHJiwKU53mmKJ4gl2gFrlvLUfWczmxSXnY6V4JpMpu3xKdzn73h Xw+OM0F0dn7UuSA8ISb01LSrg+YsWqB3/aT8WSq4bonjeVBLSplEaSpYs3qtuuYSnl+DwW PSGL+Pgb5mI52PkJiQOYSKootnlmx+FDixoekrRc4fyRb1r/PvMmKVg44JNNSUT+Q6z5K2 5rv7purr/62dMBblNw/cHTjf+B23qKu3RWPUjkqb+rSk7WGqNs+og9NJ3Kx2Hw== From: Maxime Chevallier To: davem@davemloft.net, Pantelis Antoniou , Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , Christophe Leroy , Florian Fainelli , Heiner Kallweit Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Herve Codina , Simon Horman , linuxppc-dev@lists.ozlabs.org Subject: [PATCH net-next v2 4/7] net: ethernet: fs_enet: drop unused phy_info and mii_if_info Date: Thu, 29 Aug 2024 18:15:27 +0200 Message-ID: <20240829161531.610874-5-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240829161531.610874-1-maxime.chevallier@bootlin.com> References: <20240829161531.610874-1-maxime.chevallier@bootlin.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-GND-Sasl: maxime.chevallier@bootlin.com X-Patchwork-Delegate: kuba@kernel.org There's no user of the struct phy_info, the 'phy' field and the mii_if_info in the fs_enet driver, probably dating back when phylib wasn't as widely used. Drop these from the driver code. Acked-by: Christophe Leroy Reviewed-by: Christophe Leroy Signed-off-by: Maxime Chevallier Reviewed-by: Andrew Lunn --- drivers/net/ethernet/freescale/fs_enet/fs_enet.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet.h b/drivers/net/ethernet/freescale/fs_enet/fs_enet.h index abe4dc97e52a..781f506c933c 100644 --- a/drivers/net/ethernet/freescale/fs_enet/fs_enet.h +++ b/drivers/net/ethernet/freescale/fs_enet/fs_enet.h @@ -92,14 +92,6 @@ struct fs_ops { void (*tx_restart)(struct net_device *dev); }; -struct phy_info { - unsigned int id; - const char *name; - void (*startup) (struct net_device * dev); - void (*shutdown) (struct net_device * dev); - void (*ack_int) (struct net_device * dev); -}; - /* The FEC stores dest/src/type, data, and checksum for receive packets. */ #define MAX_MTU 1508 /* Allow fullsized pppoe packets over VLAN */ @@ -153,10 +145,7 @@ struct fs_enet_private { cbd_t __iomem *cur_rx; cbd_t __iomem *cur_tx; int tx_free; - const struct phy_info *phy; u32 msg_enable; - struct mii_if_info mii_if; - unsigned int last_mii_status; int interrupt; int oldduplex, oldspeed, oldlink; /* current settings */