Return-Path: Received: from wolverine01.qualcomm.com ([199.106.114.254]:61000 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752352Ab0GVU3B (ORCPT ); Thu, 22 Jul 2010 16:29:01 -0400 Subject: Re: [PATCH] introducing internal_phy_reset() From: Daniel Walker In-Reply-To: <201007161230.54163.david.lanzendoerfer@o2s.ch> References: <201007161230.54163.david.lanzendoerfer@o2s.ch> Content-Type: text/plain; charset="UTF-8" Date: Thu, 22 Jul 2010 13:28:45 -0700 Message-ID: <1279830525.16850.26.camel@c-dwalke-linux.qualcomm.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-arm-msm-owner@vger.kernel.org List-ID: To: David =?ISO-8859-1?Q?Lanzend=F6rfer?= Cc: linux-arm-msm@vger.kernel.org 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 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.