Re: about sc16is7x2 drivier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Kathy,

this problem has been reported several times now. I'm still not sure
where the error is located. Please CC your mail related to sc16is7x2
also to the serial and spi kernel mailing lists.

Regards,
Manuel Stahl

On 13.12.2010 06:43, changgx wrote:
>     hello,manuel.stahl:
> 
>     excuse me!!
> 
>     I found the sc16is7x2.c driver provided by you on the internet the
>     other day. And I explante it to my board.
> 
>     My develop environment is about :CPU for AT91SAM9260 and kennel for
>     linux-2.6.27.
> 
>     But I found some questions in debugging.
> 
>     In the function of sc16is7x2_startup( ), i add the sentence to read
>     register value after sc16is7x2_spi_async(ts->spi, cmds, 8) sentence
>     and i find that the return value is always 0xff.
> 
>     for example:
> 
>     int uier1,uier2;
> 
>     uier1 = sc16is7x2_read(ts->spi, UART_IER,ch);
>     SC16_PRINTK("+++++++++++++++++++++> %s :%d UART_IER = %x
>     \n",__func__,__LINE__,uier1);
>     uier2 = sc16is7x2_read(ts->spi, UART_IER,ch);
>     SC16_PRINTK("+++++++++++++++++++++> %s :%d UART_IER = %x
>     \n",__func__,__LINE__,uier2);
> 
>     the print result:
> 
>     +++++++++++++++++++++> sc16is7x2_startup : 512 UART_IER = ff
>     +++++++++++++++++++++> sc16is7x2_startup : 515 UART_IER = 0
> 
>     The results is that the first time is 0xff, the secend is 0.
> 
>     And it is same to read other register.
> 
>     please give me some advice for this question.
> 
>     ps: thank you very much for your open souce and look forward to your
>     email.
> 
>     thanks!
> 
>     kathy chang
> 
>     2010-12-13
> 
>     ------------------------------------------------
> 
>     Email:changgx@xxxxxxx <mailto:changgx@xxxxxxx>
> 
>     ------------------------------------------------
> 
> 
> 
> = = = = = = = = = = = = = = = = = = = =
>         致
> 礼!
> changgx
> changgx@xxxxxxx <mailto:changgx@xxxxxxx>
> 2010-12-13
>               


-- 
Manuel Stahl
Fraunhofer-Institut IIS
Leistungsoptimierte Systeme

Nordostpark 93
D90411 Nürnberg
Telefon  +49 (0)911/58061-6419
Fax      +49 (0)911/58061-6398
E-Mail   manuel.stahl@xxxxxxxxxxxxxxxxx

http://www.iis.fraunhofer.de
http://www.smart-power.fraunhofer.de
begin:vcard
fn:Manuel Stahl
n:Stahl;Manuel
email;internet:manuel.stahl@xxxxxxxxxxxxxxxxx
tel;work:+49 911 58061-6419
x-mozilla-html:FALSE
version:2.1
end:vcard


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux