mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] usb: hcd: use *resource_size_t* for specifying resource data
@ 2012-08-16 12:54 Kishon Vijay Abraham I
  2012-08-16 12:56 ` Felipe Balbi
  0 siblings, 1 reply; 2+ messages in thread
From: Kishon Vijay Abraham I @ 2012-08-16 12:54 UTC (permalink / raw)
  To: kishon, gregkh, linux-usb, linux-kernel, balbi

Changed the type of rsrc_start and rsrc_len from u64 to resource_size_t
so that it behaves well with resource API's like *resource_size()* on both
32bit and 64bit devices.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
---
 include/linux/usb/hcd.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h
index c5fdb14..608050b 100644
--- a/include/linux/usb/hcd.h
+++ b/include/linux/usb/hcd.h
@@ -135,8 +135,8 @@ struct usb_hcd {
 
 	unsigned int		irq;		/* irq allocated */
 	void __iomem		*regs;		/* device memory/io */
-	u64			rsrc_start;	/* memory/io resource start */
-	u64			rsrc_len;	/* memory/io resource length */
+	resource_size_t		rsrc_start;	/* memory/io resource start */
+	resource_size_t		rsrc_len;	/* memory/io resource length */
 	unsigned		power_budget;	/* in mA, 0 = no limit */
 
 	/* bandwidth_mutex should be taken before adding or removing
-- 
1.7.9.5


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

* Re: [PATCH] usb: hcd: use *resource_size_t* for specifying resource data
  2012-08-16 12:54 [PATCH] usb: hcd: use *resource_size_t* for specifying resource data Kishon Vijay Abraham I
@ 2012-08-16 12:56 ` Felipe Balbi
  0 siblings, 0 replies; 2+ messages in thread
From: Felipe Balbi @ 2012-08-16 12:56 UTC (permalink / raw)
  To: Kishon Vijay Abraham I; +Cc: gregkh, linux-usb, linux-kernel, balbi

[-- Attachment #1: Type: text/plain, Size: 1201 bytes --]

Hi,

On Thu, Aug 16, 2012 at 06:24:19PM +0530, Kishon Vijay Abraham I wrote:
> Changed the type of rsrc_start and rsrc_len from u64 to resource_size_t
> so that it behaves well with resource API's like *resource_size()* on both
> 32bit and 64bit devices.
> 
> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

looks correct to me. FWIW:

Acked-by: Felipe Balbi <balbi@ti.com>

> ---
>  include/linux/usb/hcd.h |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h
> index c5fdb14..608050b 100644
> --- a/include/linux/usb/hcd.h
> +++ b/include/linux/usb/hcd.h
> @@ -135,8 +135,8 @@ struct usb_hcd {
>  
>  	unsigned int		irq;		/* irq allocated */
>  	void __iomem		*regs;		/* device memory/io */
> -	u64			rsrc_start;	/* memory/io resource start */
> -	u64			rsrc_len;	/* memory/io resource length */
> +	resource_size_t		rsrc_start;	/* memory/io resource start */
> +	resource_size_t		rsrc_len;	/* memory/io resource length */
>  	unsigned		power_budget;	/* in mA, 0 = no limit */
>  
>  	/* bandwidth_mutex should be taken before adding or removing
> -- 
> 1.7.9.5
> 

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2012-08-16 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-16 12:54 [PATCH] usb: hcd: use *resource_size_t* for specifying resource data Kishon Vijay Abraham I
2012-08-16 12:56 ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®