LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Gérard Guével" <gguevel@interfaceconcept.com>
To: <linuxppc-embedded@lists.linuxppc.org>
Subject: MPC8260 HDLC RX length errors
Date: Fri, 19 Mar 2004 19:32:50 +0100	[thread overview]
Message-ID: <000c01c40de0$99954af0$5201a8c0@GEG2400> (raw)
In-Reply-To: <000101c3aaae$e61e4240$5201a8c0@GEG2400>


Hi,

I work on a custom 8260 board and a 2.4.18 Kernel
with an HDLC driver on SCCs ports.

I want to limit the frame length to 1501,
so I use the mflr register :

volatile scc_hdlc_t *hp     = (scc_hdlc_t *)chan->mem_start;
...
/* set the MTU */
hp->mflr = chan->conf.hdlc_hdl_conf.hdlc_mtu;
...

The driver works fine with all frames lower than 1501.

When the CPM receives a frame of 1502 characters, it
closes the buffer descriptor with a BD_HDLC_RX_LG error.
That's right but all the following frames with a right
length (< 1501) are rejected with the same BD_HDLC_RX_LG error.

The BD flags are correctly erased after each error
and new buffers are provided to the CPM.

The problem is not bound to the frame rate.

Any idea

Thanks
Gérard Guével


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

      parent reply	other threads:[~2004-03-19 18:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-14 12:57 File system boot strategy Gérard Guével
2003-11-14 13:40 ` Gary Thomas
2004-03-19 18:32 ` Gérard Guével [this message]

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='000c01c40de0$99954af0$5201a8c0@GEG2400' \
    --to=gguevel@interfaceconcept.com \
    --cc=linuxppc-embedded@lists.linuxppc.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