1. 10 7月, 2007 5 次提交
  2. 08 7月, 2007 2 次提交
  3. 07 7月, 2007 2 次提交
    • Y
      potential compiler error, irqfunc caller sites update · 0da2f0f1
      Yoann Padioleau 提交于
      In 7d12e780 David Howells performed
      this evolution:
       "IRQ: Maintain regs pointer globally rather than passing to IRQ handlers"
      
      He correctly updated many of the function definitions that were using this
      extra regs pointer parameter but forgot to update some caller sites of
      those functions.  The reason the modifications was not properly done on all
      drivers is that some drivers were rarely compiled because they are for
      AMIGA, or that some code sites were inside #ifdefs where the option is not
      set or inside #if 0.
      
      Here is the semantic patch that found the occurences
      and fixed the problem.
      
      @ rule1 @
      identifier fn;
      identifier irq, dev_id;
      typedef irqreturn_t;
      @@
      
      static irqreturn_t fn(int irq, void *dev_id)
      {
         ...
      }
      
      @@
      identifier rule1.fn;
      expression E1, E2, E3;
      @@
      
       fn(E1, E2
      -   ,E3
         )
      Signed-off-by: NYoann Padioleau <padator@wanadoo.fr>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0da2f0f1
    • B
      PNP SMCf010 quirk: work around Toshiba Portege 4000 ACPI issues · 41a53114
      Bjorn Helgaas 提交于
      When we enable the SMCf010 IR device, the Toshiba Portege 4000 BIOS claims
      the device is working, but it really isn't configured correctly.  The BIOS
      *will* configure it, but only if we call _SRS after (1) reversing the order
      of the SIR and FIR I/O port regions and (2) changing the IRQ from
      active-high to active-low.
      
      This patch addresses the 2.6.22 regression:
          "no irda0 interface (2.6.21 was OK), smsc does not find chip"
      
      I tested this on a Portege 4000.  The smsc-ircc2 driver correctly detects
      the device, and "irattach irda0 -s && irdadump" shows transmitted and
      received packets.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: Andrey Borzenkov <arvidjaar@mail.ru>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: "Linus Walleij (LD/EAB)" <linus.walleij@ericsson.com>
      Cc: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
      Cc: Adam Belay <ambx1@neo.rr.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      41a53114
  4. 05 7月, 2007 1 次提交
    • L
      Remove the blink driver · 2bcb1b7d
      Linus Torvalds 提交于
      Yeah, we could have just disabled it, but there's work on a new one that
      isn't as fundamentally broken, so there really doesn't seem to be any
      point in keeping it around.
      
      The recent timer cleanup broke the only valid use, and when I say
      "valid", I obviously mean "totally broken".  So it's not like it works,
      or really even can work in the current format that uses the unsafe
      "panic" LED blinking routines..
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2bcb1b7d
  5. 04 7月, 2007 12 次提交
  6. 03 7月, 2007 10 次提交
  7. 02 7月, 2007 8 次提交
    • P
      3c589_cs: fix local_bh_enable warning · 63ac9b91
      Patrick McHardy 提交于
      Russell King wrote:
      > Having upgraded from 2.6.16 to 2.6.22-rc6, I'm now seeing the following.
      >
      > Looks like netfilter is calling local_bh_enable() with IRQs disabled,
      > which would appear to be illegal.  Thankfully, this is a warn-once
      > warning.
      >
      > WARNING: at /home/rmk/git/linux-2.6-rmk/kernel/softirq.c:138 local_bh_enable()
      > [...]
      > [<c01447fc>] (nf_conntrack_destroy+0x0/0x2c) from [<c012c05c>] (__kfree_skb+0xd0/0x100)
      > [<c012bf8c>] (__kfree_skb+0x0/0x100) from [<c012c0d8>] (kfree_skb+0x4c/0x50)
      >  r5:c12a3800 r4:00000300
      > [<c012c08c>] (kfree_skb+0x0/0x50) from [<bf03cbb0>] (el3_start_xmit+0xb8/0xd0 [3c589_cs])
      > [<bf03caf8>] (el3_start_xmit+0x0/0xd0 [3c589_cs]) from [<c01324dc>] (dev_hard_start_xmit+0x1a8/0x244)
      >  r7:c12a3800 r6:c1a9aa00 r5:c1a9aa00 r4:c12a3800
      > [<c0132334>] (dev_hard_start_xmit+0x0/0x244) from [<c013fcc0>] (__qdisc_run+0xb0/0x198)
      
      Thats a bug in the 3c589_cs driver. Patch attached.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      63ac9b91
    • U
      libata: PATA-mode fixes for sis_sata · a3cabb27
      Uwe Koziolek 提交于
      Changed PATA handler for PATA-ports used by sata_sis.
      This patch was originally submitted by Jeff Garzik.
      
      Added PCI-ID 1180 for SiS966 Controller in pata_sis.
      The 1180 mode is fully compatible to other SiS PATA-controller.
      
      The PCI-ID 1183 is SATA in PATA-emulation, but not fully compatible
      to SiS5513/5518. sata_sis.c is forwarding this ID to pata_sis.
      1183 is not working if simply added to pata_sis.
      This handling fixes issues with SiS968.
      Signed-off-by: NUwe Koziolek <uwe.koziolek@gmx.net>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      a3cabb27
    • T
      libata: add HTS541616J9SA00 to NCQ blacklist · e14cbfa6
      Tejun Heo 提交于
      Another member of HTS5416* family doing spurious NCQ completion.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Cc: Enrico Sardi <enricoss@tiscali.it>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      e14cbfa6
    • R
      sata_nv: allow changing queue depth · 1e0b5ab8
      Robert Hancock 提交于
      The sata_nv driver was missing the change_queue_depth hook in the SCSI host
      template which the other NCQ-capable libata drivers had. This made it impossible
      to change the queue depth by user request. Add this in.
      Signed-off-by: NRobert Hancock <hancockr@shaw.ca>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      1e0b5ab8
    • T
      sata_inic162x: disable LBA48 devices · 90c93785
      Tejun Heo 提交于
      sata_inic162x can't do LBA48 properly yet and is likely to corrupt
      data on drives larger than LBA28 limit.  Disable LBA48 devices during
      device configuration.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      90c93785
    • A
      libata: remove reading alt_status from ata_hsm_qc_complete() · 74cdbba4
      Albert Lee 提交于
      In ata_hsm_qc_complete():
      Calling ata_altstatus() after the qc is completed might race with next qc. Remove it.
      Signed-off-by: NAlbert Lee <albertcc@tw.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      74cdbba4
    • A
      libata: pata_pdc2027x PLL input clock fix · 8c781bf7
      Albert Lee 提交于
      Recently the PLL input clock of pata_pdc2027x is sometimes detected
      higer than expected (e.g. 20.027 MHz compared to 16.714 MHz).
      It seems sometimes the mdelay() function is not as precise as it
      used to be. Per Alan's advice, HT or power management might affect
      the precision of mdelay().
      
      This patch calls gettimeofday() to mesure the time elapsed and
      calculate the PLL input clock accordingly.
      Signed-off-by: NAlbert Lee <albertcc@tw.ibm.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      8c781bf7
    • R
      scsi disk help file is not complete · abcdceb9
      Randy Dunlap 提交于
      On Mon, 11 Jun 2007 20:28:16 +0200 api wrote:
      
      > Good day,
      > When doing make menuconfig one comes across CONFIG_BLK_DEV_SD.
      > The help file states that this is for scsi disks.NO MENTION IS MADE THAT
      > IT IS NEEDE FOR SATA DISKS AS WELL!
      > Would have saved me a lot of time if the help was up to date.
      > I hope this can be changed so others can make a kernel for sata systems
      > quicker.
      
      From: Randy Dunlap <randy.dunlap@oracle.com>
      
      Add help info for BLK_DEV_SD referring to its use in
      SATA or PATA driver configurations.
      
      Add help text for "ATA" indicating that it probably needs
      some SCSI config symbols enabled in order to be useful.
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      abcdceb9