From patchwork Sun Dec 21 01:15:44 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Halasa X-Patchwork-Id: 15090 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 239EFDDED5 for ; Sun, 21 Dec 2008 12:15:58 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752892AbYLUBPy (ORCPT ); Sat, 20 Dec 2008 20:15:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752321AbYLUBPx (ORCPT ); Sat, 20 Dec 2008 20:15:53 -0500 Received: from khc.piap.pl ([195.187.100.11]:52087 "EHLO khc.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751779AbYLUBPx (ORCPT ); Sat, 20 Dec 2008 20:15:53 -0500 Received: by khc.piap.pl (Postfix, from userid 500) id 357A170013; Sun, 21 Dec 2008 02:15:44 +0100 (CET) To: Subject: Re: [RFC] IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver. References: From: Krzysztof Halasa In-Reply-To: (Krzysztof Halasa's message of "Sun\, 21 Dec 2008 02\:11\:10 +0100") Date: Sun, 21 Dec 2008 02:15:44 +0100 Message-ID: MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Few patches I'm posting for review only. Not for operational use. IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver. --- a/drivers/net/arm/ixp4xx_eth.c +++ b/drivers/net/arm/ixp4xx_eth.c @@ -789,9 +789,11 @@ static void eth_set_mcast_list(struct net_device *dev) static int eth_ioctl(struct net_device *dev, struct ifreq *req, int cmd) { + struct port *port = netdev_priv(dev); + if (!netif_running(dev)) return -EINVAL; - return -EINVAL; + return phy_mii_ioctl(port->phydev, if_mii(req), cmd); }