netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 03/16] 64bit resource: fix up printks for resources in networks drivers
       [not found]     ` <11501586871870-git-send-email-greg@kroah.com>
@ 2006-06-13 16:24       ` Jesse Brandeburg
  2006-06-13 16:30         ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Jesse Brandeburg @ 2006-06-13 16:24 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel, Greg Kroah-Hartman, NetDEV list

First, added netdev,

On 6/12/06, Greg KH <greg@kroah.com> wrote:
> From: Greg Kroah-Hartman <gregkh@suse.de>
>
> This is needed if we wish to change the size of the resource structures.
>
> Based on an original patch from Vivek Goyal <vgoyal@in.ibm.com>
>
> Cc: Vivek Goyal <vgoyal@in.ibm.com>
> Cc: Andrew Morton <akpm@osdl.org>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
> ---
>  drivers/net/3c59x.c            |    6 ++++--
>  drivers/net/8139cp.c           |    9 +++++----
>  drivers/net/8139too.c          |    6 +++---
>  drivers/net/e100.c             |    4 ++--
>  drivers/net/skge.c             |    4 ++--
>  drivers/net/sky2.c             |    6 +++---
>  drivers/net/tulip/de2104x.c    |    9 +++++----
>  drivers/net/tulip/tulip_core.c |    6 +++---
>  drivers/net/typhoon.c          |    5 +++--
>  drivers/net/wan/dscc4.c        |   12 ++++++------
>  drivers/net/wan/pc300_drv.c    |    4 ++--
>  11 files changed, 38 insertions(+), 33 deletions(-)
>
> diff --git a/drivers/net/e100.c b/drivers/net/e100.c
> index 31ac001..0c0bd67 100644
> --- a/drivers/net/e100.c
> +++ b/drivers/net/e100.c
> @@ -2678,9 +2678,9 @@ #endif
>                 goto err_out_free;
>         }
>
> -       DPRINTK(PROBE, INFO, "addr 0x%lx, irq %d, "
> +       DPRINTK(PROBE, INFO, "addr 0x%llx, irq %d, "
>                 "MAC addr %02X:%02X:%02X:%02X:%02X:%02X\n",
> -               pci_resource_start(pdev, 0), pdev->irq,
> +               (unsigned long long)pci_resource_start(pdev, 0), pdev->irq,
>                 netdev->dev_addr[0], netdev->dev_addr[1], netdev->dev_addr[2],
>                 netdev->dev_addr[3], netdev->dev_addr[4], netdev->dev_addr[5]);

color me confused, but why is this change necessary for e100?  e100
can not support 64 bit BARs, so it seems to me to make little sense to
cast to unsigned long long.  e100 is 32 bit the whole way through.

Jesse

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 03/16] 64bit resource: fix up printks for resources in networks drivers
  2006-06-13 16:24       ` [PATCH 03/16] 64bit resource: fix up printks for resources in networks drivers Jesse Brandeburg
@ 2006-06-13 16:30         ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2006-06-13 16:30 UTC (permalink / raw)
  To: Jesse Brandeburg; +Cc: Greg KH, linux-kernel, NetDEV list

On Tue, Jun 13, 2006 at 09:24:55AM -0700, Jesse Brandeburg wrote:
> First, added netdev,
> 
> On 6/12/06, Greg KH <greg@kroah.com> wrote:
> >From: Greg Kroah-Hartman <gregkh@suse.de>
> >
> >This is needed if we wish to change the size of the resource structures.
> >
> >Based on an original patch from Vivek Goyal <vgoyal@in.ibm.com>
> >
> >Cc: Vivek Goyal <vgoyal@in.ibm.com>
> >Cc: Andrew Morton <akpm@osdl.org>
> >Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
> >---
> > drivers/net/3c59x.c            |    6 ++++--
> > drivers/net/8139cp.c           |    9 +++++----
> > drivers/net/8139too.c          |    6 +++---
> > drivers/net/e100.c             |    4 ++--
> > drivers/net/skge.c             |    4 ++--
> > drivers/net/sky2.c             |    6 +++---
> > drivers/net/tulip/de2104x.c    |    9 +++++----
> > drivers/net/tulip/tulip_core.c |    6 +++---
> > drivers/net/typhoon.c          |    5 +++--
> > drivers/net/wan/dscc4.c        |   12 ++++++------
> > drivers/net/wan/pc300_drv.c    |    4 ++--
> > 11 files changed, 38 insertions(+), 33 deletions(-)
> >
> >diff --git a/drivers/net/e100.c b/drivers/net/e100.c
> >index 31ac001..0c0bd67 100644
> >--- a/drivers/net/e100.c
> >+++ b/drivers/net/e100.c
> >@@ -2678,9 +2678,9 @@ #endif
> >                goto err_out_free;
> >        }
> >
> >-       DPRINTK(PROBE, INFO, "addr 0x%lx, irq %d, "
> >+       DPRINTK(PROBE, INFO, "addr 0x%llx, irq %d, "
> >                "MAC addr %02X:%02X:%02X:%02X:%02X:%02X\n",
> >-               pci_resource_start(pdev, 0), pdev->irq,
> >+               (unsigned long long)pci_resource_start(pdev, 0), pdev->irq,
> >                netdev->dev_addr[0], netdev->dev_addr[1], 
> >                netdev->dev_addr[2],
> >                netdev->dev_addr[3], netdev->dev_addr[4], 
> >                netdev->dev_addr[5]);
> 
> color me confused, but why is this change necessary for e100?  e100
> can not support 64 bit BARs, so it seems to me to make little sense to
> cast to unsigned long long.  e100 is 32 bit the whole way through.

Because the result of pci_resource_start() just became either u32 or u64
depending on a config option, and so, to keep everything sane, we just
always cast it to unsigned long long, which makes everyone happy.

Hope this helps,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-13 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20060613003033.GA10717@kroah.com>
     [not found] ` <11501586781628-git-send-email-greg@kroah.com>
     [not found]   ` <1150158683636-git-send-email-greg@kroah.com>
     [not found]     ` <11501586871870-git-send-email-greg@kroah.com>
2006-06-13 16:24       ` [PATCH 03/16] 64bit resource: fix up printks for resources in networks drivers Jesse Brandeburg
2006-06-13 16:30         ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).