From: khc@pm.waw.pl (Krzysztof Halasa)
To: linux-arm-kernel@lists.infradead.org
Subject: IXP425: help on HSS channelized service
Date: Wed, 25 Nov 2009 01:07:15 +0100 [thread overview]
Message-ID: <m38wdvbh70.fsf@intrepid.localdomain> (raw)
In-Reply-To: <200911241622.43464.schindele@nentec.de> (Juergen Schindele's message of "Tue, 24 Nov 2009 17:22:43 +0200")
Juergen Schindele <schindele@nentec.de> writes:
> To receive correctly i had to modify the parameters
> in "hss_config_set_pcr" function. I compared to intel software stack
> for IXP425 which was already working for us.
>
> + msg.data32 = PCR_FRM_SYNC_ACTIVE_HIGH | PCR_MSB_ENDIAN |
> + PCR_TX_DATA_ENABLE | PCR_FCLK_EDGE_RISING | PCR_FRM_PULSE_DISABLED;
> ....
I'm currently using:
TX:
+ msg.data32 = PCR_DCLK_EDGE_RISING | PCR_FRM_SYNC_OUTPUT_RISING |
+ PCR_MSB_ENDIAN | PCR_TX_DATA_ENABLE | PCR_SOF_NO_FBIT;
RX:
+ msg.data32 &= ~(PCR_TX_DATA_ENABLE | PCR_DCLK_EDGE_RISING);
with possibility to change PCR_DCLK_EDGE_RISING in both directions
(reversing the clock edges used to send/sample data). The driver in the
official kernel has the edges reversed, it may be incompatible with
typical hardware (I'm going to fix it if my "test users" don't have
problems with it).
I don't use FRM sync signals, though. I think we should make it
configurable by the platform code somehow.
I've found that using PCR_FRM_PULSE_DISABLED creates a nasty problem -
packetized TX stops transmitting when it's brought up and down when
configured to use (IIRC) external clock, and without actual clock
available. I don't remember the exact details but it was something like
that. Perhaps I should try with Intel's settings once again to see if
the problems goes away. Theoretically it shouldn't matter since the
FRAME signal isn't used, but reality with HSS is a bit different -
especially when coupled with channelized traffic.
> Nevertheless i am receiving correct data but packet len is always zero!
> Have you already encountered this ???
Doesn't exactly look like using incorrect clock edge (though you may
want to check). Maybe inverted data signal?
You may also want to try the channelized mode and see what you're
getting in the buffers (hexdump /dev/hss*). The HDLC controller is not
used in channelized mode.
--
Krzysztof Halasa
next prev parent reply other threads:[~2009-11-25 0:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-24 13:29 IXP425: help on HSS channelized service Davide Di Gesualdo
2009-11-24 15:22 ` Juergen Schindele
2009-11-25 0:07 ` Krzysztof Halasa [this message]
2009-11-25 12:52 ` Davide Di Gesualdo
2009-11-24 23:45 ` Krzysztof Halasa
2009-11-26 14:43 ` Juergen Schindele
2009-11-26 14:49 ` Russell King - ARM Linux
2009-11-26 15:44 ` Juergen Schindele
2009-11-26 15:51 ` Russell King - ARM Linux
2009-11-26 19:03 ` Krzysztof Halasa
2009-11-26 19:39 ` Krzysztof Halasa
2009-11-27 8:21 ` Juergen Schindele
2009-11-27 23:55 ` Krzysztof Halasa
2009-11-30 8:18 ` Juergen Schindele
-- strict thread matches above, loose matches on Subject: below --
2009-11-25 13:34 Davide Di Gesualdo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m38wdvbh70.fsf@intrepid.localdomain \
--to=khc@pm.waw.pl \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).