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] [thread-next>] [day] [month] [year] [list]
Message-ID: <DF0F476B391FA8409C78302C7BA518B6053054@DBDE01.ent.ti.com>
Date:	Thu, 22 Dec 2011 12:27:16 +0000
From:	"Nori, Sekhar" <nsekhar@...com>
To:	Sergei Shtylyov <sshtylyov@...sta.com>,
	"Manjunathappa, Prakash" <prakash.pm@...com>
CC:	"davinci-linux-open-source@...ux.davincidsp.com" 
	<davinci-linux-open-source@...ux.davincidsp.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-arm-kernel@...ts.infradead.org" 
	<linux-arm-kernel@...ts.infradead.org>,
	"linux@....linux.org.uk" <linux@....linux.org.uk>,
	"Gupta, Ajay Kumar" <ajay.gupta@...com>
Subject: RE: [PATCH v2] davinci: DA850 EVM: OHCI platform code

On Wed, Dec 21, 2011 at 17:54:49, Sergei Shtylyov wrote:
> Hello.
> 
> On 21-12-2011 16:05, I wrote:
> 
> >> On Wed, Dec 21, 2011 at 12:50:02, 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 GPIO2[4] and GPIO6[13] 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>
> >>> Signed-off-by: Manjunathappa, Prakash<prakash.pm@...com>
> 
> >> This is the third copy of OHCI platform setup code which is almost
> >> the same except for the GPIO numbers.
> 
> > Well, in my counting, it's only second, DA830 EVM being the first one.
> > What's the third?
> 
>     Ah, I missed Hawkboard... :-)
> 
>  >    I designed the hub interface to be as abstract as I could, and now you're
>  > proposing to add GPIO to it? No, I have no clear idea how to keeep it
>  > abstract and add GPIO support at the same time. I would have been grateful to
>  > TI if I didn't have to invent this at all and they stop saving on OHCI pins.
> 
>     Well, I have one idea. We can create a separate module in 
> arch/arm/mach-davinci/, named say ohci.c, put the shared code there and pass 
> to it the GPIOs actually used via a function call. Or maybe use existing 
> arch/arm/mach-davinci/usb.c.

Thanks Sergei. I think using the existing usb.c would be a better idea.

Prakash,

Can you please go ahead with this approach and post updated patches.

Thanks,
Sekhar
--
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