deliverable/linux.git
7 years agokthread: add kthread_destroy_worker()
Petr Mladek [Sat, 10 Sep 2016 10:36:35 +0000 (20:36 +1000)] 
kthread: add kthread_destroy_worker()

The current kthread worker users call flush() and stop() explicitly.
This function does the same plus it frees the kthread_worker struct
in one call.

It is supposed to be used together with kthread_create_worker*() that
allocates struct kthread_worker.

Link: http://lkml.kernel.org/r/1470754545-17632-7-git-send-email-pmladek@suse.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Borislav Petkov <bp@suse.de>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agokthread: add kthread_create_worker*()
Petr Mladek [Sat, 10 Sep 2016 10:36:35 +0000 (20:36 +1000)] 
kthread: add kthread_create_worker*()

Kthread workers are currently created using the classic kthread API,
namely kthread_run().  kthread_worker_fn() is passed as the @threadfn
parameter.

This patch defines kthread_create_worker() and
kthread_create_worker_on_cpu() functions that hide implementation details.

They enforce using kthread_worker_fn() for the main thread.  But I doubt
that there are any plans to create any alternative.  In fact, I think that
we do not want any alternative main thread because it would be hard to
support consistency with the rest of the kthread worker API.

The naming and function of kthread_create_worker() is inspired by the
workqueues API like the rest of the kthread worker API.

The kthread_create_worker_on_cpu() variant is motivated by the original
kthread_create_on_cpu().  Note that we need to bind per-CPU kthread
workers already when they are created.  It makes the life easier.
kthread_bind() could not be used later for an already running worker.

This patch does _not_ convert existing kthread workers.  The kthread
worker API need more improvements first, e.g.  a function to destroy the
worker.

IMPORTANT:

kthread_create_worker_on_cpu() allows to use any format of the worker
name, in compare with kthread_create_on_cpu().  The good thing is that it
is more generic.  The bad thing is that most users will need to pass the
cpu number in two parameters, e.g.  kthread_create_worker_on_cpu(cpu,
"helper/%d", cpu).

To be honest, the main motivation was to avoid the need for an empty
va_list.  The only legal way was to create a helper function that would be
called with an empty list.  Other attempts caused compilation warnings or
even errors on different architectures.

There were also other alternatives, for example, using #define or
splitting __kthread_create_worker().  The used solution looked like the
least ugly.

Link: http://lkml.kernel.org/r/1470754545-17632-6-git-send-email-pmladek@suse.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Borislav Petkov <bp@suse.de>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agokthread: allow to call __kthread_create_on_node() with va_list args
Petr Mladek [Sat, 10 Sep 2016 10:36:35 +0000 (20:36 +1000)] 
kthread: allow to call __kthread_create_on_node() with va_list args

kthread_create_on_node() implements a bunch of logic to create the
kthread.  It is already called by kthread_create_on_cpu().

We are going to extend the kthread worker API and will need to call
kthread_create_on_node() with va_list args there.

This patch does only a refactoring and does not modify the existing
behavior.

Link: http://lkml.kernel.org/r/1470754545-17632-5-git-send-email-pmladek@suse.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Borislav Petkov <bp@suse.de>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agokthread/smpboot: do not park in kthread_create_on_cpu()
Petr Mladek [Sat, 10 Sep 2016 10:36:35 +0000 (20:36 +1000)] 
kthread/smpboot: do not park in kthread_create_on_cpu()

kthread_create_on_cpu() was added by the commit 2a1d446019f9a5983e
("kthread: Implement park/unpark facility").  It is currently used only
when enabling new CPU.  For this purpose, the newly created kthread has to
be parked.

The CPU binding is a bit tricky.  The kthread is parked when the CPU has
not been allowed yet.  And the CPU is bound when the kthread is unparked.

The function would be useful for more per-CPU kthreads, e.g.
bnx2fc_thread, fcoethread.  For this purpose, the newly created kthread
should stay in the uninterruptible state.

This patch moves the parking into smpboot.  It binds the thread already
when created.  Then the function might be used universally.  Also the
behavior is consistent with kthread_create() and kthread_create_on_node().

Link: http://lkml.kernel.org/r/1470754545-17632-4-git-send-email-pmladek@suse.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Borislav Petkov <bp@suse.de>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agocrypto: engine: fix linux-next merge conflict
Arnd Bergmann [Sat, 10 Sep 2016 10:36:35 +0000 (20:36 +1000)] 
crypto: engine: fix linux-next merge conflict

A merge conflict between the akpm-current tree and the crypto tree
caused a build failure in ARM allmodconfig today:

crypto/crypto_engine.c: In function 'crypto_transfer_hash_request':
crypto/crypto_engine.c:234:3: error: implicit declaration of function 'queue_kthread_work' [-Werror=implicit-function-declaration]

This adapts the crypto code to the API change.

Fixes: 4cba7cf025f3 ("crypto: engine - permit to enqueue ashash_request")
Fixes: 8ca76638a2d0 ("kthread: kthread worker API cleanup")
Link: http://lkml.kernel.org/r/20160908135724.1311726-1-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agokthread: kthread worker API cleanup
Petr Mladek [Sat, 10 Sep 2016 10:36:34 +0000 (20:36 +1000)] 
kthread: kthread worker API cleanup

A good practice is to prefix the names of functions by the name
of the subsystem.

The kthread worker API is a mix of classic kthreads and workqueues.  Each
worker has a dedicated kthread.  It runs a generic function that process
queued works.  It is implemented as part of the kthread subsystem.

This patch renames the existing kthread worker API to use
the corresponding name from the workqueues API prefixed by
kthread_:

__init_kthread_worker() -> __kthread_init_worker()
init_kthread_worker() -> kthread_init_worker()
init_kthread_work() -> kthread_init_work()
insert_kthread_work() -> kthread_insert_work()
queue_kthread_work() -> kthread_queue_work()
flush_kthread_work() -> kthread_flush_work()
flush_kthread_worker() -> kthread_flush_worker()

Note that the names of DEFINE_KTHREAD_WORK*() macros stay
as they are. It is common that the "DEFINE_" prefix has
precedence over the subsystem names.

Note that INIT() macros and init() functions use different
naming scheme. There is no good solution. There are several
reasons for this solution:

  + "init" in the function names stands for the verb "initialize"
    aka "initialize worker". While "INIT" in the macro names
    stands for the noun "INITIALIZER" aka "worker initializer".

  + INIT() macros are used only in DEFINE() macros

  + init() functions are used close to the other kthread()
    functions. It looks much better if all the functions
    use the same scheme.

  + There will be also kthread_destroy_worker() that will
    be used close to kthread_cancel_work(). It is related
    to the init() function. Again it looks better if all
    functions use the same naming scheme.

  + there are several precedents for such init() function
    names, e.g. amd_iommu_init_device(), free_area_init_node(),
    jump_label_init_type(),  regmap_init_mmio_clk(),

  + It is not an argument but it was inconsistent even before.

Link: http://lkml.kernel.org/r/1470754545-17632-3-git-send-email-pmladek@suse.com
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Borislav Petkov <bp@suse.de>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agokthread: rename probe_kthread_data() to kthread_probe_data()
Petr Mladek [Sat, 10 Sep 2016 10:36:34 +0000 (20:36 +1000)] 
kthread: rename probe_kthread_data() to kthread_probe_data()

Patch series "kthread: Kthread worker API improvements"

The intention of this patchset is to make it easier to manipulate and
maintain kthreads.  Especially, I want to replace all the custom main
cycles with a generic one.  Also I want to make the kthreads sleep in a
consistent state in a common place when there is no work.

This patch (of 11):

A good practice is to prefix the names of functions by the name of the
subsystem.

This patch fixes the name of probe_kthread_data().  The other wrong
functions names are part of the kthread worker API and will be fixed
separately.

Link: http://lkml.kernel.org/r/1470754545-17632-2-git-send-email-pmladek@suse.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Borislav Petkov <bp@suse.de>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agoscripts/tags.sh: enable code completion in VIM
Mathieu Maret [Sat, 10 Sep 2016 10:36:34 +0000 (20:36 +1000)] 
scripts/tags.sh: enable code completion in VIM

Vim, with the omnicppcomplete(#1) plugin, can do code completion using
information build by ctags.  Add flags needed by omnicppcomplete(#2) to
have completion on member of structure.

1: https://github.com/vim-scripts/omnicppcomplete
2: https://github.com/vim-scripts/OmniCppComplete/blob/master/doc/omnicppcomplete.txt#L93

Link: http://lkml.kernel.org/r/20160830191546.4469-1-mathieu.maret@gmail.com
Signed-off-by: Mathieu Maret <mathieu.maret@gmail.com>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agomm: kmemleak: avoid using __va() on addresses that don't have a lowmem mapping
Catalin Marinas [Sat, 10 Sep 2016 10:36:34 +0000 (20:36 +1000)] 
mm: kmemleak: avoid using __va() on addresses that don't have a lowmem mapping

Some of the kmemleak_*() callbacks in memblock, bootmem, CMA convert a
physical address to a virtual one using __va().  However, such physical
addresses may sometimes be located in highmem and using __va() is
incorrect, leading to inconsistent object tracking in kmemleak.

The following functions have been added to the kmemleak API and they take
a physical address as the object pointer.  They only perform the
corresponding action if the address has a lowmem mapping:

kmemleak_alloc_phys
kmemleak_free_part_phys
kmemleak_not_leak_phys
kmemleak_ignore_phys

The affected calling places have been updated to use the new kmemleak
API.

Link: http://lkml.kernel.org/r/1471531432-16503-1-git-send-email-catalin.marinas@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agokdump, vmcoreinfo: report memory sections virtual addresses
Thomas Garnier [Sat, 10 Sep 2016 10:36:34 +0000 (20:36 +1000)] 
kdump, vmcoreinfo: report memory sections virtual addresses

KASLR memory randomization can randomize the base of the physical memory
mapping (PAGE_OFFSET), vmalloc (VMALLOC_START) and vmemmap
(VMEMMAP_START).  Adding these variables on VMCOREINFO so tools can easily
identify the base of each memory section.

Link: http://lkml.kernel.org/r/1471531632-23003-1-git-send-email-thgarnie@google.com
Signed-off-by: Thomas Garnier <thgarnie@google.com>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H . Peter Anvin" <hpa@zytor.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Xunlei Pang <xlpang@redhat.com>
Cc: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Eugene Surovegin <surovegin@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agoinclude/linux/mlx5/device.h: kill BUILD_BUG_ON()s
Andrew Morton [Sat, 10 Sep 2016 10:36:33 +0000 (20:36 +1000)] 
include/linux/mlx5/device.h: kill BUILD_BUG_ON()s

these go splat for me

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agodrivers/net/wireless/intel/iwlwifi/dvm/calib.c: simplfy min() expression
Andrew Morton [Sat, 10 Sep 2016 10:36:33 +0000 (20:36 +1000)] 
drivers/net/wireless/intel/iwlwifi/dvm/calib.c: simplfy min() expression

This cast is no longer needed.

Cc: Johannes Berg <johannes.berg@intel.com>
Cc: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Cc: Intel Linux Wireless <linuxwifi@intel.com>
Cc: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
7 years agoMerge branch 'akpm-current/current'
Stephen Rothwell [Tue, 13 Sep 2016 03:47:33 +0000 (13:47 +1000)] 
Merge branch 'akpm-current/current'

7 years agoMerge remote-tracking branch 'nvdimm/libnvdimm-for-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:29:36 +0000 (13:29 +1000)] 
Merge remote-tracking branch 'nvdimm/libnvdimm-for-next'

7 years agoMerge remote-tracking branch 'rtc/rtc-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:28:00 +0000 (13:28 +1000)] 
Merge remote-tracking branch 'rtc/rtc-next'

7 years agoMerge remote-tracking branch 'coresight/next'
Stephen Rothwell [Tue, 13 Sep 2016 03:26:28 +0000 (13:26 +1000)] 
Merge remote-tracking branch 'coresight/next'

7 years agoMerge remote-tracking branch 'livepatching/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:24:55 +0000 (13:24 +1000)] 
Merge remote-tracking branch 'livepatching/for-next'

7 years agoMerge remote-tracking branch 'y2038/y2038'
Stephen Rothwell [Tue, 13 Sep 2016 03:23:17 +0000 (13:23 +1000)] 
Merge remote-tracking branch 'y2038/y2038'

7 years agoMerge remote-tracking branch 'clk/clk-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:17:55 +0000 (13:17 +1000)] 
Merge remote-tracking branch 'clk/clk-next'

7 years agoMerge remote-tracking branch 'dma-buf/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:17:49 +0000 (13:17 +1000)] 
Merge remote-tracking branch 'dma-buf/for-next'

7 years agoMerge remote-tracking branch 'pwm/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:15:52 +0000 (13:15 +1000)] 
Merge remote-tracking branch 'pwm/for-next'

7 years agoMerge remote-tracking branch 'gpio/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:13:14 +0000 (13:13 +1000)] 
Merge remote-tracking branch 'gpio/for-next'

7 years agoMerge remote-tracking branch 'rpmsg/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:07:12 +0000 (13:07 +1000)] 
Merge remote-tracking branch 'rpmsg/for-next'

7 years agoMerge remote-tracking branch 'remoteproc/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:07:00 +0000 (13:07 +1000)] 
Merge remote-tracking branch 'remoteproc/for-next'

7 years agoMerge remote-tracking branch 'pinctrl/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:05:24 +0000 (13:05 +1000)] 
Merge remote-tracking branch 'pinctrl/for-next'

7 years agoMerge remote-tracking branch 'libata/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:03:44 +0000 (13:03 +1000)] 
Merge remote-tracking branch 'libata/for-next'

7 years agoMerge remote-tracking branch 'scsi/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 03:02:05 +0000 (13:02 +1000)] 
Merge remote-tracking branch 'scsi/for-next'

7 years agoMerge remote-tracking branch 'cgroup/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:53:12 +0000 (12:53 +1000)] 
Merge remote-tracking branch 'cgroup/for-next'

7 years agoMerge remote-tracking branch 'extcon/extcon-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:51:38 +0000 (12:51 +1000)] 
Merge remote-tracking branch 'extcon/extcon-next'

7 years agoMerge remote-tracking branch 'char-misc/char-misc-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:49:15 +0000 (12:49 +1000)] 
Merge remote-tracking branch 'char-misc/char-misc-next'

7 years agoMerge remote-tracking branch 'staging/staging-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:47:30 +0000 (12:47 +1000)] 
Merge remote-tracking branch 'staging/staging-next'

7 years agoMerge remote-tracking branch 'usb-chipidea-next/ci-for-usb-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:45:57 +0000 (12:45 +1000)] 
Merge remote-tracking branch 'usb-chipidea-next/ci-for-usb-next'

7 years agoMerge remote-tracking branch 'usb-serial/usb-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:44:24 +0000 (12:44 +1000)] 
Merge remote-tracking branch 'usb-serial/usb-next'

7 years agoMerge remote-tracking branch 'usb-gadget/next'
Stephen Rothwell [Tue, 13 Sep 2016 02:42:48 +0000 (12:42 +1000)] 
Merge remote-tracking branch 'usb-gadget/next'

7 years agoMerge remote-tracking branch 'usb/usb-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:41:11 +0000 (12:41 +1000)] 
Merge remote-tracking branch 'usb/usb-next'

7 years agoMerge remote-tracking branch 'tty/tty-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:39:35 +0000 (12:39 +1000)] 
Merge remote-tracking branch 'tty/tty-next'

7 years agoMerge remote-tracking branch 'driver-core/driver-core-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:37:59 +0000 (12:37 +1000)] 
Merge remote-tracking branch 'driver-core/driver-core-next'

7 years agoMerge remote-tracking branch 'ipmi/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:37:56 +0000 (12:37 +1000)] 
Merge remote-tracking branch 'ipmi/for-next'

7 years agoMerge remote-tracking branch 'leds/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:36:19 +0000 (12:36 +1000)] 
Merge remote-tracking branch 'leds/for-next'

7 years agoMerge remote-tracking branch 'hsi/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:34:45 +0000 (12:34 +1000)] 
Merge remote-tracking branch 'hsi/for-next'

7 years agoMerge remote-tracking branch 'chrome-platform/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:34:41 +0000 (12:34 +1000)] 
Merge remote-tracking branch 'chrome-platform/for-next'

7 years agoMerge remote-tracking branch 'drivers-x86/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:33:09 +0000 (12:33 +1000)] 
Merge remote-tracking branch 'drivers-x86/for-next'

7 years agoMerge remote-tracking branch 'workqueues/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:31:37 +0000 (12:31 +1000)] 
Merge remote-tracking branch 'workqueues/for-next'

7 years agoMerge remote-tracking branch 'percpu/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:30:04 +0000 (12:30 +1000)] 
Merge remote-tracking branch 'percpu/for-next'

7 years agoMerge remote-tracking branch 'xen-tip/linux-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:28:32 +0000 (12:28 +1000)] 
Merge remote-tracking branch 'xen-tip/linux-next'

7 years agoextcon: Add support for qcom SPMI PMIC USB id detection hardware
Stephen Boyd [Fri, 9 Sep 2016 21:48:47 +0000 (14:48 -0700)] 
extcon: Add support for qcom SPMI PMIC USB id detection hardware

Some Qualcomm PMICs have a misc device that performs USB id pin
detection via an interrupt. When the interrupt triggers, we
should read the interrupt line to see if it has gone high or low.
If the interrupt is low then the ID pin is grounded, and if the
interrupt is high then the ID pin is being held high.

Cc: Roger Quadros <rogerq@ti.com>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
[cw00.choi: Edited the driver description and added the author information]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoextcon: Use the extcon_set_state_sync() instead of deprecated functions
Chanwoo Choi [Tue, 16 Aug 2016 06:55:34 +0000 (15:55 +0900)] 
extcon: Use the extcon_set_state_sync() instead of deprecated functions

This patch alters the renamed extcon API to set the state of the external
connectors instead of deprecated extcon_set_cable_state_().

Because the patch[1] modifies the function name to maintain the function
naming pattern.
- extcon_set_cable_state_() -> extcon_set_state_sync()
- extcon_get_cable_state_() -> extcon_get_state()

[1] https://lkml.org/lkml/2016/8/4/729
- extcon: Rename the extcon_set/get_state() to maintain the function naming pattern

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Roger Quadros <rogerq@ti.com>
7 years agoextcon: axp288: Fix spelling mistake
Colin Ian King [Wed, 17 Aug 2016 18:02:35 +0000 (19:02 +0100)] 
extcon: axp288: Fix spelling mistake

This patch fixes the spelling mistake in dev_dbg messages.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
[cw00.choi: Modify the patch title/description]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoextcon: max14577: Change Krzysztof Kozlowski's email to kernel.org
Krzysztof Kozlowski [Wed, 17 Aug 2016 12:07:44 +0000 (14:07 +0200)] 
extcon: max14577: Change Krzysztof Kozlowski's email to 

Change my email address to kernel.org instead of Samsung one for the
purpose of any future contact.  The copyrights remain untouched and are
attributed to Samsung.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoMerge remote-tracking branch 'kvm-ppc-paulus/kvm-ppc-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:26:25 +0000 (12:26 +1000)] 
Merge remote-tracking branch 'kvm-ppc-paulus/kvm-ppc-next'

7 years agoMerge remote-tracking branch 'kvm-mips/next'
Stephen Rothwell [Tue, 13 Sep 2016 02:24:52 +0000 (12:24 +1000)] 
Merge remote-tracking branch 'kvm-mips/next'

7 years agoMerge remote-tracking branch 'kvm-arm/next'
Stephen Rothwell [Tue, 13 Sep 2016 02:23:19 +0000 (12:23 +1000)] 
Merge remote-tracking branch 'kvm-arm/next'

7 years agoMerge remote-tracking branch 'kvm/linux-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:21:37 +0000 (12:21 +1000)] 
Merge remote-tracking branch 'kvm/linux-next'

7 years agoMerge remote-tracking branch 'rcu/rcu/next'
Stephen Rothwell [Tue, 13 Sep 2016 02:12:37 +0000 (12:12 +1000)] 
Merge remote-tracking branch 'rcu/rcu/next'

7 years agoMerge remote-tracking branch 'ftrace/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:05:37 +0000 (12:05 +1000)] 
Merge remote-tracking branch 'ftrace/for-next'

7 years agoMerge remote-tracking branch 'irqchip/irqchip/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:04:04 +0000 (12:04 +1000)] 
Merge remote-tracking branch 'irqchip/irqchip/for-next'

7 years agoMerge remote-tracking branch 'edac-amd/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 02:02:31 +0000 (12:02 +1000)] 
Merge remote-tracking branch 'edac-amd/for-next'

7 years agoMerge remote-tracking branch 'tip/auto-latest'
Stephen Rothwell [Tue, 13 Sep 2016 01:53:17 +0000 (11:53 +1000)] 
Merge remote-tracking branch 'tip/auto-latest'

7 years agoMerge remote-tracking branch 'spi/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:51:21 +0000 (11:51 +1000)] 
Merge remote-tracking branch 'spi/for-next'

7 years agoMerge remote-tracking branch 'mailbox/mailbox-for-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:49:49 +0000 (11:49 +1000)] 
Merge remote-tracking branch 'mailbox/mailbox-for-next'

7 years agoMerge remote-tracking branch 'devicetree/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:48:16 +0000 (11:48 +1000)] 
Merge remote-tracking branch 'devicetree/for-next'

7 years agoMerge remote-tracking branch 'audit/next'
Stephen Rothwell [Tue, 13 Sep 2016 01:46:41 +0000 (11:46 +1000)] 
Merge remote-tracking branch 'audit/next'

7 years agoMerge remote-tracking branch 'jc_docs/docs-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:45:07 +0000 (11:45 +1000)] 
Merge remote-tracking branch 'jc_docs/docs-next'

7 years agoMerge remote-tracking branch 'vfio/next'
Stephen Rothwell [Tue, 13 Sep 2016 01:43:34 +0000 (11:43 +1000)] 
Merge remote-tracking branch 'vfio/next'

7 years agoMerge remote-tracking branch 'iommu/next'
Stephen Rothwell [Tue, 13 Sep 2016 01:41:59 +0000 (11:41 +1000)] 
Merge remote-tracking branch 'iommu/next'

7 years agoMerge remote-tracking branch 'tpmdd/next'
Stephen Rothwell [Tue, 13 Sep 2016 01:41:55 +0000 (11:41 +1000)] 
Merge remote-tracking branch 'tpmdd/next'

7 years agoMerge remote-tracking branch 'selinux/next'
Stephen Rothwell [Tue, 13 Sep 2016 01:37:45 +0000 (11:37 +1000)] 
Merge remote-tracking branch 'selinux/next'

7 years agoMerge remote-tracking branch 'keys/keys-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:36:05 +0000 (11:36 +1000)] 
Merge remote-tracking branch 'keys/keys-next'

7 years agoMerge remote-tracking branch 'integrity/next'
Stephen Rothwell [Tue, 13 Sep 2016 01:36:01 +0000 (11:36 +1000)] 
Merge remote-tracking branch 'integrity/next'

7 years agoMerge remote-tracking branch 'security/next'
Stephen Rothwell [Tue, 13 Sep 2016 01:31:53 +0000 (11:31 +1000)] 
Merge remote-tracking branch 'security/next'

7 years agoMerge remote-tracking branch 'regulator/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:29:53 +0000 (11:29 +1000)] 
Merge remote-tracking branch 'regulator/for-next'

7 years agoMerge remote-tracking branch 'omap_dss2/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:28:21 +0000 (11:28 +1000)] 
Merge remote-tracking branch 'omap_dss2/for-next'

7 years agoMerge remote-tracking branch 'battery/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:26:47 +0000 (11:26 +1000)] 
Merge remote-tracking branch 'battery/for-next'

7 years agoMerge remote-tracking branch 'mfd/for-mfd-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:25:12 +0000 (11:25 +1000)] 
Merge remote-tracking branch 'mfd/for-mfd-next'

7 years agoMerge remote-tracking branch 'md/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:17:56 +0000 (11:17 +1000)] 
Merge remote-tracking branch 'md/for-next'

7 years agoMerge remote-tracking branch 'mmc-uh/next'
Stephen Rothwell [Tue, 13 Sep 2016 01:16:19 +0000 (11:16 +1000)] 
Merge remote-tracking branch 'mmc-uh/next'

7 years agoMerge remote-tracking branch 'lightnvm/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:14:43 +0000 (11:14 +1000)] 
Merge remote-tracking branch 'lightnvm/for-next'

7 years agoextcon: Introduce EXTCON_PROP_DISP_HPD property
Chris Zhong [Sat, 10 Sep 2016 02:15:44 +0000 (19:15 -0700)] 
extcon: Introduce EXTCON_PROP_DISP_HPD property

EXTCON_PROP_DISP_HPD is need by display port, if the system has no hpd
interrupt, this property can be used.
- HPD (Hot Plug Detect) send the signal whether display device is on or off
  to source device.

Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
[cw00.choi: Add the description of HPD and full name of HPD]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoMerge remote-tracking branch 'block/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:05:43 +0000 (11:05 +1000)] 
Merge remote-tracking branch 'block/for-next'

7 years agoMerge remote-tracking branch 'input/next'
Stephen Rothwell [Tue, 13 Sep 2016 01:04:09 +0000 (11:04 +1000)] 
Merge remote-tracking branch 'input/next'

7 years agoMerge remote-tracking branch 'sound-asoc/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:02:25 +0000 (11:02 +1000)] 
Merge remote-tracking branch 'sound-asoc/for-next'

7 years agoMerge remote-tracking branch 'sound/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 01:00:49 +0000 (11:00 +1000)] 
Merge remote-tracking branch 'sound/for-next'

7 years agoMerge remote-tracking branch 'regmap/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 00:59:17 +0000 (10:59 +1000)] 
Merge remote-tracking branch 'regmap/for-next'

7 years agoMerge remote-tracking branch 'kspp/for-next/kspp'
Stephen Rothwell [Tue, 13 Sep 2016 00:50:13 +0000 (10:50 +1000)] 
Merge remote-tracking branch 'kspp/for-next/kspp'

7 years agoMerge remote-tracking branch 'kbuild/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 00:41:10 +0000 (10:41 +1000)] 
Merge remote-tracking branch 'kbuild/for-next'

7 years agoMerge remote-tracking branch 'sunxi/sunxi/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 00:39:58 +0000 (10:39 +1000)] 
Merge remote-tracking branch 'sunxi/sunxi/for-next'

7 years agoMerge remote-tracking branch 'drm-misc/topic/drm-misc'
Stephen Rothwell [Tue, 13 Sep 2016 00:38:38 +0000 (10:38 +1000)] 
Merge remote-tracking branch 'drm-misc/topic/drm-misc'

7 years agoMerge remote-tracking branch 'drm-tegra/drm/tegra/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 00:37:29 +0000 (10:37 +1000)] 
Merge remote-tracking branch 'drm-tegra/drm/tegra/for-next'

7 years agoMerge remote-tracking branch 'drm-intel/for-linux-next'
Stephen Rothwell [Tue, 13 Sep 2016 00:35:41 +0000 (10:35 +1000)] 
Merge remote-tracking branch 'drm-intel/for-linux-next'

7 years agoMerge remote-tracking branch 'drm-panel/drm/panel/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 00:34:07 +0000 (10:34 +1000)] 
Merge remote-tracking branch 'drm-panel/drm/panel/for-next'

7 years agoMerge remote-tracking branch 'drm/drm-next'
Stephen Rothwell [Tue, 13 Sep 2016 00:31:55 +0000 (10:31 +1000)] 
Merge remote-tracking branch 'drm/drm-next'

7 years agoMerge remote-tracking branch 'crypto/master'
Stephen Rothwell [Tue, 13 Sep 2016 00:30:14 +0000 (10:30 +1000)] 
Merge remote-tracking branch 'crypto/master'

7 years agoMerge remote-tracking branch 'nand/nand/next'
Stephen Rothwell [Tue, 13 Sep 2016 00:28:41 +0000 (10:28 +1000)] 
Merge remote-tracking branch 'nand/nand/next'

7 years agoMerge branch 'drm-tda998x-devel' of git://git.armlinux.org.uk/~rmk/linux-arm into...
Dave Airlie [Tue, 13 Sep 2016 00:28:17 +0000 (10:28 +1000)] 
Merge branch 'drm-tda998x-devel' of git://git.armlinux.org.uk/~rmk/linux-arm into drm-next

This adds the ASoC codec interfaces for TDA998x HDMI audio from
Jyri Sarha.

* 'drm-tda998x-devel' of git://git.armlinux.org.uk/~rmk/linux-arm:
  ARM: dts: am335x-boneblack: Add HDMI audio support
  drm/i2c: tda998x: Register ASoC hdmi-codec and add audio DT binding
  drm/i2c: tda998x: Improve tda998x_configure_audio() audio related pdata

7 years agoMerge remote-tracking branch 'mtd/master'
Stephen Rothwell [Tue, 13 Sep 2016 00:27:30 +0000 (10:27 +1000)] 
Merge remote-tracking branch 'mtd/master'

7 years agoMerge remote-tracking branch 'rdma/for-next'
Stephen Rothwell [Tue, 13 Sep 2016 00:26:17 +0000 (10:26 +1000)] 
Merge remote-tracking branch 'rdma/for-next'

Initial merge window candidates for 4.9

- Merge in hns-roce driver (required also pulling in the current net-next
  from DaveM)
- Merge in shared mlx5 code (which DaveM also took)

# gpg: Signature made Fri 26 Aug 2016 01:19:54 AEST using RSA key ID 0E572FDD
# gpg: Can't check signature: public key not found

7 years agoMerge tag 'sunxi-drm-for-4.9' of https://git.kernel.org/pub/scm/linux/kernel/git...
Dave Airlie [Tue, 13 Sep 2016 00:24:52 +0000 (10:24 +1000)] 
Merge tag 'sunxi-drm-for-4.9' of https://git./linux/kernel/git/mripard/linux into drm-next

Allwinner DRM changes for 4.9

This tag adds the support of a new SoC to sun4i-drm (the Allwinner A33),
and the usual few fixes and enhancements

* tag 'sunxi-drm-for-4.9' of https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux:
  drm/sun4i: add missing header dependencies
  drm/sun4i: Add a DRC driver
  drm/sun4i: backend: Handle the SAT
  drm/sun4i: support A33 tcon
  drm/sun4i: support TCONs without channel 1
  drm/sun4i: Clear encoder->bridge if a bridge is not found
  drm/sun4i: rgb: add missing calls to drm_panel_{prepare,unprepare}
  drm/sun4i: Remove redundant dev_err call in sun4i_tcon_init_regmap()
  drm/sun4i: Add bridge support
  drm/sun4i: Move panel retrieval in RGB connector
  drm/sun4i: Store TCON's device structure pointer

7 years agoMerge remote-tracking branch 'mac80211-next/master'
Stephen Rothwell [Tue, 13 Sep 2016 00:24:21 +0000 (10:24 +1000)] 
Merge remote-tracking branch 'mac80211-next/master'

7 years agoMerge remote-tracking branch 'bluetooth/master'
Stephen Rothwell [Tue, 13 Sep 2016 00:22:47 +0000 (10:22 +1000)] 
Merge remote-tracking branch 'bluetooth/master'

7 years agoMerge tag 'topic/drm-misc-2016-09-08' of git://anongit.freedesktop.org/drm-intel...
Dave Airlie [Tue, 13 Sep 2016 00:19:38 +0000 (10:19 +1000)] 
Merge tag 'topic/drm-misc-2016-09-08' of git://anongit.freedesktop.org/drm-intel into drm-next

* tag 'topic/drm-misc-2016-09-08' of git://anongit.freedesktop.org/drm-intel:
  drm: Fix error path in drm_mode_page_flip_ioctl()
  Revert "drm: Unify handling of blob and object properties"
  drm/udl: implement usb_driver suspend/resume.
  drm: fix signed integer overflow
  drm/atomic: Reject properties not part of the object.
  drm/doc: Add a few words on validation with IGT

This page took 0.044166 seconds and 5 git commands to generate.