Re: [7/8,RFC] CAIF Protocol Stack

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stefano Babic
Date: Monday, October 5, 2009 - 9:22 am

sjur.brandeland@stericsson.com wrote:

Hi Sjur,


It seems that this command requires additional parameters as PRIO and
PHYPREF, else a "parse error" is reported by the tool.


Is this one an internal document or was it published and is available
for reading ?


Is phyif_msl.ko obsolete ? There is no track of the corresponding source
file.


I wanted to test your patches and I tried to follow your description,
but I have some problems to connect the tty-layer with the physical uart
linux driver.
I use a different architecture - ARM (ARM9) based and I applied your
patches on a 2.6.29 kernel. I agree, I should apply them on the top of
2.6.31 as you tested, but it seems I have a configuration problem not
related to the kernel version.
I can see that CAIF wants to try to enumerate the devices
(cfctrl_enum_req is called) and then the phyif_ser module is called
(ser_phy_tx, as supposed). But then the systems hangs in the write loop
and the uart transmit function of the linux serial driver is never called.

To setup the system, if I really understood well, I followed the steps:

$ modprobe caif
$ modprobe phyif_ser
$ echo 6 > /sys/class/caif/dbg_lvl
$ ./ldiscd
caifdev_phy_register: phy:bf00fb68 id:1
caifdev_phy_register: bf00fb68 ID 1 == 1
$ modprobe chnl_chr
<caif_chrinit_module:1142, TRACE>
Compiled:Oct  5 2009:14:08:17
-bash-3.2# ./chardevconfig /dev/caifconfig -
CREATE TYPE=AT NAME=chnlat10 DEVTYPE=CHAR PHYPREF=LAT PRIO=HI
caifdev_open: Entered
caifdev_ioctl: Entered
<print_device_list:664, TRACE> List of devices:
<print_device_list:674, TRACE> list is empty
<chrdev_create:1005, TRACE> [chrdev_create:1005] dev=c3ab4800
<chrdev_create:1051, TRACE> [chrdev_create:1051] pktf=c3ab495c
<chrdev_create:1053, TRACE> [chrdev_create:1053] cfpkt_create_xmit=bf005bf4
<chrdev_create:1061, TRACE> dev: Registered dev with name=chnlat10
minor=52, dev=c3a65180
<print_device_list:664, TRACE> List of devices:
<print_device_list:670, TRACE> i = 0, minor= 52, name = chnlat10, open = 0
caifdev_release: Entered
Create device: name = chnlat10, major = 10, minor = 52

So it seems the device is correctly created.

Then I tried:
 echo -e "AT\r\n" > /dev/chnlat10
<print_device_list:664, TRACE> List of devices:
<print_device_list:670, TRACE> i = 0, minor= 52, name = chnlat10, open = 0
<find_device:627, TRACE> [find_device:627] start looping
<find_device:632, TRACE> [find_device:632] check 52,52, chnlat10, <NULL>
<find_device:646, TRACE> [find_device:646] match 52, <NULL>
<caif_chropen:721, TRACE> [caif_chropen:721] dev=c3ab4800

and the system hangs. I could find after some instrumentation that the
system hangs in the ser_phy_tx function. This is not a surprise, because
the Uart TX function is never called. Have I missed something ?

Best regards,
Stefano Babic

-- 
stefano <stefano.babic@babic.homelinux.org>
GPG Key: 0x55814DDE
Fingerprint 4E85 2A66 4CBA 497A 2A7B D3BF 5973 F216 5581 4DDE
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 7/8] [RFC] CAIF Protocol Stack, sjur.brandeland, (Wed Sep 23, 10:31 am)
Re: [7/8,RFC] CAIF Protocol Stack, Stefano Babic, (Mon Oct 5, 9:22 am)
RE: [7/8,RFC] CAIF Protocol Stack, =?iso-8859-1?Q?Sjur_ ..., (Tue Oct 6, 12:41 pm)
Re: [7/8,RFC] CAIF Protocol Stack, Stefano Babic, (Thu Oct 8, 2:48 am)
Re: [7/8,RFC] CAIF Protocol Stack, Stefano Babic, (Thu Oct 8, 7:03 am)
RE: [7/8,RFC] CAIF Protocol Stack, =?iso-8859-1?Q?Sjur_ ..., (Fri Oct 9, 5:37 am)
Re: [7/8,RFC] CAIF Protocol Stack, Stefano Babic, (Sat Oct 10, 9:09 am)