From: Alan Cox <alan@redhat.com>
To: linux-ppp@vger.kernel.org
Subject: Re: possible bug on ppp_async
Date: Mon, 09 Jun 2008 21:03:11 +0000 [thread overview]
Message-ID: <20080609210311.GC4009@devserv.devel.redhat.com> (raw)
In-Reply-To: <6b53b1990806091123l74a06bebu34160ad08366d1a8@mail.gmail.com>
On Mon, Jun 09, 2008 at 03:23:33PM -0300, Gustavo Fernando Padovan wrote:
> The problem occurs when the execution enters on switch's default case
> and call tty_mode_ioctl() and the cmd is not TCGETS or cmd is not
> TCGETA. I don't know why this happens, but happens. On kernel 2.6.23
Which ioctl is making it go silly ?
> tty_mode_ioctl(). This is the unique real change between the two
> versions, the others are only code restructuring. Then I made this
> patch to revert part of changes and make modem works again. I don't
> know if this is correct. I just put the modem to work.
It's very useful as we now know what change has had the effect, but not
what your pppd is doing which is breaking it (and thus where the real bug
may lie)
> --- a/drivers/net/ppp_async.c. 2008-06-09 13:12:25.000000000 -0300
> +++ b/drivers/net/ppp_async.c 2008-06-09 13:15:57.000000000 -0300
> @@ -309,6 +309,11 @@
> err = 0;
> break;
>
> + case TCGETS:
> + case TCGETA:
> + err = tty_mode_ioctl(tty, file, cmd, arg);
> + break;
> +
> case TCFLSH:
> /* flush our buffers and the serial port's buffer */
> if (arg = TCIOFLUSH || arg = TCOFLUSH)
> @@ -324,8 +329,7 @@
> break;
>
> default:
> - /* Try the various mode ioctls */
> - err = tty_mode_ioctl(tty, file, cmd, arg);
> + err = -ENOIOCTLCMD;
Can you add a printk to log which ioctl calls end up here and what they
return (both with/without the patch). That should give the needed info to
identify what is being done and returned which then breaks it.
From that I can work out what is going on and what the right fix may be.
Alan
next prev parent reply other threads:[~2008-06-09 21:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-09 18:23 possible bug on ppp_async Gustavo Fernando Padovan
2008-06-09 18:52 ` Charlie Brady
2008-06-09 19:06 ` Gustavo Fernando Padovan
2008-06-09 21:03 ` Alan Cox [this message]
2008-06-11 20:55 ` Gustavo Fernando Padovan
2008-06-13 18:01 ` Gustavo Fernando Padovan
2008-06-13 18:19 ` Charlie Brady
2008-06-13 19:38 ` Alan Cox
2008-06-16 12:54 ` Gustavo Fernando Padovan
2008-06-16 17:09 ` Alan Cox
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=20080609210311.GC4009@devserv.devel.redhat.com \
--to=alan@redhat.com \
--cc=linux-ppp@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.