From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from buildserver.ru.mvista.com (unknown [85.21.88.6]) by ozlabs.org (Postfix) with ESMTP id 2DBCEDDEDE for ; Thu, 17 May 2007 03:01:18 +1000 (EST) Received: from [192.168.12.21] (unknown [10.149.0.1]) by buildserver.ru.mvista.com (Postfix) with ESMTP id 7DCA08815 for ; Wed, 16 May 2007 22:01:15 +0500 (SAMST) Message-ID: <464B38A9.9000402@ru.mvista.com> Date: Wed, 16 May 2007 21:00:25 +0400 From: Valentine Barshak MIME-Version: 1.0 To: linuxppc-dev@ozlabs.org Subject: Re: New version of the device tree aware EMAC driver References: <20070516032630.GC19127@localhost.localdomain> In-Reply-To: <20070516032630.GC19127@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , David Gibson wrote: > I've made a few more tiny tweaks to BenH's rewritten device-tree based > 4xx EMAC driver. The main change is that it now no longer requires > 'device_type', just 'compatible' to be set in the ZMII and MAL device > nodes when probing. This works better with current thinking on > flattened device trees which discourages creating new device_type > values unless there is a clear use for a new device class binding. > > The patch can be obtained from: > > http://ozlabs.org/~dgibson/home/emac/powerpc-emac-new-20070516.patch > > In __emac_mdio_read and __emac_mdio_write functions: + if (!emac_has_feature(dev, EMAC_FTR_STACR_OC_INVERT)) + r |= EMAC_STACR_OC; should be + if (emac_has_feature(dev, EMAC_FTR_STACR_OC_INVERT)) + r |= EMAC_STACR_OC; Thanks.