1. 04 Aug, 2009 2 commits
  2. 29 Jul, 2009 1 commit
  3. 25 Sep, 2009 1 commit
  4. 29 Jul, 2009 1 commit
  5. 25 Sep, 2009 1 commit
  6. 19 Sep, 2009 1 commit
  7. 11 Aug, 2009 1 commit
  8. 06 Oct, 2009 1 commit
    • Andrew Morton's avatar
      do_div() takes a u64. The mips build warns: · 069b4675
      Andrew Morton authored
      In file included from include/trace/ftrace.h:635,
                       from include/trace/define_trace.h:61,
                       from include/trace/events/lockdep.h:96,
                       from kernel/lockdep.c:52:
      include/trace/events/lockdep.h: In function `ftrace_raw_event_lock_acquired':
      include/trace/events/lockdep.h:71: warning: comparison of distinct pointer types lacks a cast
      
      from the check in include/asm-generic/div64.h:do_div().
      
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      069b4675
  9. 16 Oct, 2009 1 commit
    • Stephen Boyd's avatar
      dmar_ir_support() references dmar_tbl which is annotated with · b8882458
      Stephen Boyd authored
      __initdata. The only caller of dmar_ir_support() is
      intr_remapping_supported() also annotated with __init.
      
      WARNING: drivers/pci/built-in.o(.text+0xa110): Section mismatch in
      reference from the function dmar_ir_support() to the variable
      .init.data:dmar_tbl
      The function dmar_ir_support() references
      the variable __initdata dmar_tbl.
      This is often because dmar_ir_support lacks a __initdata
      annotation or the annotation of dmar_tbl is wrong.
      Signed-off-by: default avatarStephen Boyd <bebarino@gmail.com>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Cc: David Woodhouse <David.Woodhouse@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      b8882458
  10. 14 Oct, 2009 1 commit
  11. 31 Oct, 2009 1 commit
  12. 30 Sep, 2009 1 commit
    • sonic zhang's avatar
      Fit blackfin uart over sport driver into common uart inftrastructure. It · 855d8f84
      sonic zhang authored
      is based on the early platform interfaces to get the platform data early
      when the console is initilized.
      
      1. Enable sport uart driver to change uart baud, data bit, stop bit at
         runtime.  Bind the index of uart device nodes to physical index of
         sports.
      
      2. Move all platform data into arch specific board files.  Register
         and probe platform device data in both early and normal stages.
      
      3. Console is registered in sport uart driver as well.
      
      4. Remove 500 us block waiting in sport tx stop code by putting a
         dummy data into tx fifo to make sure the sport tx stops when all bytes
         are shifted out except for the dummy data.
      
      5. clean up a bit and fix up coding style.
      Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: Bryan Wu <cooloney@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      855d8f84
  13. 13 Jul, 2009 1 commit
  14. 25 Sep, 2009 2 commits
    • Lamarque Vieira Souza's avatar
      Work around one problem with my Acer Bluetooth Optical Rechargeable Mouse · 2f89b8bd
      Lamarque Vieira Souza authored
      where the cursor gets stuck at screen's upper-left corner.
      
      Even my notebook's touchpad is not able to move cursor when the bluetooth
      mouse is connected to my Acer Ferrari 4005 notebook.
      
      Using input session instead of hid session solves this problem although
      the cursor still moves a little sluggishly with the bluetooth mouse,
      cursor moves correctly using the touchpad.
      
      My bluetooth mouse used to work well (no sluggish) until kernel 2.6.21,
      since then the problems are getting worse with each kernel release (it got
      sluggish in 2.6.22 and this this upper-left corner problem appeared in
      2.6.28 or 2.6.27).
      
      The patch adds a general quirk handling framework to the HIDP core and
      then uses this framework to implement a quirk for this device.
      
      [akpm@linux-foundation.org: use ARRAY_SIZE()-based search]
      Signed-off-by: default avatarLamarque V. Souza <lamarque@gmail.com>
      Cc: Marcel Holtmann <marcel@holtmann.org>
      Cc: Dave Young <hidave.darkstar@gmail.com>
      Cc: Jiri Kosina <jkosina@suse.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      2f89b8bd
    • Sergei Shtylyov's avatar
      The driver wrongly claimed I/O ports at an address returned by pci_iomap() · 85d8c0b0
      Sergei Shtylyov authored
      -- even if it was passed an MMIO address.  Fix this by claiming/releasing
      all PCI resources in the PCI driver probe/remove handlers instead and get
      rid of the must_free_region flag weirdness (why would Cardbus claim
      anything for us?).
      
      Also, the remove handler was trying to talk to the chip after having
      disabled its address decoders (at least on x86) -- fix this and get rid of
      useless VORTEX_PCI() calls.
      
      While at it, fix some cases of the overly indented code...
      
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      85d8c0b0
  15. 14 Oct, 2009 1 commit
  16. 24 Aug, 2009 2 commits
  17. 17 Aug, 2009 1 commit
  18. 04 Aug, 2009 1 commit
  19. 24 Aug, 2009 1 commit
  20. 20 Aug, 2009 1 commit
    • Sudhakar Rajashekhara's avatar
      Implement memory accessor interface in the MTD layer which enables the · fdfaf855
      Sudhakar Rajashekhara authored
      kernel to access flash data.
      
      This patch adds two new members to the mtd_partition structure, a function
      handler which will be called during setup of the partition and an argument
      to be passed to this setup function.
      
      Example:
      +static struct mtd_partition spi_flash_partitions[] = {
      +       [0] = {
      +               .name       = "U-Boot",
      +               .offset     = 0,
      +               .size       = SZ_256K,
      +               .mask_flags = MTD_WRITEABLE,
      +       },
      +       [1] = {
      +               .name       = "U-Boot Environment",
      +               .offset     = MTDPART_OFS_NXTBLK,
      +               .size       = SZ_64K,
      +               .mask_flags = MTD_WRITEABLE,
      +       },
      +       [2] = {
      +               .name       = "Linux",
      +               .offset     = MTDPART_OFS_NXTBLK,
      +               .size       = SZ_7M,
      +               .mask_flags = 0,
      +       },
      +       [3] = {
      +               .name       = "MAC Address",
      +               .offset     = MTDPART_OFS_NXTBLK,
      +               .size       = SZ_64K,
      +               .mask_flags = 0,
      +               .setup      = davinci_get_mac_addr,
      +               .context    = (void *)0,
      +       },
      +};
      
      The davinci_get_mac_addr function reads the MAC address from
      offset ZERO of last MTD partition.
      Signed-off-by: default avatarSudhakar Rajashekhara <sudhakar.raj@ti.com>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      fdfaf855
  21. 12 Oct, 2009 1 commit
    • Roland McGrath's avatar
      This adds CROSS_COMPILE as a kconfig string so you can store it in · 68134294
      Roland McGrath authored
      .config.  Then you can use plain "make" in the configured kernel build
      directory to do the right cross compilation without setting the
      command-line or environment variable every time.
      
      With this, you can set up different build directories for different kernel
      configurations, whether native or cross-builds, and then use the simple:
      
      	make -C /build/dir M=module-source-dir
      
      idiom to build modules for any given target kernel, indicating which one
      by nothing but the build directory chosen.
      
      I tried a version that defaults the string with env="CROSS_COMPILE" so
      that in a "make oldconfig" with CROSS_COMPILE in the environment you can
      just hit return to store the way you're building it.  But the kconfig
      prompt for strings doesn't give you any way to say you want an empty
      string instead of the default, so I punted that.
      Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      68134294
  22. 05 Sep, 2009 1 commit
  23. 25 Sep, 2009 1 commit
  24. 13 Oct, 2009 1 commit
  25. 12 Oct, 2009 1 commit
    • Henrik Rydberg's avatar
      With the recent system-wide improvements on suspend/resume and EFI booting · 9c2e137f
      Henrik Rydberg authored
      the suspend_resume method of the bcm5974 has broken.  When waking up from
      the S3 state on the MacBookAir, the trackpad is found in a yet unknown
      state, unable to switch to the proper multitouch mode.  The result is a
      frozen touchpad, and a flood of errors of the kind
      
      bcm5974: bad trackpad package, length: 8.
      
      This patch retracts the reset_resume method altogether, falling back on
      the generic unbind/rebind functionality of the usb layer until further
      investigations can be made as how to reset the device when booting from
      efi.
      Signed-off-by: default avatarHenrik Rydberg <rydberg@euromail.se>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      9c2e137f
  26. 29 Sep, 2009 1 commit
  27. 19 Sep, 2009 1 commit
  28. 02 Sep, 2009 1 commit
  29. 13 Oct, 2009 3 commits
    • Joakim Tjernlund's avatar
      The driver always ends a read with a STOP condition which breaks · 9f2e7ffc
      Joakim Tjernlund authored
      subsequent I2C reads/writes in the same transaction as these expect to do
      a repeated START(ReSTART).
      
      This will also help I2C multimaster as the bus will not be released after
      the first read, but when the whole transaction ends.
      Signed-off-by: default avatarJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      9f2e7ffc
    • Alexander Strakh's avatar
      In driver ./drivers/media/video/usbvideo/quickcam_messenger.c in line 91: · 8b0a2547
      Alexander Strakh authored
        91         usb_make_path(dev, cam->input_physname, sizeof(cam->input_physname));
      
      After this line we use strncat:
      
        92         strncat(cam->input_physname, "/input0", sizeof(cam->input_physname));
      
      where sizeof(cam->input_physname) returns length of cam->input_phisname
      without length for null-symbol.  But this parameter must be - "maximum
      numbers of bytes to copy", i.e.:
      sizeof(cam->input_physname)-strlen(cam->input_physname)-1.
      
      In this case, after call to usb_make_path the similar drivers use strlcat.
      
      Like in: drivers/hid/usbhid/hid-core.c:
      1152         usb_make_path(dev, hid->phys, sizeof(hid->phys));
      1153         strlcat(hid->phys, "/input", sizeof(hid->phys));
      
      Found by Linux Driver Verification Project.
      
      Use strlcat instead of strncat.
      Signed-off-by: default avatarAlexander Strakh <strakh@ispras.ru>
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      8b0a2547
    • Alexander Strakh's avatar
      In driver ./drivers/media/video/usbvideo/konicawc.c in line 227: · bfb9b035
      Alexander Strakh authored
      227         usb_make_path(dev, cam->input_physname, sizeof(cam->input_physname));
      
      After this line we use strncat:
      
      228         strncat(cam->input_physname, "/input0", sizeof(cam->input_physname));
      
      where sizeof(cam->input_physname) returns length of cam->input_phisname
      without length for null-symbol.  But this parameter must be - "maximum
      numbers of bytes to copy", i.e.:
      sizeof(cam->input_physname)-strlen(cam->input_physname)-1.
      
      In this case, after call to usb_make_path the similar drivers use strlcat.
      
      Like in drivers/hid/usbhid/hid-core.c:
      1152         usb_make_path(dev, hid->phys, sizeof(hid->phys));
      1153         strlcat(hid->phys, "/input", sizeof(hid->phys));
      
      Found by Linux Driver Verification Project.
      
      Use strlcat instead of strncat.
      Signed-off-by: default avatarAlexander Strakh <strakh@ispras.ru>
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      bfb9b035
  30. 30 Sep, 2009 1 commit
  31. 18 Aug, 2009 1 commit
  32. 13 Oct, 2009 2 commits
    • Robert Jennings's avatar
      The Collaborative Memory Manager (CMM) module allocates individual pages · 4991cbe3
      Robert Jennings authored
      over time that are not migratable.  On a long running system this can
      severely impact the ability to find enough pages to support a hotplug
      memory remove operation.
      
      This patch adds a memory isolation notifier and a memory hotplug notifier.
      The memory isolation notifier will return the number of pages found in
      the range specified.  This is used to determine if all of the used pages
      in a pageblock are owned by the balloon (or other entities in the notifier
      chain).  The hotplug notifier will free pages in the range which is to be
      removed.  The priority of this hotplug notifier is low so that it will be
      called near last, this helps avoids removing loaned pages in operations
      that fail due to other handlers.
      
      CMM activity will be halted when hotplug remove operations are active and
      resume activity after a delay period to allow the hypervisor time to
      adjust.
      Signed-off-by: default avatarRobert Jennings <rcj@linux.vnet.ibm.com>
      Cc: Mel Gorman <mel@csn.ul.ie>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Brian King <brking@linux.vnet.ibm.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Gerald Schaefer <geralds@linux.vnet.ibm.com>
      Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      4991cbe3
    • Robert Jennings's avatar
      Memory balloon drivers can allocate a large amount of memory which is not · b141d0ae
      Robert Jennings authored
      movable but could be freed to accomodate memory hotplug remove.
      
      Prior to calling the memory hotplug notifier chain the memory in the
      pageblock is isolated.  Currently, if the migrate type is not
      MIGRATE_MOVABLE the isolation will not proceed, causing the memory removal
      for that page range to fail.
      
      Rather than failing pageblock isolation if the migrateteype is not
      MIGRATE_MOVABLE, this patch checks if all of the pages in the pageblock,
      and not on the LRU, are owned by a registered balloon driver (or other
      entity) using a notifier chain.  If all of the non-movable pages are owned
      by a balloon, they can be freed later through the memory notifier chain
      and the range can still be isolated in set_migratetype_isolate().
      Signed-off-by: default avatarRobert Jennings <rcj@linux.vnet.ibm.com>
      Cc: Mel Gorman <mel@csn.ul.ie>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Brian King <brking@linux.vnet.ibm.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Gerald Schaefer <geralds@linux.vnet.ibm.com>
      Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      b141d0ae
  33. 19 Sep, 2009 1 commit
  34. 14 Oct, 2009 1 commit