From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4C36FD74.9020602@domain.hid> Date: Fri, 09 Jul 2010 12:44:04 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] IXXAT SJA_MOD register refuses to set up dual channel cards List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Soetens Cc: xenomai-help Hi Peter, On 07/09/2010 12:26 PM, Peter Soetens wrote: > Hi, > > (Xenomai 2.5.2&2.5.3) > > I'm testing the rtcan ixxat driver for a dual channel card (PLX > Technology, Inc. Device 2540) > > It recognizes the first channel, but refuses to setup the second one > because the SJA_MOD flag is 0x7f instead of 0x21 > The SJA_IR and SJA_SR flags read as are what the driver expects. In the Socket-CAN "plx_pci" driver we mask the value with 0xa1: 0x7f & 0xa1 = 0x21 ==> OK. See http://lxr.linux.no/#linux+v2.6.34.1/drivers/net/can/sja1000/plx_pci.c#L223 > Any suggestions on what it means and how to fix this ? See above. A patch would be nice. Wolfgang.