[PATCH 07/12] staging: usbip: userspace: move sysfs_utils to libsrc

2014-03-04 Thread Valentina Manea
Since it offers a API to both usbip tools and libusbip, it is more appropriate to be place in the library. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/libsrc/Makefile.am | 3 +- .../staging/usbip/userspace/libsrc/sysfs_utils.c | 36 ++

[PATCH 11/12] staging: usbip: userspace: remove libsysfs flag and autoconf check

2014-03-04 Thread Valentina Manea
libsysfs is now completely removed from USB/IP. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/configure.ac | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/usbip/userspace/configure.ac b/drivers/staging/usbip/userspace/configure.ac index

[PATCH 01/12] staging: usbip: userspace: migrate usbip_bind to libudev

2014-03-04 Thread Valentina Manea
This patch adds autoconf check for libudev and migrates usbip_bind to the new library. libsysfs will still be used until all userspace is modified. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/configure.ac | 6 + .../staging/usbip/userspace/libsrc/usbip_common.h

[PATCH 03/12] staging: usbip: userspace: migrate usbip_unbind to libudev

2014-03-04 Thread Valentina Manea
This patch modifies usbip_unbind to use libudev. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/src/usbip_unbind.c | 92 +++--- 1 file changed, 29 insertions(+), 63 deletions(-) diff --git a/drivers/staging/usbip/userspace/src/usbip_unbind.c

[PATCH 00/12] Migrate usbip-utils to libudev

2014-03-04 Thread Valentina Manea
This patch series modifies the USB/IP userspace side (usbip-utils) to use libudev instead of libsysfs. This change was necessary as libsysfs is no longer maintained and we have discovered a bug that affected USB/IP. On the other hand, libudev is actively maintained and recommended for interacting

[PATCH 05/12] staging: usbip: userspace: re-add interface information listing

2014-03-04 Thread Valentina Manea
This was deleted in the driver conversion patch. It didn't need to be deleted; showing more information is ok. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/src/usbip_list.c | 20 +++- drivers/staging/usbip/userspace/src/usbipd.c | 16 +++- 2

[PATCH 02/12] staging: usbip: userspace: remove useless libsysfs includes

2014-03-04 Thread Valentina Manea
This patch removes useless libsysfs.h includes in various userspace files. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/src/usbip_attach.c | 1 - drivers/staging/usbip/userspace/src/usbip_detach.c | 2 -- drivers/staging/usbip/userspace/src/usbip_network.h | 1 - 3 files

Re: [PATCH v2 02/11] drivercore: Bind/unbind power domain on probe/remove

2014-03-04 Thread Philipp Zabel
Hi Tomasz, On Mon, Mar 3, 2014 at 5:02 PM, Tomasz Figa wrote: > On a number of platforms, devices are part of controllable power > domains, which need to be enabled before such devices can be accessed > and may be powered down when the device is idle to save some power. > This means that on

[PATCH] staging: usbip: userspace: increase version to 2.0

2014-03-04 Thread Valentina Manea
Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/usbip/userspace/configure.ac b/drivers/staging/usbip/userspace/configure.ac index 25bf160..607d05c 100644 ---

Re: PROBLEM: Inotify leaks file descriptors.

2014-03-04 Thread David Turner
(script attached) On Tue, March 4, 2014 2:09 pm, David Turner wrote: > I apologize for the slightly convoluted reproduction steps here, > but I was not easily able to find a simpler test case in the > time that I had available. > > First, you'll need Facebook's watchman: >

Re: [PATCH] MAINTAINERS: add maintainers for arm64 acpi

2014-03-04 Thread Graeme Gregory
On Tue, Mar 04, 2014 at 06:59:46PM +0800, Grant Likely wrote: > On Tue, Mar 4, 2014 at 10:28 AM, Randy Dunlap wrote: > > On 03/03/2014 06:21 PM, Joe Perches wrote: > >> On Tue, 2014-03-04 at 10:15 +0800, Graeme Gregory wrote: > >>> Add maintainers for the arm-core file for arm64 ACPI support > >>

Re: [PATCH] staging: usbip: userspace: increase version to 2.0

2014-03-04 Thread Greg KH
On Tue, Mar 04, 2014 at 09:16:39PM +0200, Valentina Manea wrote: > Signed-off-by: Valentina Manea > --- > drivers/staging/usbip/userspace/configure.ac | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/usbip/userspace/configure.ac >

Re: PROBLEM: Inotify leaks file descriptors.

2014-03-04 Thread David Turner
(script attached) On Tue, March 4, 2014 2:09 pm, David Turner wrote: > I apologize for the slightly convoluted reproduction steps here, > but I was not easily able to find a simpler test case in the > time that I had available. > > First, you'll need Facebook's watchman: >

[PATCH] staging: usbip: let client choose device configuration

2014-03-04 Thread Valentina Manea
Since usbip-host is now a device driver and the client has full access to the shared device, it makes sense to let the client choose device configuration. Signed-off-by: Valentina Manea --- drivers/staging/usbip/stub_dev.c | 10 +- drivers/staging/usbip/stub_rx.c | 26

Re: [PATCH 0/3] Reorder drivers/video directory

2014-03-04 Thread Randy Dunlap
On 03/03/2014 12:45 AM, Tomi Valkeinen wrote: > On 27/02/14 13:54, Tomi Valkeinen wrote: >> Hi, >> >> This is a re-send of the series, with RFC removed from the subject, and a >> bunch >> of acks added. >> >> I'm cc'ing more people, to make sure this doesn't come as a surprise, and to >> make

[PATCH] staging: usbip: trigger driver probing after unbinding from usbip-host

2014-03-04 Thread Valentina Manea
A sysfs attribute is used to announce kernel space that a new driver probing session should be triggered for the just unbinded device. In order to have the address of struct device associated to this USB device, a new member has been added to struct bus_id_priv. Signed-off-by: Valentina Manea

[PATCH] staging: usbip: claim ports used by shared devices

2014-03-04 Thread Valentina Manea
Signed-off-by: Valentina Manea --- drivers/staging/usbip/stub_dev.c | 22 ++ drivers/usb/core/devio.c | 17 - drivers/usb/core/hub.c | 2 ++ drivers/usb/core/usb.h | 6 +- include/linux/usb.h | 23

Re: [PATCH 6/8] evm: enable key retention service automatically

2014-03-04 Thread Mimi Zohar
On Tue, 2014-03-04 at 16:10 +0200, Dmitry Kasatkin wrote: > On Tue, Mar 4, 2014 at 4:02 AM, Mimi Zohar wrote: > > On Fri, 2014-02-28 at 16:59 +0200, Dmitry Kasatkin wrote: > >> If keys are not enabled, EVM is not visible in the configuration menu. > >> It may be difficult to figure out what to

Re: [PATCH 2/2] usb: Make DELAY_INIT quirk wait 100ms between Get Configuration requests

2014-03-04 Thread Julius Werner
> What am I supposed to do with this line? :) > Oh damn, sorry, forgot to take that out on the second one. We have this really annoying commit hook that adds them automatically. v2 incoming... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v2] mmc: sdhci: add quirk for broken write protect detection

2014-03-04 Thread Sören Brinkmann
Hi Eli, On Sun, 2014-03-02 at 01:20PM +0200, Eli Billauer wrote: > The write protection signal is absent on a board based upon Xilinx' Zynq > processor ("ZyBo"). This leads the kernel to think that the MicroSD card is > write protected, and causes a kernel panic during boot, as root fails to >

Re: [PATCH v2 23/23] vmw_pvscsi: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-03-04 Thread Arvind Kumar
Hi Alexander, This looks fine to me. Acked-by: Arvind Kumar Thanks! Arvind - Original Message - From: "Alexander Gordeev" To: linux-kernel@vger.kernel.org Cc: "Alexander Gordeev" , "Arvind Kumar" , pv-driv...@vmware.com, linux-s...@vger.kernel.org, linux-...@vger.kernel.org Sent:

[PATCH v10 1/3] mmc: sdhci-msm: Qualcomm SDHCI binding documentation

2014-03-04 Thread Georgi Djakov
This patch adds the device-tree binding documentation for Qualcomm SDHCI driver. It contains the differences between the core properties in mmc.txt and the properties used by the sdhci-msm driver. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/mmc/sdhci-msm.txt | 63

[PATCH v10 3/3] mmc: sdhci-msm: Add platform_execute_tuning implementation

2014-03-04 Thread Georgi Djakov
This patch adds implementation for platform specific tuning in order to support HS200 bus speed mode on Qualcomm SDHCI controller. Signed-off-by: Asutosh Das Signed-off-by: Venkat Gopalakrishnan Signed-off-by: Georgi Djakov --- drivers/mmc/host/sdhci-msm.c | 425

[PATCH v10 2/3] mmc: sdhci-msm: Initial support for Qualcomm chipsets

2014-03-04 Thread Georgi Djakov
This platform driver adds the initial support of Secure Digital Host Controller Interface compliant controller found in Qualcomm chipsets. Signed-off-by: Asutosh Das Signed-off-by: Venkat Gopalakrishnan Tested-by: Ivan T. Ivanov Signed-off-by: Georgi Djakov --- drivers/mmc/host/Kconfig |

[PATCH v2 2/2] usb: Make DELAY_INIT quirk wait 100ms between Get Configuration requests

2014-03-04 Thread Julius Werner
The DELAY_INIT quirk only reduces the frequency of enumeration failures with the Logitech HD Pro C920 and C930e webcams, but does not quite eliminate them. We have found that adding a delay of 100ms between the first and second Get Configuration request makes the device enumerate perfectly

[PATCH v10 0/3] mmc: sdhci-msm: Add support for Qualcomm chipsets

2014-03-04 Thread Georgi Djakov
This patchset adds basic support of the Secure Digital Host Controller Interface compliant controller found in Qualcomm SoCs. Tested with eMMC and various micro SD cards on APQ8074 Dragonboard. Applies to linux-next. Changes from v9: - Make platform_execute_tuning() static (suggested by Josh

Re: Making a universal list of syscalls?

2014-03-04 Thread H. Peter Anvin
On 02/27/2014 12:40 PM, Andy Lutomirski wrote: > Currently, dealing with Linux syscalls in an architecture-independent > way is a mess. Here are some issues: > > 1. There's no clean way to map between syscall names and numbers on > different architectures. The kernel contains a number of

[PATCH] staging: usbip: userspace: don't throw error when trying to read configuration specific attributes

2014-03-04 Thread Valentina Manea
When a device has just been bound to usbip-host but the client hasn't set a configuration on it, certain attributes will not exist. Don't treat this as an error. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/libsrc/usbip_common.c | 17 +++-- 1 file changed, 15

[PATCH] staging: usbip: userspace: add hwdata as optional dependency in README

2014-03-04 Thread Valentina Manea
This is an optional dependency since USB/IP can fully work without it. However, it is needed to display device information such as vendor. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/README | 4 1 file changed, 4 insertions(+) diff --git

RE: [PATCH net-next] hyperv: Move state setting for link query

2014-03-04 Thread Haiyang Zhang
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Monday, March 3, 2014 10:10 PM > To: Haiyang Zhang; da...@davemloft.net; net...@vger.kernel.org > Cc: KY Srinivasan; o...@aepfle.de; linux-kernel@vger.kernel.org; driverdev- > de...@linuxdriverproject.org >

Re: [PATCH RFC 3/6] tty: Rename xilinx_uart -> cadence_uart

2014-03-04 Thread One Thousand Gnomes
On Tue, 4 Mar 2014 09:17:26 -0800 Soren Brinkmann wrote: > The UART controller in Zynq is Cadence IP. Rename the driver > accordingly. > Furthermore, this affects the DT bindings: > - the compatibility string changes to 'cdns,uart-r1p8' > - clock inputs are named according to Cadence

Re: [PATCH] staging: usbip: claim ports used by shared devices

2014-03-04 Thread Alan Stern
On Tue, 4 Mar 2014, Valentina Manea wrote: > diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c > index 90e18f6..a91dc1f 100644 > --- a/drivers/usb/core/devio.c > +++ b/drivers/usb/core/devio.c > @@ -62,23 +62,6 @@ > /* Mutual exclusion for removal, open, and release */ >

Re: Stable backport of cifs nlink workaround?

2014-03-04 Thread Greg Kroah-Hartman
On Tue, Feb 25, 2014 at 09:43:06AM -0800, Jeff Layton wrote: > On Tue, 25 Feb 2014 08:11:56 -0800 > Greg Kroah-Hartman wrote: > > > On Tue, Feb 25, 2014 at 03:24:43PM +, Sitsofe Wheeler wrote: > > > Hi, > > > > > > Is there any chance that 74d290da476f672ad756634d12aa707375d3564d > > >

Re: [PATCH] cgroup: missing rcu read lock around task_css_set

2014-03-04 Thread Tejun Heo
On Tue, Mar 04, 2014 at 12:20:45PM -0500, Sasha Levin wrote: > >Hrm... there is a PF_EXITING check there already: > > > > #define task_css_set_check(task, __c)\ > > rcu_dereference_check((task)->cgroups,\ > > lockdep_is_held(_mutex) ||\ > >

Re: [PATCH v2] usb: gadget: return the right length in ffs_epfile_io()

2014-03-04 Thread Michal Nazarewicz
>> On 03/04/2014 10:34 AM, Chuansheng Liu wrote: >> >@@ -845,12 +845,14 @@ static ssize_t ffs_epfile_io(struct file *file, >> >struct ffs_io_data *io_data) >> > * we may end up with more data then user space has >> > * space for. >> > */

Re: [PATCH][RESEND 3] hwrng: add randomness to system from rng sources

2014-03-04 Thread Jason Cooper
On Tue, Mar 04, 2014 at 11:01:49AM -0800, Kees Cook wrote: > On Tue, Mar 4, 2014 at 7:38 AM, Jason Cooper wrote: > > Kees, Ted, > > > > On Mon, Mar 03, 2014 at 03:51:48PM -0800, Kees Cook wrote: > >> When bringing a new RNG source online, it seems like it would make sense > >> to use some of its

Re: [PATCH v2] usb: gadget: return the right length in ffs_epfile_io()

2014-03-04 Thread Felipe Balbi
On Tue, Mar 04, 2014 at 08:53:40PM +0100, Michal Nazarewicz wrote: > >> On 03/04/2014 10:34 AM, Chuansheng Liu wrote: > >> >@@ -845,12 +845,14 @@ static ssize_t ffs_epfile_io(struct file *file, > >> >struct ffs_io_data *io_data) > >> > * we may end up with more data then

Re: [PATCH][RESEND 3] hwrng: add randomness to system from rng sources

2014-03-04 Thread Kees Cook
On Tue, Mar 4, 2014 at 11:53 AM, Jason Cooper wrote: > On Tue, Mar 04, 2014 at 11:01:49AM -0800, Kees Cook wrote: >> On Tue, Mar 4, 2014 at 7:38 AM, Jason Cooper wrote: >> > Kees, Ted, >> > >> > On Mon, Mar 03, 2014 at 03:51:48PM -0800, Kees Cook wrote: >> >> When bringing a new RNG source

Re: [RFC] [PATCH] Pre-emption control for userspace

2014-03-04 Thread Oleg Nesterov
On 03/04, Khalid Aziz wrote: > > On 03/04/2014 06:56 AM, Oleg Nesterov wrote: >> Hmm. In fact I think do_exit() should crash after munmap? ->mmap_state >> should be NULL ?? Perhaps I misread this patch completely... > > do_exit() unmaps mmap_state->uaddr, and frees up mmap_state->kaddr and >

Re: [PATCH] bridge: multicast: add sanity check for query source addresses

2014-03-04 Thread Hannes Frederic Sowa
On Tue, Mar 04, 2014 at 11:43:55AM +0100, Linus Lüssing wrote: > On Tue, Mar 04, 2014 at 10:06:14AM +0100, Hannes Frederic Sowa wrote: > > > diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c > > > index ef66365..fb0e36f 100644 > > > --- a/net/bridge/br_multicast.c > > > +++

Re: Update of file offset on write() etc. is non-atomic with I/O

2014-03-04 Thread Al Viro
On Tue, Mar 04, 2014 at 01:05:17AM +, Al Viro wrote: > It's probably not worth replacing struct fd with typedef to unsigned long - > too easy to have it confused with a file descriptor itself and pass to > something that expects e.g. int. In any case, since we leave fdget() > inlined,

Re: [PATCH] ACPI / hotplug: Rework deferred execution of acpi_device_hotplug()

2014-03-04 Thread Toshi Kani
On Sat, 2014-03-01 at 20:57 +, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since the only function executed by acpi_hotplug_execute() is > acpi_device_hotplug() and it only is called by the ACPI core, > simplify its definition so that it only takes two arguments, the > ACPI device

[PATCH 3.13 018/172] ARM: 7955/1: spinlock: ensure we have a compiler barrier before sev

2014-03-04 Thread Greg Kroah-Hartman
3.13-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit 7c8746a9eb287642deaad0e7c2cdf482dce5e4be upstream. When unlocking a spinlock, we require the following, strictly ordered sequence of events: /* dmb */

[PATCH 3.13 071/172] batman-adv: avoid double free when orig_node initialization fails

2014-03-04 Thread Greg Kroah-Hartman
3.13-stable review patch. If anyone has any objections, please let me know. -- From: Antonio Quartulli [ Upstream commit a5a5cb8cab526af2f6cbe9715f8ca843192f0d81 ] In the failure path of the orig_node initialization routine the orig_node->bat_iv.bcast_own field is free'd

[PATCH 3.13 082/172] fs: fix iversion handling

2014-03-04 Thread Greg Kroah-Hartman
3.13-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit dff6efc326a4d5f305797d4a6bba14f374fdd633 upstream. Currently notify_change directly updates i_version for size updates, which not only is counter to how all other

[PATCH 3.13 124/172] usb: ehci: fix deadlock when threadirqs option is used

2014-03-04 Thread Greg Kroah-Hartman
3.13-stable review patch. If anyone has any objections, please let me know. -- From: Stanislaw Gruszka commit a1227f3c1030e96ebc51d677d2f636268845c5fb upstream. ehci_irq() and ehci_hrtimer_func() can deadlock on ehci->lock when threadirqs option is used. To prevent the

[PATCH 3.10 53/97] powerpc/le: Ensure that the stop-self RTAS token is handled correctly

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Tony Breeds commit 41dd03a94c7d408d2ef32530545097f7d1befe5c upstream. Currently we're storing a host endian RTAS token in rtas_stop_self_args.token. We then pass that directly to rtas. This

[PATCH 3.10 94/97] dm thin: fix the error path for the thin device constructor

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Mike Snitzer commit 1acacc0784aab45627b6009e0e9224886279ac0b upstream. dm_pool_close_thin_device() must be called if dm_set_target_max_io_len() fails in thin_ctr(). Otherwise

[PATCH 3.10 97/97] drm/radeon: disable pll sharing for DP on DCE4.1

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit 9ef4e1d000a5b335fcebfcf8aef3405e59574c89 upstream. Causes display problems. We had already disabled sharing for non-DP displays. Based on a patch from: Niels Ole

[PATCH 3.10 88/97] ARM: 7812/1: rwlocks: retry trylock operation if strex fails on free lock

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit 00efaa0250939dc148e2d3104fb3c18395d24a2d upstream. Commit 15e7e5c1ebf5 ("ARM: 7749/1: spinlock: retry trylock operation if strex fails on free lock") modifying our

[PATCH 3.10 95/97] drm/radeon: print the supported atpx function mask

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit 9f050c7f9738ffa746c63415136645ad231b1348 upstream. Print the supported functions mask in addition to the version. This is useful in debugging PX problems since we can see

[PATCH 3.10 92/97] dm mpath: fix stalls when handling invalid ioctls

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Hannes Reinecke commit a1989b330093578ea5470bea0a00f940c444c466 upstream. An invalid ioctl will never be valid, irrespective of whether multipath has active paths or not. So for invalid

[PATCH 3.10 79/97] xtensa: introduce spill_registers_kernel macro

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov commit e2fd1374c705abe4661df3fb6fadb3879c7c1846 upstream. Most in-kernel users want registers spilled on the kernel stack and don't require PS.EXCM to be set. That means that

[PATCH 3.10 93/97] dm thin: avoid metadata commit if a pools thin devices havent changed

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Mike Snitzer commit 4d1662a30dde6e545086fe0e8fd7e474c4e0b639 upstream. Commit 905e51b ("dm thin: commit outstanding data every second") introduced a periodic commit. This commit occurs

[PATCH 3.10 73/97] hwmon: (max1668) Fix writing the minimum temperature

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit 500a91571f0a5d0d3242d83802ea2fd1faccc66e upstream. When trying to set the minimum temperature, the driver was erroneously writing the maximum temperature into the chip.

[PATCH 3.10 91/97] dma: ste_dma40: dont dereference free:d descriptor

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Linus Walleij commit e9baa9d9d520fb0e24cca671e430689de2d4a4b2 upstream. It appears that in the DMA40 driver the DMA tasklet will very often dereference memory for a descriptor just free:d

[PATCH 3.10 89/97] qla2xxx: Fix kernel panic on selective retransmission request

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: "Dr. Greg Wettstein" commit 6f58c780e5a5b43a6d2121e0d43cdcba1d3cc5fc upstream. A selective retransmission request (SRR) is a fibre-channel protocol control request which provides support for

[PATCH 3.10 80/97] SELinux: bigendian problems with filename trans rules

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Eric Paris commit 9085a6422900092886da8c404e1c5340c4ff1cbf upstream. When writing policy via /sys/fs/selinux/policy I wrote the type and class of filename trans rules in CPU endian instead of

[PATCH 3.10 90/97] i7300_edac: Fix device reference count

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Jean Delvare commit 75135da0d68419ef8a925f4c1d5f63d8046e314d upstream. pci_get_device() decrements the reference count of "from" (last argument) so when we break off the loop successfully we

[PATCH 0/5] mm: generic early_ioremap support

2014-03-04 Thread Mark Salter
To: linux-kernel@vger.kernel.org CC: x...@kernel.org CC: linux-arm-ker...@lists.infradead.org CC: Andrew Morton CC: Arnd Bergmann CC: Ingo Molnar CC: Thomas Gleixner CC: "H. Peter Anvin" CC: Russell King CC: Catalin Marinas CC: Will Deacon CC: Dave Young CC: Rob Herring CC: Leif Lindholm

[PATCH 3/5] x86: use generic early_ioremap

2014-03-04 Thread Mark Salter
Move x86 over to the generic early ioremap implementation. Signed-off-by: Mark Salter Acked-by: H. Peter Anvin --- arch/x86/Kconfig | 1 + arch/x86/include/asm/Kbuild | 1 + arch/x86/include/asm/fixmap.h | 6 ++ arch/x86/include/asm/io.h | 15 +--

[PATCH 3.10 78/97] ALSA: hda - Add a fixup for HP Folio 13 mute LED

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 37c367ecdb9a01c9acc980e6e17913570a1788a7 upstream. HP Folio 13 may have a broken BIOS that doesn't set up the mute LED GPIO properly, and the driver guesses it wrongly,

[PATCH 2/5] mm: create generic early_ioremap() support

2014-03-04 Thread Mark Salter
This patch creates a generic implementation of early_ioremap() support based on the existing x86 implementation. early_ioremp() is useful for early boot code which needs to temporarily map I/O or memory regions before normal mapping functions such as ioremap() are available. Some architectures

[PATCH 4/5] arm64: initialize pgprot info earlier in boot

2014-03-04 Thread Mark Salter
Presently, paging_init() calls init_mem_pgprot() to initialize pgprot values used by macros such as PAGE_KERNEL, PAGE_KERNEL_EXEC, etc. The new fixmap and early_ioremap support also needs to use these macros before paging_init() is called. This patch moves the init_mem_pgprot() call out of

[PATCH 1/5] x86/mm: sparse warning fix for early_memremap

2014-03-04 Thread Mark Salter
From: Dave Young There's a lot of sparse warnings for code like below: void *a = early_memremap(phys_addr, size); early_memremap intend to map kernel memory with ioremap facility, the return pointer should be a kernel ram pointer instead of iomem one. For making the function clearer and

[PATCH 5/5] arm64: add early_ioremap support

2014-03-04 Thread Mark Salter
Add support for early IO or memory mappings which are needed before the normal ioremap() is usable. This also adds fixmap support for permanent fixed mappings such as that used by the earlyprintk device register region. Signed-off-by: Mark Salter Acked-by: Catalin Marinas ---

Re: Update of file offset on write() etc. is non-atomic with I/O

2014-03-04 Thread Cedric Blancher
On 4 March 2014 00:39, Al Viro wrote: > On Mon, Mar 03, 2014 at 03:23:55PM -0800, Linus Torvalds wrote: > >> This just uses a "flags" field, and we currently only have two bits >> that we use: FDPUT_FPUT and FDPUT_POS_UNLOCK. The first patch knows >> that "fget_light()" writes 0/1 for that, which

[PATCH 3.10 82/97] ipc,mqueue: remove limits for the amount of system-wide queues

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit f3713fd9cff733d9df83116422d8e4af6e86b2bb upstream. Commit 93e6f119c0ce ("ipc/mqueue: cleanup definition names and locations") added global hardcoded limits to the

[PATCH 3.10 81/97] quota: Fix race between dqput() and dquot_scan_active()

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 1362f4ea20fa63688ba6026e586d9746ff13a846 upstream. Currently last dqput() can race with dquot_scan_active() causing it to call callback for an already deactivated dquot. The

[PATCH] touchscreen: tps6507x-ts: only poll while touch event is occurring

2014-03-04 Thread Jon Ringle
We only need to poll for touch events after an interrupt occurs due to the user touching the screen. We continue to poll until the user stops touching the screen Signed-off-by: Jon Ringle --- drivers/input/touchscreen/tps6507x-ts.c | 191 +---

[PATCH 3.10 87/97] ARM: 7749/1: spinlock: retry trylock operation if strex fails on free lock

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit 15e7e5c1ebf556cd620c9b091e121091ac760f6d upstream. An exclusive store instruction may fail for reasons other than lock contention (e.g. a cache eviction during the critical

[PATCH 3.10 86/97] ARM: tegra: only run PL310 init on systems with one

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Stephen Warren commit 8859685785bfafadf9bc922dd3a2278e59886947 upstream. Fix tegra_init_cache() to check whether the system has a PL310 cache before touching the PL310 registers. This

[PATCH 3.10 85/97] ARM64: unwind: Fix PC calculation

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Olof Johansson commit e306dfd06fcb44d21c80acb8e5a88d55f3d1cf63 upstream. The frame PC value in the unwind code used to just take the saved LR value and use that. That's incorrect as a stack

[PATCH 3.10 71/97] USB: ftdi_sio: add Cressi Leonardo PID

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Joerg Dorchain commit 6dbd46c849e071e6afc1e0cad489b0175bca9318 upstream. Hello, the following patch adds an entry for the PID of a Cressi Leonardo diving computer interface to kernel 3.13.0.

[PATCH 3.10 77/97] perf: Fix hotplug splat

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit e3703f8cdfcf39c25c4338c3ad8e68891cca3731 upstream. Drew Richardson reported that he could make the kernel go *boom* when hotplugging while having perf events active.

[PATCH 3.10 76/97] iio:gyro: bug on L3GD20H gyroscope support

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Denis CIOCCA commit a0657716416f834ef7710a9044614d50a36c3bdc upstream. The driver was not able to manage the sensor: during probe function and wai check, the driver stops and writes: "device

[PATCH 3.10 74/97] workqueue: ensure @task is valid across kthread_stop()

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Lai Jiangshan commit 5bdfff96c69a4d5ab9c49e60abf9e070ecd2acbb upstream. When a kworker should die, the kworkre is notified through WORKER_DIE flag instead of kthread_should_stop(). This,

[PATCH 3.10 83/97] Input - arizona-haptics: Fix double lock of dapm_mutex

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Charles Keepax commit c4204960e9d0ba99459dbf1db918f99a45e7a62a upstream. snd_soc_dapm_sync takes the dapm_mutex internally, but we currently take it externally as well. This patch fixes this.

[PATCH 3.10 84/97] irq-metag*: stop set_affinity vectoring to offline cpus

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit f229006ec6beabf7b844653d92fa61f025fe3dcf upstream. Fix irq_set_affinity callbacks in the Meta IRQ chip drivers to AND cpu_online_mask into the cpumask when picking a CPU to

[PATCH 3.10 70/97] usb: ehci: fix deadlock when threadirqs option is used

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Stanislaw Gruszka commit a1227f3c1030e96ebc51d677d2f636268845c5fb upstream. ehci_irq() and ehci_hrtimer_func() can deadlock on ehci->lock when threadirqs option is used. To prevent the

Re: [RFC] [PATCH] Pre-emption control for userspace

2014-03-04 Thread Khalid Aziz
On 03/04/2014 12:03 PM, Oleg Nesterov wrote: On 03/04, Khalid Aziz wrote: On 03/04/2014 06:56 AM, Oleg Nesterov wrote: Hmm. In fact I think do_exit() should crash after munmap? ->mmap_state should be NULL ?? Perhaps I misread this patch completely... do_exit() unmaps mmap_state->uaddr, and

[PATCH 3.10 58/97] ata: enable quirk from jmicron JMB350 for JMB394

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: "Denis V. Lunev" commit efb9e0f4f43780f0ae0c6428d66bd03e805c7539 upstream. Without the patch the kernel generates the following error. ata11.15: SATA link up 1.5 Gbps (SStatus 113 SControl

[PATCH 3.10 65/97] ACPI / processor: Rework processor throttling with work_on_cpu()

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Lan Tianyu commit f3ca4164529b875374c410193bbbac0ee960895f upstream. acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make sure that the (struct

[PATCH 3.10 67/97] usb: chipidea: need to mask when writting endptflush and endptprime

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Matthieu CASTET commit 5bf5dbeda2454296f1984adfbfc8e6f5965ac389 upstream. ENDPTFLUSH and ENDPTPRIME registers are set by software and clear by hardware. There is a bit for each endpoint. When

[PATCH 3.10 66/97] can: kvaser_usb: check number of channels returned by HW

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Olivier Sobrie commit 862474f8b46f6c1e600d4934e40ba40646c696ec upstream. It is needed to check the number of channels returned by the HW because it cannot be greater than MAX_NET_DEVICES

[PATCH 3.10 68/97] usb: gadget: bcm63xx_udc: fix build failure on DMA channel code

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit 2d1f7af3d60dd09794e0738a915d272c6c27abc5 upstream. Commit 3dc6475 ("bcm63xx_enet: add support Broadcom BCM6345 Ethernet") changed the ENETDMA[CS] macros such that they

[PATCH 3.10 59/97] sata_sil: apply MOD15WRITE quirk to TOSHIBA MK2561GSYN

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit 9f9c47f00ce99329b1a82e2ac4f70f0fe3db549c upstream. It's a bit odd to see a newer device showing mod15write; however, the reported behavior is highly consistent and other

[PATCH 3.10 63/97] i7core_edac: Fix PCI device reference count

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Jean Delvare commit c0f5eeed0f4cef4f05b74883a7160e7edde58b6a upstream. The reference count changes done by pci_get_device can be a little misleading when the usage diverges from the most

[PATCH 3.10 64/97] ACPI / video: Filter the _BCL table for duplicate brightness values

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit bd8ba20597f0cfef3ef65c3fd2aa92ab23d4c8e1 upstream. Some devices have duplicate entries in there brightness levels table, ie on my Dell Latitude E6430 the table looks like

[PATCH 3.10 62/97] ACPI / PCI: Fix memory leak in acpi_pci_irq_enable()

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Tomasz Nowicki commit b685f3b1744061aa9ad822548ba9c674de5be7c6 upstream. acpi_pci_link_allocate_irq() can return negative gsi even if entry != NULL. For that case we have a memory leak, so

[PATCH 3.10 69/97] USB: serial: option: blacklist interface 4 for Cinterion PHS8 and PXS8

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Aleksander Morgado commit 12df84d4a80278a5b1abfec3206795291da52fc9 upstream. This interface is to be handled by the qmi_wwan driver. CC: Hans-Christoph Schemmel CC: Christian Schmiedl CC:

[PATCH 3.10 61/97] PCI: Enable INTx if BIOS left them disabled

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit 1f42db786b14a31bf807fc41ee5583a00c08fcb1 upstream. Some firmware leaves the Interrupt Disable bit set even if the device uses INTx interrupts. Clear Interrupt Disable so

[PATCH 3.10 60/97] cpufreq: powernow-k8: Initialize per-cpu data-structures properly

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: "Srivatsa S. Bhat" commit c3274763bfc3bf1ececa269ed6e6c4d7ec1c3e5e upstream. The powernow-k8 driver maintains a per-cpu data-structure called powernow_data that is used to perform the

[PATCH v2] touchscreen: tps6507x-ts: only poll while touch event is occurring

2014-03-04 Thread Jon Ringle
We only need to poll for touch events after an interrupt occurs due to the user touching the screen. We continue to poll until the user stops touching the screen Signed-off-by: Jon Ringle --- drivers/input/touchscreen/tps6507x-ts.c | 188 +---

[PATCH 3.10 72/97] mei: set clients read_cb to NULL when flow control fails

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Chao Bi commit accb884b32e82f943340688c9cd30290531e73e0 upstream. In mei_cl_read_start(), if it fails to send flow control request, it will release "cl->read_cb" but forget to set pointer to

[PATCH 3.10 43/97] ALSA: hda - Enable front audio jacks on one HP desktop model

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Hui Wang commit 1de7ca5e844866f56bebb2fc47fa18e090677e88 upstream. The front headphone and mic jackes on a HP desktop model (Vendor Id: 0x111d76c7 Subsystem Id: 0x103c2b17) can not work, the

[PATCH] [RESEND] ARM: footbridge: remove obsolete IRQF_DISABLED

2014-03-04 Thread Michael Opdenacker
This patch proposes to remove the IRQF_DISABLED flag from footbridge code. It's a NOOP since 2.6.35. Signed-off-by: Michael Opdenacker --- arch/arm/mach-footbridge/dc21285-timer.c | 2 +- arch/arm/mach-footbridge/dc21285.c | 10 +- arch/arm/mach-footbridge/isa-timer.c | 2 +-

[PATCH 3.10 56/97] x86: dma-mapping: fix GFP_ATOMIC macro usage

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Marek Szyprowski commit c091c71ad2218fc50a07b3d1dab85783f3b77efd upstream. GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other flags, where meaningful is the LACK of

[PATCH 3.10 52/97] SUNRPC: Fix races in xs_nospace()

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit 06ea0bfe6e6043cb56a78935a19f6f8ebc636226 upstream. When a send failure occurs due to the socket being out of buffer space, we call xs_nospace() in order to have the RPC

[PATCH 3.10 51/97] ASoC: wm8958-dsp: Fix firmware block loading

2014-03-04 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Lars-Peter Clausen commit 548da08fc1e245faf9b0d7c41ecd8e07984fc332 upstream. The codec->control_data contains a pointer to the device's regmap struct. But wm8994_bulk_write() expects a

<    11   12   13   14   15   16   17   18   19   20   >