aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio/mkiss.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/hamradio/mkiss.c')
-rw-r--r--drivers/net/hamradio/mkiss.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c
index 3e9accf137e7..dc5e9d59deed 100644
--- a/drivers/net/hamradio/mkiss.c
+++ b/drivers/net/hamradio/mkiss.c
@@ -515,6 +515,7 @@ static void ax_encaps(struct net_device *dev, unsigned char *icp, int len)
515 count = kiss_esc(p, (unsigned char *)ax->xbuff, len); 515 count = kiss_esc(p, (unsigned char *)ax->xbuff, len);
516 } 516 }
517 } 517 }
518 spin_unlock_bh(&ax->buflock);
518 519
519 set_bit(TTY_DO_WRITE_WAKEUP, &ax->tty->flags); 520 set_bit(TTY_DO_WRITE_WAKEUP, &ax->tty->flags);
520 actual = ax->tty->driver->write(ax->tty, ax->xbuff, count); 521 actual = ax->tty->driver->write(ax->tty, ax->xbuff, count);
@@ -752,6 +753,7 @@ static int mkiss_open(struct tty_struct *tty)
752 753
753 ax->tty = tty; 754 ax->tty = tty;
754 tty->disc_data = ax; 755 tty->disc_data = ax;
756 tty->receive_room = 65535;
755 757
756 if (tty->driver->flush_buffer) 758 if (tty->driver->flush_buffer)
757 tty->driver->flush_buffer(tty); 759 tty->driver->flush_buffer(tty);
@@ -939,11 +941,6 @@ static void mkiss_receive_buf(struct tty_struct *tty, const unsigned char *cp,
939 tty->driver->unthrottle(tty); 941 tty->driver->unthrottle(tty);
940} 942}
941 943
942static int mkiss_receive_room(struct tty_struct *tty)
943{
944 return 65536; /* We can handle an infinite amount of data. :-) */
945}
946
947/* 944/*
948 * Called by the driver when there's room for more data. If we have 945 * Called by the driver when there's room for more data. If we have
949 * more packets to send, we send them here. 946 * more packets to send, we send them here.
@@ -982,7 +979,6 @@ static struct tty_ldisc ax_ldisc = {
982 .close = mkiss_close, 979 .close = mkiss_close,
983 .ioctl = mkiss_ioctl, 980 .ioctl = mkiss_ioctl,
984 .receive_buf = mkiss_receive_buf, 981 .receive_buf = mkiss_receive_buf,
985 .receive_room = mkiss_receive_room,
986 .write_wakeup = mkiss_write_wakeup 982 .write_wakeup = mkiss_write_wakeup
987}; 983};
988 984