Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932333AbbB0P4O (ORCPT ); Fri, 27 Feb 2015 10:56:14 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:45624 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754958AbbB0P4K (ORCPT ); Fri, 27 Feb 2015 10:56:10 -0500 MIME-Version: 1.0 In-Reply-To: <1424813251-31610-1-git-send-email-m-karicheri2@ti.com> References: <1424813251-31610-1-git-send-email-m-karicheri2@ti.com> From: "Lad, Prabhakar" Date: Fri, 27 Feb 2015 15:55:34 +0000 Message-ID: Subject: Re: [PATCH net-next 1/2] net: davinci_mdio: don't request io address range To: Murali Karicheri Cc: "David S. Miller" , Mugunthan V N , george.cherian@ti.com, varkabhadram@gmail.com, netdev , LKML , Tony Lindgren , Grygorii Strashko , lokeshvutla@ti.com, mpa@pengutronix.de, w-kwok2@ti.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1817 Lines: 47 On Tue, Feb 24, 2015 at 9:27 PM, Murali Karicheri wrote: > From: Grygorii Strashko > > Historically Davinci MDIO driver was created with assumption that > MDIO is standalone device, but for Keystone 2 it's a part > of NETCP module and now NETCP driver requests IO range which > includes MDIO IO range too. This causes Keystone 2 networking stack > failure during the boot. > > "netcp-1.0 2620110.netcp: Probe of module(netcp-gbe) failed with -16" > > Hence, don't request io address range from Davinci MDIO driver and > just remap it. > > Signed-off-by: Grygorii Strashko > Signed-off-by: Murali Karicheri Acked-by: Lad, Prabhakar Cheers, --Prabhakar Lad > --- > drivers/net/ethernet/ti/davinci_mdio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c > index 98655b4..b13ec82 100644 > --- a/drivers/net/ethernet/ti/davinci_mdio.c > +++ b/drivers/net/ethernet/ti/davinci_mdio.c > @@ -371,7 +371,7 @@ static int davinci_mdio_probe(struct platform_device *pdev) > spin_lock_init(&data->lock); > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - data->regs = devm_ioremap_resource(dev, res); > + data->regs = devm_ioremap_nocache(dev, res->start, resource_size(res)); > if (IS_ERR(data->regs)) { > ret = PTR_ERR(data->regs); > goto bail_out; > -- > 1.7.9.5 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/