From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tobin C. Harding" Subject: Re: [RFC PATCH 2/3] arcnet: com20020: Fixup missing SLOWARB bit Date: Mon, 7 May 2018 12:55:56 +1000 Message-ID: <20180507025556.GG4197@eros> References: <20180505213754.8400-1-andrea.greco.gapmilano@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: m.grzeschik@pengutronix.de, Andrea Greco , netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Andrea Greco Return-path: Received: from out3-smtp.messagingengine.com ([66.111.4.27]:55129 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852AbeEGC4A (ORCPT ); Sun, 6 May 2018 22:56:00 -0400 Content-Disposition: inline In-Reply-To: <20180505213754.8400-1-andrea.greco.gapmilano@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Sat, May 05, 2018 at 11:37:54PM +0200, Andrea Greco wrote: > From: Andrea Greco > > If com20020 clock is major of 40Mhz SLOWARB bit is requested. > > Signed-off-by: Andrea Greco > --- > drivers/net/arcnet/com20020.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/arcnet/com20020.c b/drivers/net/arcnet/com20020.c > index f09ea77dd6a8..abd32ed8ec9b 100644 > --- a/drivers/net/arcnet/com20020.c > +++ b/drivers/net/arcnet/com20020.c > @@ -102,6 +102,10 @@ int com20020_check(struct net_device *dev) > lp->setup = lp->clockm ? 0 : (lp->clockp << 1); > lp->setup2 = (lp->clockm << 4) | 8; > > + // If clock is major of 40Mhz, SLOWARB bit must be set /* C89 style comments please :) */ Hope this helps, Tobin.