Re: [PATCH V8 4/7] net: sxgbe: add EEE(Energy Efficient Ethernet) for Samsung sxgbe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, Mar 20, 2014 at 05:26:06PM +0000, Byungho An wrote:
> From: Girish K S <ks.giri@xxxxxxxxxxx>
> 
> Added support for the EEE(Energy Efficient Ethernet) in 10G ethernet driver.
> 
> Signed-off-by: Girish K S <ks.giri@xxxxxxxxxxx>
> Neatening-by: Joe Perches <joe@xxxxxxxxxxx>
> Signed-off-by: Byungho An <bh74.an@xxxxxxxxxxx>
> ---
>  drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h  |   53 +++++++
>  drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c    |   86 +++++++++-
>  drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c |   47 ++++++
>  drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c    |  165 +++++++++++++++++++-
>  .../net/ethernet/samsung/sxgbe/sxgbe_platform.c    |    4 +
>  drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h     |    5 +
>  6 files changed, 358 insertions(+), 2 deletions(-)

[...]

> diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c
> index e410d84..b23ec57 100644
> --- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c
> +++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c
> @@ -160,6 +160,10 @@ static int sxgbe_platform_probe(struct platform_device *pdev)
>                 }
>         }
> 
> +       priv->lpi_irq = irq_of_parse_and_map(dev->of_node, loop++);

You can use platform_get_irq(pdev, loop++) here. The interrupts have
already been parsed elsewhere.

Cheers,
Mark.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux