linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] introducing internal_phy_reset()
@ 2010-07-16 10:30 David Lanzendörfer
  2010-07-22 20:28 ` Daniel Walker
  0 siblings, 1 reply; 3+ messages in thread
From: David Lanzendörfer @ 2010-07-16 10:30 UTC (permalink / raw)
  To: linux-arm-msm

Hi, the following function should work for hsusb.
I only need to know now, where it should be added to platform data exactly.
Best regards
	leviathan
---
 arch/arm/mach-msm/board-trout.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c
index bc0afa4..59d7640 100644
--- a/arch/arm/mach-msm/board-trout.c
+++ b/arch/arm/mach-msm/board-trout.c
@@ -29,6 +29,7 @@
 
 #include "devices.h"
 #include "board-trout.h"
+#include "proc_comm.h"
 
 extern int trout_init_mmc(unsigned int);
 
@@ -63,6 +64,11 @@ static void __init trout_init_irq(void)
 	msm_init_irq();
 }
 
+static void internal_phy_reset(void)
+{
+	msm_proc_comm(PCOM_MSM_HSUSB_PHY_RESET,NULL,NULL);
+}
+
 static void __init trout_fixup(struct machine_desc *desc, struct tag *tags,
 				char **cmdline, struct meminfo *mi)
 {
-- 
1.6.4.4


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

* Re: [PATCH] introducing internal_phy_reset()
  2010-07-16 10:30 [PATCH] introducing internal_phy_reset() David Lanzendörfer
@ 2010-07-22 20:28 ` Daniel Walker
  2010-07-22 23:16   ` Timothy Meade
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Walker @ 2010-07-22 20:28 UTC (permalink / raw)
  To: David Lanzendörfer; +Cc: linux-arm-msm

On Fri, 2010-07-16 at 12:30 +0200, David Lanzendörfer wrote:
> Hi, the following function should work for hsusb.
> I only need to know now, where it should be added to platform data exactly.
> Best regards
> 	leviathan
> ---
>  arch/arm/mach-msm/board-trout.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c
> index bc0afa4..59d7640 100644
> --- a/arch/arm/mach-msm/board-trout.c
> +++ b/arch/arm/mach-msm/board-trout.c
> @@ -29,6 +29,7 @@
>  
>  #include "devices.h"
>  #include "board-trout.h"
> +#include "proc_comm.h"
>  
>  extern int trout_init_mmc(unsigned int);
>  
> @@ -63,6 +64,11 @@ static void __init trout_init_irq(void)
>  	msm_init_irq();
>  }
>  
> +static void internal_phy_reset(void)
> +{
> +	msm_proc_comm(PCOM_MSM_HSUSB_PHY_RESET,NULL,NULL);
> +}

I think it's a good topic to discuss .. We could put the proc_comm
function into a header under mach-msm/include/mach/ then you can
includes that header into a driver like this,

#include <mach/mmc.h>

please be sure to look at how other drivers are doing this for hints on
how to move forward.

Daniel

-- 
Sent by an consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.


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

* Re: [PATCH] introducing internal_phy_reset()
  2010-07-22 20:28 ` Daniel Walker
@ 2010-07-22 23:16   ` Timothy Meade
  0 siblings, 0 replies; 3+ messages in thread
From: Timothy Meade @ 2010-07-22 23:16 UTC (permalink / raw)
  To: Daniel Walker; +Cc: David Lanzendörfer, linux-arm-msm

On Thu, Jul 22, 2010 at 4:28 PM, Daniel Walker <dwalker@codeaurora.org> wrote:
> On Fri, 2010-07-16 at 12:30 +0200, David Lanzendörfer wrote:
>> Hi, the following function should work for hsusb.
>> I only need to know now, where it should be added to platform data exactly.
>> Best regards
>>       leviathan
>> ---
>>  arch/arm/mach-msm/board-trout.c |    6 ++++++
>>  1 files changed, 6 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c
>> index bc0afa4..59d7640 100644
>> --- a/arch/arm/mach-msm/board-trout.c
>> +++ b/arch/arm/mach-msm/board-trout.c
>> @@ -29,6 +29,7 @@
>>
>>  #include "devices.h"
>>  #include "board-trout.h"
>> +#include "proc_comm.h"
>>
>>  extern int trout_init_mmc(unsigned int);
>>
>> @@ -63,6 +64,11 @@ static void __init trout_init_irq(void)
>>       msm_init_irq();
>>  }
>>
>> +static void internal_phy_reset(void)
>> +{
>> +     msm_proc_comm(PCOM_MSM_HSUSB_PHY_RESET,NULL,NULL);
>> +}
>
> I think it's a good topic to discuss .. We could put the proc_comm
> function into a header under mach-msm/include/mach/ then you can
> includes that header into a driver like this,
>
> #include <mach/mmc.h>
>
> please be sure to look at how other drivers are doing this for hints on
> how to move forward.
>
> Daniel
>

Is there some reason not to use a full transceiver PHY driver like PXA
does? The proc_comm calls are board/amss specific, assuming you are
exporting a function from the board you break multidevice kernels.

include/linux/usb/otg.h:extern struct otg_transceiver
*otg_get_transceiver(void);

Also, there is some hacked up code floating around to enable switch
the usb device from client to host? Is there a better and more sane
way to do this that fits in better with upstream?

Thanks,
Timothy Meade
tmzt #htc-linux (facebook.com/HTCLinux)

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

end of thread, other threads:[~2010-07-22 23:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-16 10:30 [PATCH] introducing internal_phy_reset() David Lanzendörfer
2010-07-22 20:28 ` Daniel Walker
2010-07-22 23:16   ` Timothy Meade

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).