Merge tag 'tty-3.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Apr 2012 22:36:33 +0000 (15:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Apr 2012 22:36:33 +0000 (15:36 -0700)
Pull tty and serial fixes from Greg KH:
 "Here are some tty and serial fixes for 3.4-rc2.

  Most important here is the pl011 fix, which has been reported by about
  100 different people, which means more people use it than I expected
  :)

  There are also some 8250 driver reverts due to some problems reported
  by them.  And other minor fixes as well.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
* tag 'tty-3.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
  pch_uart: Add Kontron COMe-mTT10 uart clock quirk
  pch_uart: Fix MSI setting issue
  serial/8250_pci: add a "force background timer" flag and use it for the "kt" serial port
  Revert "serial/8250_pci: setup-quirk workaround for the kt serial controller"
  Revert "serial/8250_pci: init-quirk msi support for kt serial controller"
  tty/serial/omap: console can only be built-in
  serial: samsung: fix omission initialize ulcon in reset port fn()
  printk(): add KERN_CONT where needed in hpet and vt code
  tty/serial: atmel_serial: fix RS485 half-duplex problem
  tty: serial: altera_uart: Check for NULL platform_data in probe.
  isdn/gigaset: use gig_dbg() for debugging output
  omap-serial: Fix the error handling in the omap_serial probe
  serial: PL011: move interrupt clearing

1  2 
drivers/tty/serial/pch_uart.c

@@@ -210,6 -210,7 +210,7 @@@ enum 
  #define CMITC_UARTCLK   192000000 /* 192.0000 MHz */
  #define FRI2_64_UARTCLK  64000000 /*  64.0000 MHz */
  #define FRI2_48_UARTCLK  48000000 /*  48.0000 MHz */
+ #define NTC1_UARTCLK     64000000 /*  64.0000 MHz */
  
  struct pch_uart_buffer {
        unsigned char *buf;
@@@ -304,7 -305,11 +305,7 @@@ static const int trigger_level_1[4] = 
  #ifdef CONFIG_DEBUG_FS
  
  #define PCH_REGS_BUFSIZE      1024
 -static int pch_show_regs_open(struct inode *inode, struct file *file)
 -{
 -      file->private_data = inode->i_private;
 -      return 0;
 -}
 +
  
  static ssize_t port_show_regs(struct file *file, char __user *user_buf,
                                size_t count, loff_t *ppos)
  
  static const struct file_operations port_regs_ops = {
        .owner          = THIS_MODULE,
 -      .open           = pch_show_regs_open,
 +      .open           = simple_open,
        .read           = port_show_regs,
        .llseek         = default_llseek,
  };
@@@ -384,6 -389,12 +385,12 @@@ static int pch_uart_get_uartclk(void
        if (cmp && strstr(cmp, "Fish River Island II"))
                return FRI2_48_UARTCLK;
  
+       /* Kontron COMe-mTT10 (nanoETXexpress-TT) */
+       cmp = dmi_get_system_info(DMI_BOARD_NAME);
+       if (cmp && (strstr(cmp, "COMe-mTT") ||
+                   strstr(cmp, "nanoETXexpress-TT")))
+               return NTC1_UARTCLK;
        return DEFAULT_UARTCLK;
  }
  
@@@ -1651,6 -1662,7 +1658,7 @@@ static struct eg20t_port *pch_uart_init
        }
  
        pci_enable_msi(pdev);
+       pci_set_master(pdev);
  
        iobase = pci_resource_start(pdev, 0);
        mapbase = pci_resource_start(pdev, 1);