lantiq_etop.c (2d946e5bcdabc1deef72d01bc92a2801c71d6d8d) | lantiq_etop.c (58056c1e1b0e4951f3486bd552d8278194f8b84b) |
---|---|
1/* 2 * This program is free software; you can redistribute it and/or modify it 3 * under the terms of the GNU General Public License version 2 as published 4 * by the Free Software Foundation. 5 * 6 * This program is distributed in the hope that it will be useful, 7 * but WITHOUT ANY WARRANTY; without even the implied warranty of 8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- 260 unchanged lines hidden (view full) --- 269 270 ltq_dma_init_port(DMA_PORT_ETOP); 271 272 for (i = 0; i < MAX_DMA_CHAN; i++) { 273 int irq = LTQ_DMA_CH0_INT + i; 274 struct ltq_etop_chan *ch = &priv->ch[i]; 275 276 ch->idx = ch->dma.nr = i; | 1/* 2 * This program is free software; you can redistribute it and/or modify it 3 * under the terms of the GNU General Public License version 2 as published 4 * by the Free Software Foundation. 5 * 6 * This program is distributed in the hope that it will be useful, 7 * but WITHOUT ANY WARRANTY; without even the implied warranty of 8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- 260 unchanged lines hidden (view full) --- 269 270 ltq_dma_init_port(DMA_PORT_ETOP); 271 272 for (i = 0; i < MAX_DMA_CHAN; i++) { 273 int irq = LTQ_DMA_CH0_INT + i; 274 struct ltq_etop_chan *ch = &priv->ch[i]; 275 276 ch->idx = ch->dma.nr = i; |
277 ch->dma.dev = &priv->pdev->dev; | |
278 279 if (IS_TX(i)) { 280 ltq_dma_alloc_tx(&ch->dma); 281 request_irq(irq, ltq_etop_dma_irq, 0, "etop_tx", priv); 282 } else if (IS_RX(i)) { 283 ltq_dma_alloc_rx(&ch->dma); 284 for (ch->dma.desc = 0; ch->dma.desc < LTQ_DESC_NUM; 285 ch->dma.desc++) --- 74 unchanged lines hidden (view full) --- 360 phydev = phy_connect(dev, phydev_name(phydev), 361 <q_etop_mdio_link, priv->pldata->mii_mode); 362 363 if (IS_ERR(phydev)) { 364 netdev_err(dev, "Could not attach to PHY\n"); 365 return PTR_ERR(phydev); 366 } 367 | 277 278 if (IS_TX(i)) { 279 ltq_dma_alloc_tx(&ch->dma); 280 request_irq(irq, ltq_etop_dma_irq, 0, "etop_tx", priv); 281 } else if (IS_RX(i)) { 282 ltq_dma_alloc_rx(&ch->dma); 283 for (ch->dma.desc = 0; ch->dma.desc < LTQ_DESC_NUM; 284 ch->dma.desc++) --- 74 unchanged lines hidden (view full) --- 359 phydev = phy_connect(dev, phydev_name(phydev), 360 <q_etop_mdio_link, priv->pldata->mii_mode); 361 362 if (IS_ERR(phydev)) { 363 netdev_err(dev, "Could not attach to PHY\n"); 364 return PTR_ERR(phydev); 365 } 366 |
368 phydev->supported &= (SUPPORTED_10baseT_Half 369 | SUPPORTED_10baseT_Full 370 | SUPPORTED_100baseT_Half 371 | SUPPORTED_100baseT_Full 372 | SUPPORTED_Autoneg 373 | SUPPORTED_MII 374 | SUPPORTED_TP); | 367 phy_set_max_speed(phydev, SPEED_100); |
375 | 368 |
376 phydev->advertising = phydev->supported; | |
377 phy_attached_info(phydev); 378 379 return 0; 380} 381 382static int 383ltq_etop_mdio_init(struct net_device *dev) 384{ --- 372 unchanged lines hidden --- | 369 phy_attached_info(phydev); 370 371 return 0; 372} 373 374static int 375ltq_etop_mdio_init(struct net_device *dev) 376{ --- 372 unchanged lines hidden --- |