1. 08 6月, 2011 2 次提交
    • F
      parport/serial: add support for Timedia/SUNIX cards to parport_serial · b9b24558
      Frédéric Brière 提交于
      Timedia/SUNIX PCI cards with both serial and parallel ports are
      currently supported by 8250_pci and parport_pc individually.  Moving
      that support into parport_serial allows using both types of ports at the
      same time.
      
      This was successfully tested with a SUNIX 4079T.
      Signed-off-by: NFrédéric Brière <fbriere@fbriere.net>
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Cc: linux-serial@vger.kernel.org
      Cc: linux-parport@lists.infradead.org
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b9b24558
    • N
      Basic support for Moschip 9900 family I/O chips · 7808edcd
      Nicos Gollan 提交于
      Add I/O based support for serial and parallel ports of the following
      chips:
      
      Vendor: Moschip (0x9710)
      
      Parts (device IDs)
      * 9900 (0x9900)
      * 9904 (0x9904
      * 9901 (0x9912, also sold as 9912)
      * 9922 (0x9922)
      
      On all chips but the 9900, a single port is provided per PCI subdevice
      (subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
      parallel with proper class codes). In cascading configurations, the
      9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
      subdevice-IDs 0x30ps where p is the number of parallel ports and s the
      number of serial ports.
      
      Basic testing was only done on the serial part of a 9912 to the point
      where it can be used for a serial kernel console, and advanced features
      are completely untested. It is possible to reduce functionality of the
      chips by adding a configuration EEPROM, and the datasheet [1] is
      inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
      configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
      a serial port in function 3, which would be consistent with the BAR
      layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
      class code.
      
      The parallel ports are integrated in parport_serial even for purely
      parallel parts to reduce the footprint of the patch.
      
      [1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdfSigned-off-by: NNicos Gollan <gtdev@spearhead.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7808edcd
  2. 11 8月, 2010 1 次提交
  3. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  4. 07 4月, 2009 1 次提交
  5. 03 4月, 2009 1 次提交
    • P
      parport: netmos 9845 & 9855 1P4S fixes · 50db9d8e
      Philippe De Muyter 提交于
      netmos serial/parallel adapters come in different flavour differing only
      by the number of parallel and serial ports, which are encoded in the
      subdevice ID.
      
      Last fix of Christian Pellegrin for 9855 2P2S broke support for 9855 1P4S,
      and works only by side-effect for the first parallel port of a 2P2S, as
      this first parallel port is found by reading the second addr entry of
      (struct parport_pc_pci) cards[netmos_9855], which is not initialized, and
      hence has value 0, which happens to be the BAR of the first parallel port.
      
      netmos_9xx5_combo entry in (struct parport_pc_pci) cards[], which is used
      for a 9845 1P4S must also be fixed for the parallel port support when
      there are 4 serial ports because this entry currently gives 2 as BAR index
      for the parallel port.  Actually, in this case, BAR 2 is the 3rd serial
      port while the parallel port is at BAR 4.
      
      I fixed 9845 1P4S and 9855 1P4S support, while preserving 9855 2P2S support,
      
      - by creating a netmos_9855_2p entry and using it for 9855 boards with 2
        parallel ports : 9855 2P2S and 9855 2P0S boards,
      
      - and by allowing netmos_parallel_init to change not only the number of
        parallel ports (0 or 1), but making it also change the BAR index of the
        parallel port when the serial ports are before the parallel port.
      
      PS: the netmos_9855_2p entry in (struct pciserial_board)
      pci_parport_serial_boards[] is needed because netmos_parallel_init has no
      clean way to replace FL_BASE2 by FL_BASE4 in the description of the serial
      ports in function of the number of parallel ports on the card.
      
      Tested with 9845 1P4S, 9855 1P4S and 9855 2P2S boards.
      Signed-off-by: NPhilippe De Muyter <phdm@macqel.be>
      Tested-by: NChristian Pellegrin <chripell@fsfe.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      50db9d8e
  6. 12 2月, 2009 1 次提交
  7. 02 12月, 2008 1 次提交
  8. 07 2月, 2008 1 次提交
    • C
      parport_serial: netmos 9855 fix · c01106e5
      Christian Pellegrin 提交于
      Fix wrong netmos 9855 serial port configuration.
      
      On loading only one serial port was present and it wasn't working.  After
      looking in the data sheet I realized that the base address was wrong.  For
      further reference here is lspci and relevant dmesg output:
      
      02:00.0 Communication controller: NetMos Technology PCI 9855 Multi-I/O
      Controller (rev 01) (prog-if 02)
              Subsystem: LSI Logic / Symbios Logic Unknown device 0022
              Flags: medium devsel, IRQ 19
              I/O ports at df00 [size=8]
              I/O ports at de00 [size=8]
              I/O ports at dd00 [size=8]
              I/O ports at dc00 [size=8]
              I/O ports at db00 [size=8]
              I/O ports at da00 [size=16]
      
      parport1: PC-style at 0xdd00 [PCSPP,TRISTATE]
      parport2: PC-style at 0xdf00 [PCSPP,TRISTATE,EPP]
      0000:02:00.0: ttyS0 at I/O 0xdb00 (irq = 19) is a 16550A
      0000:02:00.0: ttyS1 at I/O 0xda00 (irq = 19) is a 16550A
      Signed-off-by: NChristian Pellegrin <chripell@fsfe.org>
      Cc: Thomas Richter <thor@math.TU-Berlin.DE>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: Martin Schitter <ms@gewi.kfunigraz.ac.at>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c01106e5
  9. 20 7月, 2007 1 次提交
  10. 09 5月, 2007 2 次提交
  11. 30 9月, 2006 1 次提交
  12. 11 4月, 2006 1 次提交
  13. 21 3月, 2006 1 次提交
  14. 06 3月, 2006 1 次提交
    • R
      [SERIAL] Fix two bugs in parport_serial · 7a171cdc
      Russell King 提交于
      Steinar H. Gunderson reported:
      
        - For some reason, it detects the 9845 as a 9735 -- it appears this is
          simply related to the ordering in parport_serial_pci_tbl[]. If we move
          the 9845 up above the 9735, it prints out 9710:9845, but no change in
          behaviour. (We didn't find out why this was the case; we left it alone
          since it didn't affect our problem.)
        - The card has no parallel port (at least no physical ones), yet it reports
          (via its subsystem ID of 0x0014) one parallel port and four serial ports.
          The probe for the parallel port fails, and the driver just aborts. Thus,
          it doesn't find the serial ports.
      
      Fix the debugging code to use dev_dbg, but don't bother displaying the
      PCI ID of the detected board (that's accessible via other means.)
      
      Also, arrange for parport_register() to return 0 even if it finds no
      ports.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      7a171cdc
  15. 04 2月, 2006 1 次提交
  16. 10 1月, 2006 1 次提交
  17. 27 7月, 2005 1 次提交
  18. 24 6月, 2005 1 次提交
    • M
      [PATCH] parport: NetMos nm9855 fix · 44e58a6a
      Martin Schitter 提交于
      kernel 2.6.12-rc2 adopted some code by Bjorn Helgaas supporting NetMos combo
      controller cards. this implementation doesn't work for nm9855 based cards!
      
      there are two reasons:
      
      a) the module 'parport_pc' doesn't want to give the resonsibility for
         the netmos_9855 to 'parport_serial' and can not handle the serial lines
         -- trivial to fix...
      
         http://lists.infradead.org/pipermail/linux-parport/2005-February/000250.html
         http://lkml.org/lkml/2005/3/24/199 b) the support for the nm9855 in
      
         'parport_serial' still doesn't work because of wrong assumptions about
         the relevant BARs port address layout for this chip:
      
      	 0000:00:09.0 Communication controller:
               	      NetMos Technology PCI 9855
               	      Multi-I/O Controller (rev 01)
      	 	      (= 9710:9855)
               Subsystem: LSI Logic / Symbios Logic 1P4S (= 1000:0014)
        	 Flags: medium devsel, IRQ 177
      	 I/O ports at a800 [size=8]  (= parport)
      	 I/O ports at a400 [size=8]
      	 I/O ports at a000 [size=8]  (= serial)
      	 I/O ports at 9800 [size=8]  (= serial)
      	 I/O ports at 9400 [size=8]  (= serial)
      	 I/O ports at 9000 [size=16] (= serial)
      
      the following patch will fix the problem.
      
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      44e58a6a
  19. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4