From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 3CF39DDF50 for ; Fri, 13 Apr 2007 12:23:40 +1000 (EST) Subject: Re: From: Benjamin Herrenschmidt To: Milton Miller In-Reply-To: <91308d2b933e4fe8a9618aef8748b878@bga.com> References: <91308d2b933e4fe8a9618aef8748b878@bga.com> Content-Type: text/plain Date: Fri, 13 Apr 2007 12:23:21 +1000 Message-Id: <1176431001.5764.51.camel@localhost.localdomain> Mime-Version: 1.0 Cc: Olaf Hering , Alan Cox , ppcdev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2007-04-12 at 10:44 -0500, Milton Miller wrote: > Matt sealey wrote: > > + 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.. Ben.