lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 21 Dec 2011 05:56:24 +0000
From:	"Manjunathappa, Prakash" <prakash.pm@...com>
To:	Sergei Shtylyov <sshtylyov@...sta.com>,
	"Gupta, Ajay Kumar" <ajay.gupta@...com>
CC:	"davinci-linux-open-source@...ux.davincidsp.com" 
	<davinci-linux-open-source@...ux.davincidsp.com>,
	"linux@....linux.org.uk" <linux@....linux.org.uk>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-arm-kernel@...ts.infradead.org" 
	<linux-arm-kernel@...ts.infradead.org>
Subject: RE: [PATCH] davinci: DA850 EVM: OHCI platform code

Hi Sergei,

On Tue, Dec 20, 2011 at 16:47:22, Sergei Shtylyov wrote:
> Hello.
> 
> On 20-12-2011 10:36, Manjunathappa, Prakash wrote:
> 
> > From: Ajay Kumar Gupta<ajay.gupta@...com>
> 
> > On this board the OHCI port's power control and over-current signals from
> > TPS2065 power switch are connected via GPIO1[15] and GPIO2[1] respectively,
> > so we can implement the DA8xx OHCI glue layer's hooks for overriding the
> > root hub port's power and over-current status bits.
> 
> > We also have to properly set up the clocking mode in the CFGCHIP2 register,
> > so that internal 24 MHz reference clock is fed to the USB 2.0 (MUSB) PHY and
> > its output is used to clock the USB 1.1 (OHCI) PHY...
> 
> > Signed-off-by: Ajay Kumar Gupta <ajay.gupta@...com>
> 
>     BTW, Prakash, as you'r on the patch's disrtibution path, shouldn't you add 
> your signoff as well?
> 

Yes, I will make it point to keep my signoff as well while distributing.

> > ---
> >   arch/arm/mach-davinci/board-da850-evm.c |  126 +++++++++++++++++++++++++++++++
> >   1 files changed, 126 insertions(+), 0 deletions(-)
> 
> > diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c
> > index 6659a90..df74ba5 100644
> > --- a/arch/arm/mach-davinci/board-da850-evm.c
> > +++ b/arch/arm/mach-davinci/board-da850-evm.c
> [...]
> > +static __init void da850_evm_usb_init(void)
> > +{
> [...]
> > +	ret = gpio_request(ON_BD_USB_DRV, "ON_BD_USB_DRV");
> > +	if (ret) {
> > +		printk(KERN_ERR "%s: failed to request GPIO for USB 1.1 port "
> > +		       "power control: %d\n", __func__, ret);
> > +		return;
> > +	}
> > +	gpio_direction_output(ON_BD_USB_DRV, 0);
> 
>     You should also use gpio_request_one() instead 
> gpio_request()/gpio_direction_output() pair.
> 

Agreed, I will use gpio_request_one().

> > +
> > +	ret = gpio_request(ON_BD_USB_OVC, "ON_BD_USB_OVC");
> > +	if (ret) {
> > +		printk(KERN_ERR "%s: failed to request GPIO for USB 1.1 port "
> > +		       "over-current indicator: %d\n", __func__, ret);
> > +		return;
> > +	}
> > +	gpio_direction_input(ON_BD_USB_OVC);
> 
>     Same here.
> 

Agreed.

Thanks,
Prakash

> WBR, Sergei
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ