Re: [PATCH v3 2/5] HCD files for the DWC2 driver

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

 



Hi,

On Tue, Feb 12, 2013 at 12:01:47AM +0000, Paul Zimmerman wrote:
> > From: Felipe Balbi [mailto:balbi@xxxxxx]
> > Sent: Monday, February 11, 2013 5:53 AM
> > 
> > On Sat, Feb 09, 2013 at 07:37:49PM -0800, Paul Zimmerman wrote:
> > > +void dwc2_hcd_start(struct dwc2_hcd *hcd)
> > > +{
> > > +	u32 hprt0;
> > > +
> > > +	if (hcd->op_state == B_HOST) {
> > > +		/*
> > > +		 * Reset the port. During a HNP mode switch the reset
> > > +		 * needs to occur within 1ms and have a duration of at
> > > +		 * least 50ms.
> > > +		 */
> > > +		hprt0 = dwc2_read_hprt0(hcd);
> > > +		hprt0 |= HPRT0_RST;
> > > +		writel(hprt0, hcd->regs + HPRT0);
> > > +	}
> > > +
> > > +	queue_delayed_work(hcd->wq_otg, &hcd->start_work, msecs_to_jiffies(50));
> > 
> > we _do_ have a generic asychronous function call in the kernel for
> > driver initialization, can you use that instead ?
> 
> Sorry, I guess you need to use a bigger cluebat here. Which function are
> you referring to?

I mean to substitute the delayed work. Take a look at <linux/async.h>

-- 
balbi

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux