From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 8A635DDE9F for ; Sat, 14 Apr 2007 04:45:25 +1000 (EST) In-Reply-To: <1176431001.5764.51.camel@localhost.localdomain> References: <91308d2b933e4fe8a9618aef8748b878@bga.com> <1176431001.5764.51.camel@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: From: Segher Boessenkool Subject: Re: Re: Date: Fri, 13 Apr 2007 20:45:17 +0200 To: Benjamin Herrenschmidt Cc: ppcdev , Olaf Hering , Alan Cox , Milton Miller List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> + if (cb & 0x5) { /* if controller is configured for >> pci-native mode for both channels */ >> >> The above expression allows 1, 4, or 5 for the masked bits. I'm >> guessing you >> wanted to test that equal to either 5 or 0. > > I think the proper test is ((cb & 5) == 5) but I can't remember for > sure.. That is correct if you know for sure the controller actually supports native mode, and doesn't have that support turned off by some configuration setting; otherwise, the test should be ((cb & 0xf) == 0xf). Segher