Re: [RESEND v2 06/11] usb:hsotg:samsung: Extract core initialization function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 21 Mar 2012 14:59:47 +0200
Felipe Balbi <balbi@xxxxxx> wrote:

Hi Felipe,


> > +	/* we must now enable ep0 ready for host detection and then
> > +	 * set configuration. */  
> 
> comment style

I've sticked to the whole file comment style :-).

Version 3 of this patch series will provide new, correct comment style.

Moreover the extra patch changing all other comments to new style will
be provided.


> > +	/* set the PLL on, remove the HNP/SRP and set the PHY */
> > +	writel(S3C_GUSBCFG_PHYIf16 | S3C_GUSBCFG_TOutCal(7) |
> > +	       (0x5 << 10), hsotg->regs + S3C_GUSBCFG);  
> 
> looks like this should be moved to a PHY driver.

For me it looks like internal part of the DWC2 core, not usb PHY part.
I think GUSBCFG register access shall be not moved.  

> > +	/* looks like soft-reset changes state of FIFOs */
> > +	s3c_hsotg_init_fifo(hsotg);  
> 
> some errata ?

Nope, the comment is misleading - fifo initialization is needed in this
point.

> > +	writel(S3C_GINTSTS_DisconnInt | S3C_GINTSTS_SessReqInt |
> > +	       S3C_GINTSTS_ConIDStsChng | S3C_GINTSTS_USBRst |
> > +	       S3C_GINTSTS_EnumDone | S3C_GINTSTS_OTGInt |
> > +	       S3C_GINTSTS_USBSusp | S3C_GINTSTS_WkUpInt |
> > +	       S3C_GINTSTS_GOUTNakEff | S3C_GINTSTS_GINNakEff |
> > +	       S3C_GINTSTS_ErlySusp,
> > +	       hsotg->regs + S3C_GINTMSK);  
> 
> I would like to see the CaMeLcAsInG getting fixed up at some point too
> ;-)
 Will do ;-)



-- 
Best regards,

Lukasz Majewski

Samsung Poland R&D Center
Platform Group
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux