From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753071Ab3AVGU3 (ORCPT ); Tue, 22 Jan 2013 01:20:29 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:25012 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752438Ab3AVGU1 (ORCPT ); Tue, 22 Jan 2013 01:20:27 -0500 Date: Tue, 22 Jan 2013 09:20:10 +0300 From: Dan Carpenter To: Mark Einon Cc: Greg KH , devel@driverdev.osuosl.org, sfr@canb.auug.org.au, davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC PATCH linux-next] et131x: Promote staging et131x driver to drivers/net Message-ID: <20130122062010.GA16282@mwanda> References: <1358541648-29922-1-git-send-email-mark.einon@gmail.com> <20130118225706.GA22140@kroah.com> <20130119110328.GO4584@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 21, 2013 at 11:44:55PM +0000, Mark Einon wrote: > On 19 January 2013 11:03, Dan Carpenter wrote: > > > > > et131x_get_regs() has endian bugs calling et131x_mii_read(). > > > > > Hi Dan, > > Could you be a bit more descriptive about the issues you think there > are with these calls? > Sorry, that was sloppy on my part. Here's what I meant: et131x_mii_read(adapter, MII_BMCR, (u16 *)®s_buff[num++]); That puts the number in the 2 high bits which works for little endian systems but not for big endian. It should be something like: u16 tmp; et131x_mii_read(adapter, MII_BMCR, &tmp); regs_buff[num++] = tmp; regards, dan carpenter