1. 28 5月, 2010 19 次提交
  2. 26 5月, 2010 8 次提交
    • J
      agp: amd64, fix pci reference leaks · 2101d6f7
      Jiri Slaby 提交于
      Stanse found pci reference leaks in uli_agp_init and nforce3_agp_init
      initialization functions.
      
      The PCI devices are bridges, so it's not critical, but still worth fixing.
      Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      2101d6f7
    • A
      drm/edid: Allow non-fatal checksum errors in CEA blocks · 4a638b4e
      Adam Jackson 提交于
      Switches will try to update the topology address and not correctly fix
      up the checksum, so just let it slide.
      
      https://bugs.freedesktop.org/28229Signed-off-by: NAdam Jackson <ajax@redhat.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      4a638b4e
    • S
      drm/radeon/kms: suppress a build warning (unused variable) · 921d98b5
      Stefan Richter 提交于
      At least 'make CONFIG_DEBUG_SECTION_MISMATCH=y' causes
      drivers/gpu/drm/radeon/atombios_crtc.c: In function 'atombios_crtc_set_pll':
      drivers/gpu/drm/radeon/atombios_crtc.c:684: warning: 'pll' may be used uninitialized in this function
      which has the looks of a falso positive.
      
      Add a default: case so that gcc rests assured that all possible pll_id's are covered.
      Keep the present cases that fall through to the default one for self-documentation.
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      Reviewed-by: NAlex Deucher <alexdeucher@gmail.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      921d98b5
    • D
      drivers/net/usb/asix.c: Fix pointer cast. · f925b130
      David S. Miller 提交于
      Stephen Rothwell reports the following new warning:
      
      drivers/net/usb/asix.c: In function 'asix_rx_fixup':
      drivers/net/usb/asix.c:325: warning: cast from pointer to integer of different size
      drivers/net/usb/asix.c:354: warning: cast from pointer to integer of different size
      
      The code just cares about the low alignment bits, so use
      an "unsigned long" cast instead of one to "u32".
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f925b130
    • S
      be2net: Bug fix to avoid disabling bottom half during firmware upgrade. · dd131e76
      Sarveshwar Bandi 提交于
      Certain firmware commands/operations to upgrade firmware could take several
      seconds to complete. The code presently disables bottom half during these
      operations which could lead to unpredictable behaviour in certain cases. This
      patch now does all firmware upgrade operations asynchronously using a
      completion variable.
      Signed-off-by: NSarveshwar Bandi <sarveshwarb@serverengines.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dd131e76
    • F
      hso: add support for new products · dd7496f2
      Filip Aben 提交于
      This patch adds a few new product id's for the hso driver.
      Signed-off-by: NFilip Aben <f.aben@option.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dd7496f2
    • K
      driver core: add devname module aliases to allow module on-demand auto-loading · 578454ff
      Kay Sievers 提交于
      This adds:
        alias: devname:<name>
      to some common kernel modules, which will allow the on-demand loading
      of the kernel module when the device node is accessed.
      
      Ideally all these modules would be compiled-in, but distros seems too
      much in love with their modularization that we need to cover the common
      cases with this new facility. It will allow us to remove a bunch of pretty
      useless init scripts and modprobes from init scripts.
      
      The static device node aliases will be carried in the module itself. The
      program depmod will extract this information to a file in the module directory:
        $ cat /lib/modules/2.6.34-00650-g537b60d1-dirty/modules.devname
        # Device nodes to trigger on-demand module loading.
        microcode cpu/microcode c10:184
        fuse fuse c10:229
        ppp_generic ppp c108:0
        tun net/tun c10:200
        dm_mod mapper/control c10:235
      
      Udev will pick up the depmod created file on startup and create all the
      static device nodes which the kernel modules specify, so that these modules
      get automatically loaded when the device node is accessed:
        $ /sbin/udevd --debug
        ...
        static_dev_create_from_modules: mknod '/dev/cpu/microcode' c10:184
        static_dev_create_from_modules: mknod '/dev/fuse' c10:229
        static_dev_create_from_modules: mknod '/dev/ppp' c108:0
        static_dev_create_from_modules: mknod '/dev/net/tun' c10:200
        static_dev_create_from_modules: mknod '/dev/mapper/control' c10:235
        udev_rules_apply_static_dev_perms: chmod '/dev/net/tun' 0666
        udev_rules_apply_static_dev_perms: chmod '/dev/fuse' 0666
      
      A few device nodes are switched to statically allocated numbers, to allow
      the static nodes to work. This might also useful for systems which still run
      a plain static /dev, which is completely unsafe to use with any dynamic minor
      numbers.
      
      Note:
      The devname aliases must be limited to the *common* and *single*instance*
      device nodes, like the misc devices, and never be used for conceptually limited
      systems like the loop devices, which should rather get fixed properly and get a
      control node for losetup to talk to, instead of creating a random number of
      device nodes in advance, regardless if they are ever used.
      
      This facility is to hide the mess distros are creating with too modualized
      kernels, and just to hide that these modules are not compiled-in, and not to
      paper-over broken concepts. Thanks! :)
      
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Miklos Szeredi <miklos@szeredi.hu>
      Cc: Chris Mason <chris.mason@oracle.com>
      Cc: Alasdair G Kergon <agk@redhat.com>
      Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
      Cc: Ian Kent <raven@themaw.net>
      Signed-Off-By: NKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      578454ff
    • C
      RDMA/nes: Fix incorrect unlock in nes_process_mac_intr() · b17e0969
      Chien Tung 提交于
      Commit ce6e74f2 ("RDMA/nes: Make nesadapter->phy_lock usage
      consistent") introduced a problem where phy_lock was only unlocked
      within an if statement and so nes_process_mac_intr() could return with
      phy_lock still held.  Fix this.
      
      This was discovered because of the sparse warning:
      
          drivers/infiniband/hw/nes/nes_hw.c:2643:9: warning: context imbalance in 'nes_process_mac_intr' - different lock contexts for basic block
      Reported-by: NRoland Dreier <rdreier@cisco.com>
      Signed-off-by: NChien Tung <chien.tin.tung@intel.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      b17e0969
  3. 25 5月, 2010 13 次提交
    • F
      ath9k: remove VEOL support for ad-hoc · a65e4cb4
      Felix Fietkau 提交于
      With VEOL, Beacon transmission in ad-hoc does not currently work.
      I believe for larger ad-hoc networks, VEOL is too unreliable, as
      it can get beacon transmissions stuck during synchronization.
      Use SWBA based beacon trasmission similar to AP mode instead.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Acked-by: NBenoit Papillault <benoit.papillault@free.fr>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      a65e4cb4
    • F
      ath9k: change beacon allocation to prefer the first beacon slot · 774610e4
      Felix Fietkau 提交于
      This fixes IBSS beacon transmissions without VEOL enabled
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      774610e4
    • H
      auxdisplay: section cleanup in cfag12864bfb driver · bf87eae9
      Henrik Kretzschmar 提交于
      This fixes a two section mismatches and makes remove() __devexit.
      Signed-off-by: NHenrik Kretzschmar <henne@nachtwindheim.de>
      Cc: Miguel Ojeda Sandonis <miguel.ojeda.sandonis@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      bf87eae9
    • D
      nuc900fb: release correct mem region · a42dcb88
      Dan Carpenter 提交于
      We should be releasing "res->start" here.
      Signed-off-by: NDan Carpenter <error27@gmail.com>
      Acked-by: NWan ZongShun <mcuos.com@gmail.com>
      Cc: Wang Qiang <rurality.linux@gmail.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a42dcb88
    • A
      fb_defio: fix for non-dirty ptes · 49bbd815
      Albert Herranz 提交于
      Fix a problem observed while using fb_defio with a short delay on a
      PowerPC platform.
      
      It is possible that page_mkclean() is invoked in the deferred io work
      function _before_ a PTE has been marked dirty.  In this case, the page is
      removed from the defio pagelist but page_mkclean() does not write-protect
      the page again.  The end result is that defio ignores all subsequent
      writes to the page and the corresponding portions of the framebuffer never
      get updated.
      
      The fix consists in keeping track of the pages with non-dirty PTEs,
      re-checking them again on the next deferred io work iteration.  Note that
      those pages are not passed to the defio callback as they are not written
      by userspace yet.
      Signed-off-by: NAlbert Herranz <albert_herranz@yahoo.es>
      Acked-by: NJaya Kumar <jayakumar.lkml@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      49bbd815
    • H
      sgivwfb: fix sections · 0d5b0264
      Henrik Kretzschmar 提交于
      Since the drivers probe call was changed from .init.text to .devinit.text
      in commit c2e13037 ("platform-drivers:
      move probe to .devinit.text in drivers/video") the fb_fix_screeninfo and
      fb_var_screeninfo structures must be changed from .init.data to
      .devinit.data, too.
      
      Also the drivers remove routine should be moved from .text to .devexit.text
      
      It removes these 7 section mismatch warnings from modpost:
      
      WARNING: vmlinux.o(.devinit.text+0x1e28): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_fix
      The function __devinit sgivwfb_probe() references
      a variable __initdata sgivwfb_fix.
      If sgivwfb_fix is only used by sgivwfb_probe then
      annotate sgivwfb_fix with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e50): Section mismatch in reference from the function sgivwfb_probe() to the (unknown reference) .init.data:(unknown)
      The function __devinit sgivwfb_probe() references
      a (unknown reference) __initdata (unknown).
      If (unknown) is only used by sgivwfb_probe then
      annotate (unknown) with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e59): Section mismatch in reference from the function sgivwfb_probe() to the (unknown reference) .init.data:(unknown)
      The function __devinit sgivwfb_probe() references
      a (unknown reference) __initdata (unknown).
      If (unknown) is only used by sgivwfb_probe then
      annotate (unknown) with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e60): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_fix
      The function __devinit sgivwfb_probe() references
      a variable __initdata sgivwfb_fix.
      If sgivwfb_fix is only used by sgivwfb_probe then
      annotate sgivwfb_fix with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e6a): Section mismatch in reference from the function sgivwfb_probe() to the (unknown reference) .init.data:(unknown)
      The function __devinit sgivwfb_probe() references
      a (unknown reference) __initdata (unknown).
      If (unknown) is only used by sgivwfb_probe then
      annotate (unknown) with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e7f): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_var1600sw
      The function __devinit sgivwfb_probe() references
      a variable __initdata sgivwfb_var1600sw.
      If sgivwfb_var1600sw is only used by sgivwfb_probe then
      annotate sgivwfb_var1600sw with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e91): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_var
      The function __devinit sgivwfb_probe() references
      a variable __initdata sgivwfb_var.
      If sgivwfb_var is only used by sgivwfb_probe then
      annotate sgivwfb_var with a matching annotation.
      Signed-off-by: NHenrik Kretzschmar <henne@nachtwindheim.de>
      Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0d5b0264
    • H
      s3c2410fb: fix sections · a8ce4be7
      Henrik Kretzschmar 提交于
      Since the drivers probe calls were changed from .init.text to
      .devinit.text in commit c2e13037
      ("platform-drivers: move probe to .devinit.text in drivers/video") all the
      function from .init.text should be moved to .devinit.text, too.
      
      The drivers remove calls can also be move from .text to .devexit.text.
      Signed-off-by: NHenrik Kretzschmar <henne@nachtwindheim.de>
      Cc: Vincent Sanders <support@simtec.co.uk>
      Acked-by: NArnaud Patard <arnaud.patard@rtp-net.org>
      Tested-by: NArnaud Patard <arnaud.patard@rtp-net.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a8ce4be7
    • H
      hitfb: fix sections · e88a0f46
      Henrik Kretzschmar 提交于
      Since the drivers probe call was changed from .init.text to .devinit.text
      in commit c2e13037 ("platform-drivers:
      move probe to .devinit.text in drivers/video") the fb_fix_screeninfo and
      fb_var_screeninfo structures must be changed from .init.data to
      .devinit.data, too.
      
      Also the drivers remove routine should be moved from .exit.text to
      .devexit.text
      Signed-off-by: NHenrik Kretzschmar <henne@nachtwindheim.de>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e88a0f46
    • G
      fbdev: move FBIO_WAITFORVSYNC to linux/fb.h · 49c39b49
      Grazvydas Ignotas 提交于
      FBIO_WAITFORVSYNC is currently implemented by matroxfb, atyfb, intelfb and
      more.  All of them keep redefining the same FBIO_WAITFORVSYNC macro over
      and over again, so move it to linux/fb.h and clean up those duplicate
      defines.
      Signed-off-by: NGrazvydas Ignotas <notasas@gmail.com>
      Cc: Ville Syrjala <syrjala@sci.fi>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Maik Broemme <mbroemme@plusserver.de>
      Cc: Petr Vandrovec <vandrove@vc.cvut.cz>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Cc: "Hiremath, Vaibhav" <hvaibhav@ti.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      49c39b49
    • M
      fbdev: da8xx/omap-l1xx: implement double buffering · 1f9c3e1f
      Martin Ambrose 提交于
      This work includes the following:
      
      - Implement handler for FBIO_WAITFORVSYNC ioctl.
      
      - Allocate the data and palette buffers separately.  A consequence of
        this is that the palette and data loading is now done in different
        phases.  And that the LCD must be disabled temporarily after the palette
        is loaded but this will only happen once after init and each time the
        palette is changed.  I think this is OK.
      
      - Allocate two (ping and pong) framebuffers from memory.
      
      - Add pan_display handler which toggles the LCDC DMA registers between
        the ping and pong buffers.
      Signed-off-by: NMartin Ambrose <martin@ti.com>
      Cc: Chaithrika U S <chaithrika@ti.com>
      Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1f9c3e1f
    • H
      fbdev: section cleanup in w100fb · fb6cb327
      Henrik Kretzschmar 提交于
      Fix up the section in the w100fb driver, by moving:
      
      *	w100fb_remove() from .text to .devexit.text
      
      *	w100_get_xtal_table() from .text to .devinit.text
      
      *	w100fb_init() from .devinit.text to .init.text
      Signed-off-by: NHenrik Kretzschmar <henne@nachtwindheim.de>
      Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: <stable@kernel.org>	[if "platform-drivers: move probe to .devinit.text in drivers/video" was merged]
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      fb6cb327
    • H
      fbdev: section cleanup in vga16fb · ad145846
      Henrik Kretzschmar 提交于
      Fix up the sections in the vga16fb driver, by moving:
      
      *	the variables vga16_defined and vga16fb
      	from .init.data to .devinit.data
      
      *	vga16fb_setup() from .text to .init.text
      
      *	vga16fb_remove() from .text. to .devexit.text
      
      This fixes the following warnings issued by modpost:
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x1a420): Section mismatch in re
      ference from the function vga16fb_probe() to the (unknown reference) .init.data:
      (unknown)
      The function __devinit vga16fb_probe() references
      a (unknown reference) __initdata (unknown).
      If (unknown) is only used by vga16fb_probe then
      annotate (unknown) with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x1a437): Section mismatch in reference from the function vga16fb_probe() to the variable .init.data:vga16fb_defined
      The function __devinit vga16fb_probe() references
      a variable __initdata vga16fb_defined.
      If vga16fb_defined is only used by vga16fb_probe then
      annotate vga16fb_defined with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x1a457): Section mismatch in reference from the function vga16fb_probe() to the variable .init.data:vga16fb_fix
      The function __devinit vga16fb_probe() references
      a variable __initdata vga16fb_fix.
      If vga16fb_fix is only used by vga16fb_probe then
      annotate vga16fb_fix with a matching annotation.
      Signed-off-by: NHenrik Kretzschmar <henne@nachtwindheim.de>
      Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: <stable@kernel.org>	[if "platform-drivers: move probe to .devinit.text in drivers/video" was merged]
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ad145846
    • H
      fbdev: section cleanup in vfb · 3cc04971
      Henrik Kretzschmar 提交于
      Fix up the section in the vfb driver, by moving the variables vfb_default
      and vfb_fix from .init.data to .devinit.data
      
      This fixes the following warnings issued by modpost:
      
      WARNING: drivers/video/vfb.o(.devinit.text+0xf8): Section mismatch in reference from the function vfb_probe() to the variable .init.data:vfb_default
      The function __devinit vfb_probe() references
      a variable __initdata vfb_default.
      If vfb_default is only used by vfb_probe then
      annotate vfb_default with a matching annotation.
      
      WARNING: drivers/video/vfb.o(.devinit.text+0x114): Section mismatch in reference from the function vfb_probe() to the variable .init.data:vfb_fix
      The function __devinit vfb_probe() references
      a variable __initdata vfb_fix.
      If vfb_fix is only used by vfb_probe then
      annotate vfb_fix with a matching annotation.
      Signed-off-by: NHenrik Kretzschmar <henne@nachtwindheim.de>
      Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: <stable@kernel.org>	[if "platform-drivers: move probe to .devinit.text in drivers/video" was merged]
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3cc04971