23 Jul, 2008

1 commit

  • Some hardware needs to do break handling itself and may have partial
    support only. Make break_ctl return an error code. Add a tty driver flag
    so you can indicate driver hardware side break support.

    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     

21 Jul, 2008

2 commits


10 Jul, 2008

1 commit


30 Apr, 2008

23 commits

  • Simple search/replace except for synclink.c where I noticed a real bug and
    fixed it too. It was doing NULL + offset, then checking for NULL if the remap
    failed.

    Signed-off-by: Alan Cox
    Cc: Paul Fulghum
    Acked-by: Jiri Slaby
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • - Stop drivers calling their own flush method indirectly, it obfuscates code
    and it will change soon anyway

    - A few more lock_kernel paths temporarily needed in some driver internal
    waiting code

    - Remove private put_char method that does a write call for one char - we
    have that anyway

    - Most but not yet all of the termios copy under lock fixing (some has other
    dependencies to follow)

    - Note a few locking bugs in drivers found in the process

    - Kill remaining [ab]users of TIOCG/SSOFTCAR in the driver, these must go to
    fix the termios locking

    Signed-off-by: Alan Cox
    Cc: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Be more verbose on fw load fail as noted by Oyvind.

    Signed-off-by: Jiri Slaby
    Cc: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • - update version
    - update maintainers
    - copyright the stuff

    Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Drop a message to dmesg about card being ready.

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • It allows to simplify the code, especially MoxaPortSetBaud.

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • - moxa_flush_chars -- no code; ldics handle this well
    - moxa_put_char -- only wrapper to moxa_write (same code), tty does this
    the same way if tty->driver->put_char is NULL

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Cleanup of
    - whitespace
    - macros
    - useless casts
    - return (sth); -> return sth;
    - types
    - superfluous parenthesis and braces
    - init tmp directly in moxa_get_serial_info
    - commented defunct code
    - commented prototypes
    - MOXA/moxa printk case

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • - add locking to open/close/hangup and ioctl (tiocm)
    - add pci hot-un-plug support (hangup on board remove, wait for openers)
    - cleanup block_till_ready
    - move close code common to close/hangup into separate function to be
    able to call it from open when hangup occurs while block_till_ready
    - let ldisc flush on tty layer, it will do it after we return

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • - del timer after we are sure it won't be fired again
    - make timer scheduling atomic
    - don't reschedule timer when all cards have gone

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • - cleanup types
    - use tty_prepare_flip_string and io memcpys

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • - merge 2 timers into one -- one can handle the emptywait as good as the other
    - merge 2 separated poll functions into one, this allows handle the actions
    directly and simplifies the code

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • - allow stats only for sys_admin
    - move TCSBRK* processing to .break_ctl tty op
    - let TIOCGSOFTCAR and TIOCSSOFTCAR be processed by ldisc
    - remove MOXA_GET_MAJOR, MOXA_GET_CUMAJOR
    - fix jiffies subtraction by time_after
    - move moxa ioctl numbers into the header; still not exported to userspace,
    needs _IOC and 32/64 compat cleanup anyways

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • - schedule timer even after some card is installed, not after insmod
    - cleanup timer functions

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • The only relevant sign of port being ready is its board->ready since now.
    Remove all other flags for this purpose which are set almost on the same
    place. Move ports inside the board to be sure that nobody will grab reference
    to the port without being sure that it exists.

    [jirislaby@gmail.com: fix unused var warning]
    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • We don't need to hold a reference to port index. In most cases we need port
    structure anyway and index is available in port->tty->index.

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Substitute ioctl load firmware interface by kernel firmware api.

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • according to ioctl_list, both have int * as a param, not ulong *.

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • - request region before remapping pci io space
    - use ioremap, iounmap istead of iomap interface, because we use
    readX/writeX for accessing this space because of isa support

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Make the code more readable, remap the base address directly. Describe module
    parameters.

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Static ISA field is empty and probably will never be filled in, remove it.
    The driver still supports ISA cards passed through module parameter. This
    actually fixes one bug inside the initialization of module-param passed cards
    initialization.

    Signed-off-by: Jiri Slaby
    Tested-by: Oyvind Aabling
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     

09 Feb, 2008

1 commit


19 Oct, 2007

4 commits


18 Jul, 2007

1 commit


09 May, 2007

1 commit

  • I noticed that the moxa input checking security bug described by
    CVE-2005-0504 appears to remain unfixed upstream.

    The issue is described here:
    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-0504

    Debian has been shipping the following patch from Andres Salomon.

    (akpm: it's a privileged operation)

    Signed-off-by: dann frazier
    Signed-off-by: Andres Salomon
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    dann frazier
     

12 Feb, 2007

6 commits