From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F66FC433DF for ; Thu, 14 May 2020 14:22:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1D3292070A for ; Thu, 14 May 2020 14:22:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="tLcLf7sy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727827AbgENOWx (ORCPT ); Thu, 14 May 2020 10:22:53 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:60342 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbgENOWx (ORCPT ); Thu, 14 May 2020 10:22:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=iw7xPk5mHjedIW+MdeZHEhO6QWaPHxp9nZEO29+rOl0=; b=tLcLf7syCfJU0V+88jYPQ65lQ9 bxfnLVhL3a9oL89tZzFlHcc06sc4cByFjoPlq+0a5WYgzGcxGh7CPmcdx/h49YPPUX/N2QNumJksn EhoeiOUsKp11e8u9aUl98cJpm6oyAOLYAAEgRQNsWRBr69NflByorECzFbCWx2TMyrWs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jZEl5-002IDV-Fa; Thu, 14 May 2020 16:22:47 +0200 Date: Thu, 14 May 2020 16:22:47 +0200 From: Andrew Lunn To: Marek Vasut Cc: netdev@vger.kernel.org, "David S . Miller" , Lukas Wunner , Petr Stetiar , YueHaibing Subject: Re: [PATCH V5 18/19] net: ks8851: Implement Parallel bus operations Message-ID: <20200514142247.GR499265@lunn.ch> References: <20200514000747.159320-1-marex@denx.de> <20200514000747.159320-19-marex@denx.de> <20200514015753.GL527401@lunn.ch> <5dbab44d-de45-f8e2-b4e4-4be15408657e@denx.de> <20200514131527.GN527401@lunn.ch> <16f60604-f3e9-1391-ff47-37c40ab9c6f7@denx.de> <20200514140722.GQ499265@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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