public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arc: Add virt_to_phys() stub
@ 2016-04-08 17:00 Alexey Brodkin
  2016-04-08 17:05 ` Marek Vasut
  2016-04-08 17:27 ` Marek Vasut
  0 siblings, 2 replies; 7+ messages in thread
From: Alexey Brodkin @ 2016-04-08 17:00 UTC (permalink / raw)
  To: u-boot

Commit cf7c93cdd755 "usb: ehci: Implement V2P mapping"
introduced usage of virt_to_phys() in ehci-hcd.

Since there was no implementation of virt_to_phys() for ARC
compilation of the ehci-generic driver failed.

This change adds virt_to_phys() stub for ARC so now
USB driver for AXS101 board could be built again.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>
---
 arch/arc/include/asm/io.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h
index 281682c..b6f7724 100644
--- a/arch/arc/include/asm/io.h
+++ b/arch/arc/include/asm/io.h
@@ -239,4 +239,9 @@ static inline int __raw_writesl(unsigned int addr, void *data, int longlen)
 #define setbits_8(addr, set) setbits(8, addr, set)
 #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
 
+static inline phys_addr_t virt_to_phys(void *vaddr)
+{
+	return (phys_addr_t)((unsigned long)vaddr);
+}
+
 #endif	/* __ASM_ARC_IO_H */
-- 
2.5.5

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

* [U-Boot] [PATCH] arc: Add virt_to_phys() stub
  2016-04-08 17:00 [U-Boot] [PATCH] arc: Add virt_to_phys() stub Alexey Brodkin
@ 2016-04-08 17:05 ` Marek Vasut
  2016-04-08 17:08   ` Alexey Brodkin
  2016-04-08 17:27 ` Marek Vasut
  1 sibling, 1 reply; 7+ messages in thread
From: Marek Vasut @ 2016-04-08 17:05 UTC (permalink / raw)
  To: u-boot

On 04/08/2016 07:00 PM, Alexey Brodkin wrote:
> Commit cf7c93cdd755 "usb: ehci: Implement V2P mapping"
> introduced usage of virt_to_phys() in ehci-hcd.
> 
> Since there was no implementation of virt_to_phys() for ARC
> compilation of the ehci-generic driver failed.
> 
> This change adds virt_to_phys() stub for ARC so now
> USB driver for AXS101 board could be built again.
> 
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> Cc: Hans de Goede <hdegoede@redhat.com>
> ---
>  arch/arc/include/asm/io.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h
> index 281682c..b6f7724 100644
> --- a/arch/arc/include/asm/io.h
> +++ b/arch/arc/include/asm/io.h
> @@ -239,4 +239,9 @@ static inline int __raw_writesl(unsigned int addr, void *data, int longlen)
>  #define setbits_8(addr, set) setbits(8, addr, set)
>  #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
>  
> +static inline phys_addr_t virt_to_phys(void *vaddr)
> +{
> +	return (phys_addr_t)((unsigned long)vaddr);
> +}
> +
>  #endif	/* __ASM_ARC_IO_H */
> 

Sorry for breaking your arch.

Acked-by: Marek Vasut <marex@denx.de>
-- 
Best regards,
Marek Vasut

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

* [U-Boot] [PATCH] arc: Add virt_to_phys() stub
  2016-04-08 17:05 ` Marek Vasut
@ 2016-04-08 17:08   ` Alexey Brodkin
  2016-04-08 17:23     ` Marek Vasut
  0 siblings, 1 reply; 7+ messages in thread
From: Alexey Brodkin @ 2016-04-08 17:08 UTC (permalink / raw)
  To: u-boot

Hi Marek,

On Fri, 2016-04-08 at 19:05 +0200, Marek Vasut wrote:
> On 04/08/2016 07:00 PM, Alexey Brodkin wrote:
> > 
> > Commit cf7c93cdd755 "usb: ehci: Implement V2P mapping"
> > introduced usage of virt_to_phys() in ehci-hcd.
> > 
> > Since there was no implementation of virt_to_phys() for ARC
> > compilation of the ehci-generic driver failed.
> > 
> > This change adds virt_to_phys() stub for ARC so now
> > USB driver for AXS101 board could be built again.
> > 
> > Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> > Cc: Marek Vasut <marex@denx.de>
> > Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> > Cc: Hans de Goede <hdegoede@redhat.com>
> > ---
> > ?arch/arc/include/asm/io.h | 5 +++++
> > ?1 file changed, 5 insertions(+)
> > 
> > diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h
> > index 281682c..b6f7724 100644
> > --- a/arch/arc/include/asm/io.h
> > +++ b/arch/arc/include/asm/io.h
> > @@ -239,4 +239,9 @@ static inline int __raw_writesl(unsigned int addr, void *data, int longlen)
> > ?#define setbits_8(addr, set) setbits(8, addr, set)
> > ?#define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
> > ?
> > +static inline phys_addr_t virt_to_phys(void *vaddr)
> > +{
> > +	return (phys_addr_t)((unsigned long)vaddr);
> > +}
> > +
> > ?#endif	/* __ASM_ARC_IO_H */
> > 
> Sorry for breaking your arch.

That happens. No problem.
Real problem though is we still don't have autobuilder that
catches these kinds of trivial flaws.

I don't build for all arches as well before submitting patches so
before autobuilder is there we'll see more issues of that kind :)

-Alexey

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

* [U-Boot] [PATCH] arc: Add virt_to_phys() stub
  2016-04-08 17:08   ` Alexey Brodkin
@ 2016-04-08 17:23     ` Marek Vasut
  2016-04-08 17:26       ` Alexey Brodkin
  0 siblings, 1 reply; 7+ messages in thread
From: Marek Vasut @ 2016-04-08 17:23 UTC (permalink / raw)
  To: u-boot

On 04/08/2016 07:08 PM, Alexey Brodkin wrote:
> Hi Marek,
> 
> On Fri, 2016-04-08 at 19:05 +0200, Marek Vasut wrote:
>> On 04/08/2016 07:00 PM, Alexey Brodkin wrote:
>>>
>>> Commit cf7c93cdd755 "usb: ehci: Implement V2P mapping"
>>> introduced usage of virt_to_phys() in ehci-hcd.
>>>
>>> Since there was no implementation of virt_to_phys() for ARC
>>> compilation of the ehci-generic driver failed.
>>>
>>> This change adds virt_to_phys() stub for ARC so now
>>> USB driver for AXS101 board could be built again.
>>>
>>> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
>>> Cc: Marek Vasut <marex@denx.de>
>>> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
>>> Cc: Hans de Goede <hdegoede@redhat.com>
>>> ---
>>>  arch/arc/include/asm/io.h | 5 +++++
>>>  1 file changed, 5 insertions(+)
>>>
>>> diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h
>>> index 281682c..b6f7724 100644
>>> --- a/arch/arc/include/asm/io.h
>>> +++ b/arch/arc/include/asm/io.h
>>> @@ -239,4 +239,9 @@ static inline int __raw_writesl(unsigned int addr, void *data, int longlen)
>>>  #define setbits_8(addr, set) setbits(8, addr, set)
>>>  #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
>>>  
>>> +static inline phys_addr_t virt_to_phys(void *vaddr)
>>> +{
>>> +	return (phys_addr_t)((unsigned long)vaddr);
>>> +}
>>> +
>>>  #endif	/* __ASM_ARC_IO_H */
>>>
>> Sorry for breaking your arch.
> 
> That happens. No problem.
> Real problem though is we still don't have autobuilder that
> catches these kinds of trivial flaws.

Synopsys can sponsor one , anytime ;-)

> I don't build for all arches as well before submitting patches so
> before autobuilder is there we'll see more issues of that kind :)

buildman can help you here.

> -Alexey
> 


-- 
Best regards,
Marek Vasut

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

* [U-Boot] [PATCH] arc: Add virt_to_phys() stub
  2016-04-08 17:23     ` Marek Vasut
@ 2016-04-08 17:26       ` Alexey Brodkin
  0 siblings, 0 replies; 7+ messages in thread
From: Alexey Brodkin @ 2016-04-08 17:26 UTC (permalink / raw)
  To: u-boot

Hi Marek,

On Fri, 2016-04-08 at 19:23 +0200, Marek Vasut wrote:
> On 04/08/2016 07:08 PM, Alexey Brodkin wrote:
> > 
> > Hi Marek,
> > 
> > On Fri, 2016-04-08 at 19:05 +0200, Marek Vasut wrote:
> > > 
> > > On 04/08/2016 07:00 PM, Alexey Brodkin wrote:
> > > > 
> > > > 
> > > > Commit cf7c93cdd755 "usb: ehci: Implement V2P mapping"
> > > > introduced usage of virt_to_phys() in ehci-hcd.
> > > > 
> > > > Since there was no implementation of virt_to_phys() for ARC
> > > > compilation of the ehci-generic driver failed.
> > > > 
> > > > This change adds virt_to_phys() stub for ARC so now
> > > > USB driver for AXS101 board could be built again.
> > > > 
> > > > Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> > > > Cc: Marek Vasut <marex@denx.de>
> > > > Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> > > > Cc: Hans de Goede <hdegoede@redhat.com>
> > > > ---
> > > > ?arch/arc/include/asm/io.h | 5 +++++
> > > > ?1 file changed, 5 insertions(+)
> > > > 
> > > > diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h
> > > > index 281682c..b6f7724 100644
> > > > --- a/arch/arc/include/asm/io.h
> > > > +++ b/arch/arc/include/asm/io.h
> > > > @@ -239,4 +239,9 @@ static inline int __raw_writesl(unsigned int addr, void *data, int longlen)
> > > > ?#define setbits_8(addr, set) setbits(8, addr, set)
> > > > ?#define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
> > > > ?
> > > > +static inline phys_addr_t virt_to_phys(void *vaddr)
> > > > +{
> > > > +	return (phys_addr_t)((unsigned long)vaddr);
> > > > +}
> > > > +
> > > > ?#endif	/* __ASM_ARC_IO_H */
> > > > 
> > > Sorry for breaking your arch.
> > That happens. No problem.
> > Real problem though is we still don't have autobuilder that
> > catches these kinds of trivial flaws.
> Synopsys can sponsor one , anytime ;-)

Ok I'll discuss this with my manager :)

> > I don't build for all arches as well before submitting patches so
> > before autobuilder is there we'll see more issues of that kind :)
> buildman can help you here.

Oh cool... I didn't know about it. Do you really use it? (kidding)

For the record could you please ack this change so I may go forward
and apply it to my tree?

-Alexey

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

* [U-Boot] [PATCH] arc: Add virt_to_phys() stub
  2016-04-08 17:00 [U-Boot] [PATCH] arc: Add virt_to_phys() stub Alexey Brodkin
  2016-04-08 17:05 ` Marek Vasut
@ 2016-04-08 17:27 ` Marek Vasut
  2016-04-11 17:25   ` Alexey Brodkin
  1 sibling, 1 reply; 7+ messages in thread
From: Marek Vasut @ 2016-04-08 17:27 UTC (permalink / raw)
  To: u-boot

On 04/08/2016 07:00 PM, Alexey Brodkin wrote:
> Commit cf7c93cdd755 "usb: ehci: Implement V2P mapping"
> introduced usage of virt_to_phys() in ehci-hcd.
> 
> Since there was no implementation of virt_to_phys() for ARC
> compilation of the ehci-generic driver failed.
> 
> This change adds virt_to_phys() stub for ARC so now
> USB driver for AXS101 board could be built again.
> 
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> Cc: Hans de Goede <hdegoede@redhat.com>
> ---
>  arch/arc/include/asm/io.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h
> index 281682c..b6f7724 100644
> --- a/arch/arc/include/asm/io.h
> +++ b/arch/arc/include/asm/io.h
> @@ -239,4 +239,9 @@ static inline int __raw_writesl(unsigned int addr, void *data, int longlen)
>  #define setbits_8(addr, set) setbits(8, addr, set)
>  #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
>  
> +static inline phys_addr_t virt_to_phys(void *vaddr)
> +{
> +	return (phys_addr_t)((unsigned long)vaddr);
> +}
> +
>  #endif	/* __ASM_ARC_IO_H */

Acked-by: Marek Vasut <marex@denx.de>

-- 
Best regards,
Marek Vasut

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

* [U-Boot] [PATCH] arc: Add virt_to_phys() stub
  2016-04-08 17:27 ` Marek Vasut
@ 2016-04-11 17:25   ` Alexey Brodkin
  0 siblings, 0 replies; 7+ messages in thread
From: Alexey Brodkin @ 2016-04-11 17:25 UTC (permalink / raw)
  To: u-boot

Hi,

On Fri, 2016-04-08 at 19:27 +0200, Marek Vasut wrote:
> On 04/08/2016 07:00 PM, Alexey Brodkin wrote:
> > 
> > Commit cf7c93cdd755 "usb: ehci: Implement V2P mapping"
> > introduced usage of virt_to_phys() in ehci-hcd.
> > 
> > Since there was no implementation of virt_to_phys() for ARC
> > compilation of the ehci-generic driver failed.
> > 
> > This change adds virt_to_phys() stub for ARC so now
> > USB driver for AXS101 board could be built again.
> > 
> > Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> > Cc: Marek Vasut <marex@denx.de>
> > Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> > Cc: Hans de Goede <hdegoede@redhat.com>

Applied to u-boot-arc, thanks.

-Alexey

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

end of thread, other threads:[~2016-04-11 17:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-08 17:00 [U-Boot] [PATCH] arc: Add virt_to_phys() stub Alexey Brodkin
2016-04-08 17:05 ` Marek Vasut
2016-04-08 17:08   ` Alexey Brodkin
2016-04-08 17:23     ` Marek Vasut
2016-04-08 17:26       ` Alexey Brodkin
2016-04-08 17:27 ` Marek Vasut
2016-04-11 17:25   ` Alexey Brodkin

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