From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936591AbYEBWJ2 (ORCPT ); Fri, 2 May 2008 18:09:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757283AbYEBWJQ (ORCPT ); Fri, 2 May 2008 18:09:16 -0400 Received: from khc.piap.pl ([195.187.100.11]:36586 "EHLO khc.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757175AbYEBWJP (ORCPT ); Fri, 2 May 2008 18:09:15 -0400 To: Jeff Garzik Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] Driver for IXP4xx built-in Ethernet ports References: <4816B99F.7040102@garzik.org> From: Krzysztof Halasa Date: Sat, 03 May 2008 00:09:12 +0200 In-Reply-To: <4816B99F.7040102@garzik.org> (Jeff Garzik's message of "Tue\, 29 Apr 2008 02\:01\:03 -0400") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jeff Garzik writes: > the ifdefs are really ugly and want cleaning, but the rest seems > sane. applied Thanks. They (#ifdef __ARMEB__) are indeed very ugly but I don't know how to clean them, except by splitting the driver into two (which is worse). The most used things are #defined and then used without those __ARMEB__ checks. Duplicating those functions is effectively splitting into two :-( Well, perhaps Intel could give us firmware which could convert LE-BE on the fly while TX/RX, that would make the LE code go away. Binary-only :-( OTOH I could convert #if* DEBUG_*, I will look at it. -- Krzysztof Halasa