1. 20 10月, 2013 1 次提交
  2. 18 10月, 2013 1 次提交
  3. 01 10月, 2013 1 次提交
  4. 28 9月, 2013 1 次提交
  5. 27 9月, 2013 1 次提交
  6. 27 7月, 2013 3 次提交
  7. 01 7月, 2013 1 次提交
  8. 16 3月, 2013 1 次提交
    • W
      serial: 8250_pci: Add WCH CH352 quirk to avoid Xscale detection · 8b5c913f
      Wang YanQing 提交于
      The code in 8250.c for detecting ARM/XScale UARTs says:
      
        * Try writing and reading the UART_IER_UUE bit (b6).
        * If it works, this is probably one of the Xscale platform's
        * internal UARTs.
      
      If the above passes, it then goes on to:
      
           * It's an Xscale.
           * We'll leave the UART_IER_UUE bit set to 1 (enabled).
      
      However, the CH352 uses the UART_IER_UUE as the LOWPOWER function,
      so it is readable and writable.  According to the datasheet:
      
          "LOWPOWER:When the bit is 1, close the internal benchmark
           clock of serial port to set into low-power status.
      
      So it essentially gets mis-detected as Xscale, and gets
      powered down in the process.  The device in question where
      this was seen is listed by lspci as:
      
       Serial controller: Device 4348:3253 (rev 10) (prog-if 02 [16550])
      
      Re-using the 353 quirk which just sets flags to fixed and type
      to 16550 is suitable for fixing the 352 as well.
      Signed-off-by: NWang YanQing <udknight@gmail.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8b5c913f
  9. 12 3月, 2013 2 次提交
    • W
      serial: 8250_pci: add support for another kind of NetMos Technology PCI 9835 Multi-I/O Controller · 8d2f8cd4
      Wang YanQing 提交于
      01:08.0 Communication controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01)
      	Subsystem: Device [1000:0012]
      	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
      	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
      	Interrupt: pin A routed to IRQ 20
      	Region 0: I/O ports at e050 [size=8]
      	Region 1: I/O ports at e040 [size=8]
      	Region 2: I/O ports at e030 [size=8]
      	Region 3: I/O ports at e020 [size=8]
      	Region 4: I/O ports at e010 [size=8]
      	Region 5: I/O ports at e000 [size=16]
      Signed-off-by: NWang YanQing <udknight@gmail.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8d2f8cd4
    • S
      Fix 4 port and add support for 8 port 'Unknown' PCI serial port cards · d13402a4
      Scott Ashcroft 提交于
      I've managed to find an 8 port version of the card 4 port card which was discussed here:
      
      http://marc.info/?l=linux-serial&m=120760744205314&w=2
      
      Looking back at that thread there were two issues in the original patch.
      
      1) The I/O ports for the UARTs are within BAR2 not BAR0. This can been seen in the original post.
      2) A serial quirk isn't needed as these cards have no memory in BAR0 which makes pci_plx9050_init just return.
      
      This patch fixes the 4 port support to use BAR2, removes the bogus quirk and adds support for the 8 port card.
      
      $ lspci -vvv -n -s 00:08.0
      00:08.0 0780: 10b5:9050 (rev 01)
      	Subsystem: 10b5:1588
      	Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
      	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
      	Interrupt: pin A routed to IRQ 17
      	Region 1: I/O ports at ff00 [size=128]
      	Region 2: I/O ports at fe00 [size=64]
      	Region 3: I/O ports at fd00 [size=8]
      	Capabilities: <access denied>
      	Kernel driver in use: serial
      
      $ dmesg | grep 0000:00:08.0:
      [    0.083320] pci 0000:00:08.0: [10b5:9050] type 0 class 0x000780
      [    0.083355] pci 0000:00:08.0: reg 14: [io  0xff00-0xff7f]
      [    0.083369] pci 0000:00:08.0: reg 18: [io  0xfe00-0xfe3f]
      [    0.083382] pci 0000:00:08.0: reg 1c: [io  0xfd00-0xfd07]
      [    0.083460] pci 0000:00:08.0: PME# supported from D0 D3hot
      [    1.212867] 0000:00:08.0: ttyS4 at I/O 0xfe00 (irq = 17) is a 16550A
      [    1.233073] 0000:00:08.0: ttyS5 at I/O 0xfe08 (irq = 17) is a 16550A
      [    1.253270] 0000:00:08.0: ttyS6 at I/O 0xfe10 (irq = 17) is a 16550A
      [    1.273468] 0000:00:08.0: ttyS7 at I/O 0xfe18 (irq = 17) is a 16550A
      [    1.293666] 0000:00:08.0: ttyS8 at I/O 0xfe20 (irq = 17) is a 16550A
      [    1.313863] 0000:00:08.0: ttyS9 at I/O 0xfe28 (irq = 17) is a 16550A
      [    1.334061] 0000:00:08.0: ttyS10 at I/O 0xfe30 (irq = 17) is a 16550A
      [    1.354258] 0000:00:08.0: ttyS11 at I/O 0xfe38 (irq = 17) is a 16550A
      Signed-off-by: NScott Ashcroft <scott.ashcroft@talk21.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d13402a4
  10. 30 1月, 2013 1 次提交
  11. 18 1月, 2013 1 次提交
  12. 16 1月, 2013 4 次提交
  13. 22 11月, 2012 8 次提交
  14. 31 10月, 2012 1 次提交
  15. 25 10月, 2012 1 次提交
  16. 27 9月, 2012 1 次提交
  17. 08 9月, 2012 1 次提交
  18. 06 9月, 2012 2 次提交
  19. 17 8月, 2012 1 次提交
  20. 13 7月, 2012 2 次提交
  21. 13 6月, 2012 1 次提交
  22. 30 4月, 2012 1 次提交
  23. 19 4月, 2012 2 次提交
    • 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
  24. 10 4月, 2012 1 次提交