[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200514142247.GR499265@lunn.ch>
Date: Thu, 14 May 2020 16:22:47 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Marek Vasut <marex@...x.de>
Cc: netdev@...r.kernel.org, "David S . Miller" <davem@...emloft.net>,
Lukas Wunner <lukas@...ner.de>, Petr Stetiar <ynezz@...e.cz>,
YueHaibing <yuehaibing@...wei.com>
Subject: Re: [PATCH V5 18/19] net: ks8851: Implement Parallel bus operations
On Thu, May 14, 2020 at 04:14:13PM +0200, Marek Vasut wrote:
> On 5/14/20 4:07 PM, Andrew Lunn wrote:
> >> All right
> >>
> >> btw is jiffies-based timeout OK? Like this:
> >
> > If you can, make use of include/linux/iopoll.h
>
> I can't, because I need those weird custom accessors, see
> ks8851_wrreg16_par(), unless I'm missing something there?
static int ks8851_rdreg16_par_txqcr(struct foo ks) {
return ks8851_rdreg16_par(ks, KS_TXQCR)
}
int txqcr;
err = readx_poll_timeout(ks8851_rdreg16_par_txqcr, txqcr,
txqcr & TXQCR_METFE, 10, 10, ks)
Andrew
Powered by blists - more mailing lists