1. 29 6月, 2007 5 次提交
    • R
      IOATDMA: fix section mismatches · 92504f79
      Randy Dunlap 提交于
      Rename struct pci_driver data so that false section mismatch warnings won't
      be produced.
      
      Sam, ISTM that depending on variable names is the weakest & worst part of
      modpost section checking.  Should __init_refok work here?  I got build
      errors when I tried to use it, probably because the struct pci_driver probe
      and remove methods are not marked "__init_refok".
      
      WARNING: drivers/dma/ioatdma.o(.data+0x10): Section mismatch: reference to .init.text: (between 'ioat_pci_drv' and 'ioat_pci_tbl')
      WARNING: drivers/dma/ioatdma.o(.data+0x14): Section mismatch: reference to .exit.text: (between 'ioat_pci_drv' and 'ioat_pci_tbl')
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Acked-by: NChris Leech <christopher.leech@intel.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      92504f79
    • T
      Fix Kconfig dependency problems wrt boolean menuconfigs · 59faba1b
      Trent Piepho 提交于
      If one has a dependency chain (tristate)FOO depends on (bool)BAR depends on
      (tristate)BAZ, build problems will result.  If BAZ=m, then BAR can be set
      y, which allows FOO=y.  It's possible to have FOO=y && BAZ=m, which
      wouldn't be allowed if FOO depended directly on BAZ.  In effect, the bool
      promotes the tristate from m to y.
      
      This ends up causing a problem with several menuconfigs that look like:
      
      menuconfig BAR
      	bool
      	depends on BAZ [tristate]
      if BAR
      config FOO
      	tristate
      endif
      
      The solution used here is to add the dependencies of BAR to the if
      statement, so that items in the if block will gain a direct
      non-bool-promoted dependency on BAZ.  This is how it would work if a menu
      was used instead of an if block.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Acked-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Acked-by: NJeff Garzik <jeff@garzik.org>
      Cc: Dominik Brodowski <linux@dominikbrodowski.net>
      Cc: Chas Williams <chas@cmf.nrl.navy.mil>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      59faba1b
    • B
      PNP SMCf010 quirk: auto-config device if BIOS left it broken · 172d0496
      Bjorn Helgaas 提交于
      Some HP firmware leaves the SMCf010 IRDA device incompletely configured, or
      reports the wrong resources in _CRS.  As a workaround, when we find such a
      device, try to auto-configure the device.
      
      This ignores the _CRS data, picks a config from _PRS, and runs _SRS to
      configure the device.  This makes smsc-ircc2 work correctly with PNP
      resources (with no preconfiguration!) on all the machines I tested.
      
      I think Windows does something like this by default for all devices,
      so we should consider doing the same thing in Linux.
      
      This patch addresses part of the 2.6.22 regression:
          "no irda0 interface (2.6.21 was OK), smsc does not find chip"
      It fixes smsc-ircc2 PNP device detection on HP nc6000, nc6220, nw8000,
      nw8240, and possibly other machines.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: "Linus Walleij (LD/EAB)" <linus.walleij@ericsson.com>
      Cc: Andrey Borzenkov <arvidjaar@mail.ru>
      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>
      172d0496
    • B
      smsc-ircc2: skip preconfiguration for PNP devices · 7c31d2f5
      Bjorn Helgaas 提交于
      If we rely on the device resources from PNPBIOS, we also have to rely on
      the BIOS to configure any bridges on the way to the device.
      
      Using the PNPBIOS resources but changing the configuration of a bridge
      behind the back of the firmware is likely to make things inconsistent.
      
      This patch addresses part of the 2.6.22 regression:
          "no irda0 interface (2.6.21 was OK), smsc does not find chip"
      It fixes smsc-ircc2 PNP device detection on HP nx5000 laptops.
      Other laptops, including HP nc6000, HP nc8000, HP nw8000, and Toshiba
      Portege 4000, still need PNP quirks to make this work.
      
      With "smsc-ircc2.nopnp", we do the legacy device probe, including manual
      bridge preconfiguration, as before.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Acked-by: N"Linus Walleij (LD/EAB)" <linus.walleij@ericsson.com>
      Cc: Andrey Borzenkov <arvidjaar@mail.ru>
      Cc: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Adam Belay <ambx1@neo.rr.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7c31d2f5
    • V
      atyfb: Fix XCLK frequency on Apple iBook1 · c0887eed
      Ville Syrjala 提交于
      Fix a regression on Apple iBook1.  Changes in the clock init code caused an
      incorrect XCLK frequency to be used leading to a corrupted display.
      Signed-off-by: NVille Syrjala <syrjala@sci.fi>
      Cc: Olaf Hering <olaf@aepfle.de>
      Cc: Antonino Daplas <adaplas@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c0887eed
  2. 28 6月, 2007 1 次提交
  3. 27 6月, 2007 13 次提交
  4. 26 6月, 2007 7 次提交
  5. 24 6月, 2007 10 次提交
  6. 23 6月, 2007 2 次提交
  7. 22 6月, 2007 2 次提交