Re: [PATCH v2 09/13] mci: Add sunxi-mmc driver

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

 



On Thu, Jun 01, 2023 at 08:15:43AM +0200, Jules Maselbas wrote:
> On Tue, May 30, 2023 at 10:14:20AM +0200, Sascha Hauer wrote:
> > +#ifdef __PBL__
> > > +#if 0 /* TODO: test this */
> > > +#include <asm/system.h>
> > > +/* TODO: test this ! */
> > > +#define get_time_ns()		get_cntpct()
> > > +#define is_timeout(s, t)	(s + (t * get_cntfrq() / 1000000) < get_cntpct()
> > 
> > You could base your timeout loop on udelay which is available for
> > Aarch64 PBL
> Can I make a version of is_timeout for aarch64 PBl ? instead of doing a hack in
> the mmc driver ?

Sure, even better.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux