1. 27 7月, 2012 1 次提交
  2. 18 7月, 2012 1 次提交
  3. 13 7月, 2012 3 次提交
  4. 13 6月, 2012 3 次提交
  5. 18 5月, 2012 1 次提交
  6. 10 5月, 2012 2 次提交
  7. 05 5月, 2012 1 次提交
    • M
      serial8250-em: Emma Mobile UART driver V2 · 22886ee9
      Magnus Damm 提交于
      This is V2 of the Emma Mobile 8250 platform driver.
      
      The hardware itself has according to the data sheet
      up to 64 byte FIFOs but at this point we only make
      use of the 16550 compatible mode.
      
      To support this piece of hardware the common UART
      registers need to be remapped, and the access size
      differences need to be handled.
      
      The DLL and DLM registers can due to offset collision
      not be remapped easily, and because of that this
      driver makes use of ->dl_read() and ->dl_write()
      callbacks. This in turn requires a registration
      function that takes 8250-specific paramenters.
      
      Future potential enhancements include DT support,
      early platform driver console and fine grained PM.
      Signed-off-by: NMagnus Damm <damm@opensource.se>
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      22886ee9
  8. 03 5月, 2012 5 次提交
  9. 02 5月, 2012 1 次提交
    • C
      8250.c: less than 2400 baud fix. · f9a9111b
      Christian Melki 提交于
      We noticed that we were loosing data at speed less than 2400 baud.
      It turned out our (TI16750 compatible) uart with 64 byte outgoing fifo
      was truncated to 16 byte (bit 5 sets fifo len) when modifying the fcr
      reg.
      The input code still fills the buffer with 64 bytes if I remember
      correctly and thus data is lost.
      Our fix was to remove whiping of the fcr content and just add the
      TRIGGER_1 which we want for latency.
      I can't see why this would not work on less than 2400 always, for all
      uarts ...
      Otherwise one would have to make sure the filling of the fifo re-checks
      the current state of available fifo size (urrk).
      Signed-off-by: NChristian Melki <christian.melki@ericsson.se>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f9a9111b
  10. 30 4月, 2012 1 次提交
  11. 19 4月, 2012 3 次提交
    • D
      serial/8250_pci: fix suspend/resume vs init/exit quirks · 5f1a3895
      Dan Williams 提交于
      Commit e86ff4a6 "serial/8250_pci: init-quirk msi support for kt serial
      controller" introduced a regression in suspend/resume by causing msi's
      to be enabled twice without an intervening disable.
      
      00:16.3 Serial controller: Intel Corporation Patsburg KT Controller (rev 05) (prog-if 02 [16550])
             Subsystem: Intel Corporation Device 7270
             Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 72
             I/O ports at 4080 [size=8]
             Memory at d1c30000 (32-bit, non-prefetchable) [size=4K]
             Capabilities: [c8] Power Management version 3
             Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
             Kernel driver in use: serial
      
      [  365.250523] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:16.3/msi_irqs'
      [  365.250525] Modules linked in: nls_utf8 ipv6 uinput sg iTCO_wdt
        iTCO_vendor_support ioatdma dca i2c_i801 i2c_core wmi sd_mod ahci libahci isci
        libsas libata scsi_transport_sas [last unloaded: scsi_wait_scan]
      [  365.250540] Pid: 9030, comm: kworker/u:1 Tainted: G        W    3.3.0-isci-3.0.213+ #1
      [  365.250542] Call Trace:
      [  365.250545]  [<ffffffff8115e955>] ? sysfs_add_one+0x99/0xad
      [  365.250548]  [<ffffffff8102db8b>] warn_slowpath_common+0x85/0x9e
      [  365.250551]  [<ffffffff8102dc96>] warn_slowpath_fmt+0x6e/0x70
      [  365.250555]  [<ffffffff8115e8fa>] ? sysfs_add_one+0x3e/0xad
      [  365.250558]  [<ffffffff8115e8b4>] ? sysfs_pathname+0x3c/0x44
      [  365.250561]  [<ffffffff8115e8b4>] ? sysfs_pathname+0x3c/0x44
      [  365.250564]  [<ffffffff8115e8b4>] ? sysfs_pathname+0x3c/0x44
      [  365.250567]  [<ffffffff8115e8b4>] ? sysfs_pathname+0x3c/0x44
      [  365.250570]  [<ffffffff8115e955>] sysfs_add_one+0x99/0xad
      [  365.250573]  [<ffffffff8115f031>] create_dir+0x72/0xa5
      [  365.250577]  [<ffffffff8115f194>] sysfs_create_dir+0xa2/0xbe
      [  365.250581]  [<ffffffff81262463>] kobject_add_internal+0x126/0x1f8
      [  365.250585]  [<ffffffff8126255b>] kset_register+0x26/0x3f
      [  365.250588]  [<ffffffff8126275a>] kset_create_and_add+0x62/0x7c
      [  365.250592]  [<ffffffff81293619>] populate_msi_sysfs+0x34/0x103
      [  365.250595]  [<ffffffff81293e1c>] pci_enable_msi_block+0x1b3/0x216
      [  365.250599]  [<ffffffff81303f7c>] try_enable_msi+0x13/0x17
      [  365.250603]  [<ffffffff81303fb3>] pciserial_resume_ports+0x21/0x42
      [  365.250607]  [<ffffffff81304041>] pciserial_resume_one+0x50/0x57
      [  365.250610]  [<ffffffff81283e1a>] pci_legacy_resume+0x38/0x47
      [  365.250613]  [<ffffffff81283e7d>] pci_pm_restore+0x54/0x87
      [  365.250616]  [<ffffffff81283e29>] ? pci_legacy_resume+0x47/0x47
      [  365.250619]  [<ffffffff8131e9e8>] dpm_run_callback+0x48/0x7b
      [  365.250623]  [<ffffffff8131f39a>] device_resume+0x342/0x394
      [  365.250626]  [<ffffffff8131f5b7>] async_resume+0x21/0x49
      
      That patch has since been reverted, but by inspection it seems that
      pciserial_suspend_ports() should be invoking .exit() quirks to release
      resources acquired during .init().
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5f1a3895
    • S
      serial/8250_pci: Clear FIFOs for Intel ME Serial Over Lan device on BI · 0ad372b9
      Sudhakar Mamillapalli 提交于
      When using Serial Over Lan (SOL) over the virtual serial port in a Intel
      management engine (ME) device, on device reset the serial FIFOs need to
      be cleared to keep the FIFO indexes in-sync between the host and the
      engine.
      
      On a reset the serial device assertes BI, so using that as a cue FIFOs
      are cleared.  So for this purpose a new handle_break callback has been
      added.  One other problem is that the serial registers might temporarily
      go to 0 on reset of this device.  So instead of using the IER register
      read, if 0 returned use the ier value in uart_8250_port. This is hidden
      under a custom serial_in.
      
      Cc: Nhan H Mai <nhan.h.mai@intel.com>
      Signed-off-by: NSudhakar Mamillapalli <sudhakar@fb.com>
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0ad372b9
    • D
      tegra, serial8250: add ->handle_break() uart_port op · bf03f65b
      Dan Williams 提交于
      The "KT" serial port has another use case for a "received break" quirk,
      so before adding another special case to the 8250 core take this
      opportunity to push such quirks out of the core and into a uart_port op.
      
      Stephen says:
      "If the callback function is to no longer live in 8250.c itself,
       arch/arm/mach-tegra/devices.c isn't logically a good place to put it,
       and that file will be going away once we get rid of all the board files
       and move solely to device tree."
      
      ...so since 8250_pci.c houses all the quirks for pci serial devices this
      quirk is similarly housed in of_serial.c.  Once the open firmware
      conversion completes the infrastructure details
      (include/linux/of_serial.h, and the export) can all be removed to make
      this self contained to of_serial.c.
      
      Cc: Nhan H Mai <nhan.h.mai@intel.com>
      Cc: Colin Cross <ccross@android.com>
      Cc: Olof Johansson <olof@lixom.net>
      [stephen: kill CONFIG_SERIAL_TEGRA in favor just using CONFIG_ARCH_TEGRA]
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NSudhakar Mamillapalli <sudhakar@fb.com>
      Reported-by: NAlan Cox <alan@lxorguk.ukuu.org.uk>
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      Acked-by: NStephen Warren <swarren@wwwdotorg.org>
      Tested-by: NStephen Warren <swarren@wwwdotorg.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      bf03f65b
  12. 10 4月, 2012 3 次提交
  13. 29 3月, 2012 1 次提交
  14. 10 3月, 2012 6 次提交
  15. 11 2月, 2012 1 次提交
  16. 09 2月, 2012 1 次提交
  17. 04 2月, 2012 1 次提交
    • C
      tty: fix a build failure on sparc · e7c9bba7
      Cong Wang 提交于
      On sparc, there is a build failure:
      
      drivers/tty/serial/8250/8250.c:48:21: error: suncore.h: No such file or directory
      drivers/tty/serial/8250/8250.c:3275: error: implicit declaration of function 'sunserial_register_minors'
      drivers/tty/serial/8250/8250.c:3305: error: implicit declaration of function 'sunserial_unregister_minors'
      
      this is due to commit 9bef3d41
      (serial: group all the 8250 related code together) moved these files
      into 8250/ subdirectory, but forgot to change the reference
      to drivers/tty/serial/suncore.h.
      
      Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NWANG Cong <xiyou.wangcong@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e7c9bba7
  18. 25 1月, 2012 1 次提交