1. 30 9月, 2014 2 次提交
  2. 15 7月, 2014 1 次提交
  3. 03 7月, 2014 1 次提交
  4. 29 3月, 2014 1 次提交
  5. 28 3月, 2014 1 次提交
  6. 04 12月, 2013 1 次提交
    • B
      Bluetooth: btmrvl: use cal-data from device-tree instead of conf file · 433a9389
      Bing Zhao 提交于
      Some ARM versions of Chromebook need to download a new calibration
      data from host driver to firmware. They do have EEPROM but still
      need a piece of new calibration data in test mode.
      
      The cal-data is platform dependent. It's simpler and more feasible
      to use device tree based cal-data instead of configuration file
      based cal-data.
      
      This patch remove configuration file based cal-data downloading
      and replace it using cal-data from device tree.
      
      When CONFIG_OF is not selected, or the specific property is not
      present in the device tree, the calibration downloading will not
      happen.
      
      Cc: Mike Frysinger <vapier@chromium.org>
      Cc: Amitkumar Karwar <akarwar@marvell.com>
      Signed-off-by: NBing Zhao <bzhao@marvell.com>
      Signed-off-by: NHyuckjoo Lee <hyuckjoo.lee@samsung.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      433a9389
  7. 11 10月, 2013 1 次提交
  8. 02 10月, 2013 2 次提交
  9. 21 8月, 2013 1 次提交
  10. 14 6月, 2013 1 次提交
  11. 12 6月, 2013 1 次提交
  12. 24 4月, 2013 2 次提交
  13. 19 4月, 2013 1 次提交
  14. 16 3月, 2013 1 次提交
  15. 11 10月, 2012 1 次提交
  16. 28 9月, 2012 3 次提交
    • A
      Bluetooth: btmrvl: Fix skb buffer overflow · 9cb23dd4
      Andrei Emeltchenko 提交于
      Add extra check to avoid skb buffer overflow. Fixes crash below:
      
       [  101.030427] ------------[ cut here ]------------
       [  101.030459] kernel BUG at net/core/skbuff.c:127!
       [  101.030486] invalid opcode: 0000 [#1] SMP
      ...
       [  101.030806] Pid: 2010, comm: btmrvl_main_ser Not tainted 3.5.0+ #80 Laptop
       [  101.030859] EIP: 0060:[<c14f2ba9>] EFLAGS: 00010282 CPU: 0
       [  101.030894] EIP is at skb_put+0x99/0xa0
       [  101.030919] EAX: 00000080 EBX: f129380b ECX: ef923540 EDX: 00000001
       [  101.030956] ESI: f00a4000 EDI: 00001003 EBP: ed4a5efc ESP: ed4a5ecc
       [  101.030992]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
       [  101.031024] CR0: 8005003b CR2: 08fca014 CR3: 30960000 CR4: 000407f0
       [  101.031062] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
       [  101.031100] DR6: ffff0ff0 DR7: 00000400
       [  101.031125] Process btmrvl_main_ser (pid: 2010, ti=ed4a4000 task=ef923540 task.ti=ed4a4000)
       [  101.031174] Stack:
       [  101.031188]  c18126f8 c1651938 f853f8d2 00001003 00001003 f1292800 f1292808 f129380b
       [  101.031250]  f1292940 f00a4000 eddb1280 efc0f9c0 ed4a5f44 f853f8d2 00000040 00000000
       [  101.031312]  ef923540 c15ee096 ef923540 eddb12d4 00000004 f00a4000 00000040 00000000
       [  101.031376] Call Trace:
       [  101.031396]  [<f853f8d2>] ? btmrvl_sdio_process_int_status+0x272/0x3d0 [btmrvl_sdio]
       [  101.031444]  [<f853f8d2>] btmrvl_sdio_process_int_status+0x272/0x3d0 [btmrvl_sdio]
       [  101.031488]  [<c15ee096>] ? _raw_spin_unlock_irqrestore+0x36/0x70
       [  101.031526]  [<f85a46e4>] btmrvl_service_main_thread+0x244/0x300 [btmrvl]
       [  101.031568]  [<f853fb50>] ? btmrvl_sdio_poll_card_status.isra.6.constprop.7+0x90/0x90 [btmrvl_sdio]
       [  101.031619]  [<c107eda0>] ? try_to_wake_up+0x270/0x270
       [  101.031648]  [<f85a44a0>] ? btmrvl_process_event+0x3b0/0x3b0 [btmrvl]
       [  101.031686]  [<c106d19d>] kthread+0x7d/0x90
       [  101.031713]  [<c106d120>] ? flush_kthread_work+0x150/0x150
       [  101.031745]  [<c15f5a82>] kernel_thread_helper+0x6/0x10
      ...
       [  101.032008] EIP: [<c14f2ba9>] skb_put+0x99/0xa0 SS:ESP 0068:ed4a5ecc
       [  101.056125] ---[ end trace a0bd01d1a9a796c8 ]---
      Signed-off-by: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
      Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      9cb23dd4
    • A
      Bluetooth: btmrvl: Use DIV_ROUND_UP macro · e678bad5
      Andrei Emeltchenko 提交于
      The kernel.h macro DIV_ROUND_UP performs the computation
      (((n) + (d) - 1) / (d))
      Signed-off-by: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
      Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      e678bad5
    • A
      Bluetooth: btmrvl: Correct num_block name · 42632805
      Andrei Emeltchenko 提交于
      Make code readable by correcting name from buf_block_len to num_blocks
      since it represent number of blocks; NOT a length of a block buffer.
      Signed-off-by: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
      Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      42632805
  17. 09 9月, 2012 1 次提交
  18. 07 8月, 2012 1 次提交
  19. 09 7月, 2012 1 次提交
  20. 19 6月, 2012 1 次提交
  21. 05 6月, 2012 1 次提交
  22. 09 5月, 2012 3 次提交
  23. 21 11月, 2011 1 次提交
  24. 01 11月, 2011 1 次提交
  25. 05 10月, 2011 1 次提交
  26. 13 4月, 2011 1 次提交
  27. 22 7月, 2010 3 次提交
  28. 10 5月, 2010 1 次提交
  29. 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
  30. 27 2月, 2010 1 次提交
  31. 04 2月, 2010 1 次提交