Re: [PATCH 2/2] pci: Update VPD size with correct length

2015-12-29 Thread Alexander Duyck
On Tue, Dec 29, 2015 at 11:01 AM, wrote: >>On Mon, Dec 28, 2015 at 9:29 PM, wrote: >>> I had posted a patch recently to enable exposing the VPD-R valyes to sysfs. >>> I need access >>> to these to parse into systemd for network naming

[PATCH v3 3/4] um: Add full asm/syscall.h support

2015-12-29 Thread Mickaël Salaün
Add subarchitecture-independent implementation of asm-generic/syscall.h allowing access to user system call parameters and results: * syscall_get_nr() * syscall_rollback() * syscall_get_error() * syscall_get_return_value() * syscall_set_return_value() * syscall_get_arguments() *

Re: [PATCH v4 9/9] phy: omap-usb2: use *syscon* framework API to power on/off the PHY

2015-12-29 Thread Rob Herring
On Mon, Dec 21, 2015 at 02:24:13PM +0530, Kishon Vijay Abraham I wrote: > Deprecate using phy-omap-control driver to power on/off the PHY, > and use *syscon* framework to do the same. This handles > powering on/off the PHY for the USB2 PHYs used in various TI SoCs. > > Signed-off-by: Kishon Vijay

[PATCH] ata: correctly handling failed allocation

2015-12-29 Thread Insu Yun
Since kzalloc can be failed in memory pressure, return error when failed. Signed-off-by: Insu Yun --- drivers/ata/sata_sx4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ata/sata_sx4.c b/drivers/ata/sata_sx4.c index fab504f..48301cb 100644 ---

[PATCH] usbtv: correctly handling failed allocation

2015-12-29 Thread Insu Yun
Since kzalloc can be failed, if not properly handled, NULL dereference could be happened. Signed-off-by: Insu Yun --- drivers/media/usb/usbtv/usbtv-video.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/media/usb/usbtv/usbtv-video.c

Re: [PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

2015-12-29 Thread Rob Herring
On Tue, Dec 29, 2015 at 3:26 PM, Paul Kocialkowski wrote: > Le mardi 29 décembre 2015 à 14:02 -0600, Rob Herring a écrit : >> On Wed, Dec 23, 2015 at 11:58:37AM +0100, Paul Kocialkowski wrote: >> > LP872x regulators are made active via the EN pin, which might be hooked to >> >

Re: [PATCH v2 1/3] clk: bcm2835: Add bindings for the auxiliary peripheral clock gates.

2015-12-29 Thread Rob Herring
+Arnd and Olof On Mon, Dec 28, 2015 at 4:39 PM, Michael Turquette wrote: > Quoting Eric Anholt (2015-12-24 15:45:15) >> Michael Turquette writes: >> >> > On Fri, Dec 18, 2015 at 8:19 PM, Rob Herring wrote: >> >> On Tue, Dec 15,

Re: [PATCH net-next 1/3] r8169:Fix typo in setting RTL8168EP and RTL8168H D3cold PFM mode

2015-12-29 Thread Francois Romieu
Chunhao Lin : > The register for setting D3code PFM mode is MISC_1, not DLLPR. > > Signed-off-by: Chunhao Lin Reviewed-by: Francois Romieu -- Ueimor -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH 1/1] kernel booting messages, first line

2015-12-29 Thread Tejun Heo
On Tue, Dec 29, 2015 at 10:42:40AM -0800, Randy Dunlap wrote: > On 12/28/15 17:31, Alexandru GOIA wrote: > > What it does : first line of booting kernel, as seen in dmesg(1), will be > > the Linux kernel signature > > (version, compiler, compiler hostname). > > > > What it solves : it appers

Re: [PATCH v2 0/6] watchdog: Replace driver based refcounting

2015-12-29 Thread Wim Van Sebroeck
Hi Guenter, > All variables required by the watchdog core to manage a watchdog are > currently stored in struct watchdog_device. The lifetime of those > variables is determined by the watchdog driver. However, the lifetime > of variables used by the watchdog core differs from the lifetime of >

Re: [PATCH net] openvswitch: Fix template leak in error cases.

2015-12-29 Thread David Miller
From: Joe Stringer Date: Wed, 23 Dec 2015 14:39:27 -0800 > Commit 5b48bb8506c5 ("openvswitch: Fix helper reference leak") fixed a > reference leak on helper objects, but inadvertently introduced a leak on > the ct template. > > Previously, ct_info.ct->general.use was initialized

Re: [PATCH 1/9] atm: solos-pci: use to_pci_dev()

2015-12-29 Thread David Miller
From: Geliang Tang Date: Sun, 27 Dec 2015 18:45:57 +0800 > Use to_pci_dev() instead of open-coding it. > > Signed-off-by: Geliang Tang Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

[PATCH v3 4/4] um: Add seccomp support

2015-12-29 Thread Mickaël Salaün
This brings SECCOMP_MODE_STRICT and SECCOMP_MODE_FILTER support through prctl(2) and seccomp(2) to User-mode Linux for i386 and x86_64 subarchitectures. secure_computing() is called first in handle_syscall() so that the syscall emulation will be aborted quickly if matching a seccomp rule. This

Re: [PATCH 06/10] net: hns: use to_platform_device()

2015-12-29 Thread David Miller
From: Geliang Tang Date: Sun, 27 Dec 2015 21:15:44 +0800 > Use to_platform_device() instead of open-coding it. > > Signed-off-by: Geliang Tang Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

[PATCH 0/2] mmc-host: Fine-tuning for one function

2015-12-29 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 29 Dec 2015 21:54:14 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete unnecessary variable initialisations in sdricoh_init_mmc() Less checks in

[PATCH] cxgb4: correctly handling failed allocation

2015-12-29 Thread Insu Yun
Since t4_alloc_mem can be failed in memory pressure, if not properly handled, NULL dereference could be happened. Signed-off-by: Insu Yun --- drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 1/1] include/uapi/linux/sockios.h: mark SIOCRTMSG unused

2015-12-29 Thread Heinrich Schuchardt
IOCTL SIOCRTMSG does nothing but return EINVAL. So comment it as unused. Signed-off-by: Heinrich Schuchardt --- include/uapi/linux/sockios.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/sockios.h b/include/uapi/linux/sockios.h index

[PATCH] qlcnic: correctly handle qlcnic_alloc_mbx_args

2015-12-29 Thread Insu Yun
Signed-off-by: Insu Yun --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c index a5f422f..a9a2c33 100644

Re: [PATCH RESEND] xhci:Remove unused marco definitions from the file xhci-hub.c

2015-12-29 Thread Greg KH
On Tue, Dec 29, 2015 at 01:28:16PM -0500, Nicholas Krause wrote: > This removes the unneeded marco definitions for the marcos > of XHCI_PORT_RW1S, XHCI_PORT_RW1C, XHCI_PORT_RWand > XHCI_PORT_RZ due to no uses of these marcos in the file > xhci-hub.c or any other related kernel source code

[PATCH] cgroup: demote subsystem init messages to KERN_DEBUG

2015-12-29 Thread Tejun Heo
>From 507bd688e32c2b2ca4bed139d9123b3da6d2d19d Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Tue, 29 Dec 2015 14:53:56 -0500 These are noisy during boot and not all that interesting. Signed-off-by: Tejun Heo --- Queued for the coming merge window. Thanks.

Re: [PATCH] net: Fix potential NULL pointer dereference in __skb_try_recv_datagram

2015-12-29 Thread David Miller
From: Rainer Weikusat Date: Tue, 29 Dec 2015 19:42:36 + > Jacob Siverskog writes: >> This should fix a NULL pointer dereference I encountered (dump >> below). Since __skb_unlink is called while walking, >> skb_queue_walk_safe

[PATCH 3/5] Staging: panel: Remove ULL

2015-12-29 Thread Ksenija Stanojevic
Remove ULL since it's useless. Signed-off-by: Ksenija Stanojevic --- drivers/staging/panel/panel.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c index 7138ee7..6dc3efb

[PATCH 4/5] Staging: panel: Reduce value range for *name

2015-12-29 Thread Ksenija Stanojevic
out is 0-9 so it's too much for om, therefore reduce value range for *name from '0'-'9' to '0'-'7'. Signed-off-by: Ksenija Stanojevic --- drivers/staging/panel/panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/panel/panel.c

[PATCH v2] cfq-iosched: convert group idle time to jiffies

2015-12-29 Thread Alexandru Moise
This patch refers to Jens Axboe's change way back in 2006: 7b14e3b52 cfq-iosched: slice expiry fixups In this patch he fixed a potential timer race condition by delaying idle_slice_timer by the slice_idle time value. Today this timer is delayed by either slice_idle or group_idle time values,

Re: [RESEND PATCH v1 0/4] Add support emac for the RK3036 SoC platform

2015-12-29 Thread David Miller
You have to submit this series properly, the same problem happend twice now. When you submit a series you should: 1) Make it clear which tree you expect these changes to be applied to. Here it is completely ambiguous, do you want it to go into my networking tree or some other subsystem

[PATCH v3 0/4] um: Add seccomp support

2015-12-29 Thread Mickaël Salaün
This series add seccomp support to User-mode Linux (i386 and x86_64 subarchitectures) and fix ptrace issues. This apply on v4.4-rc7 and pass all the 48 tests from selftest/seccomp plus the UML ptsc test. Changes since v2: * remove get_syscall() from os.h and don't include it in syscall.c [1/4] *

Re: [PATCH 3/6] iommu/amd: Introduce amd_iommu_get_num_iommus()

2015-12-29 Thread Suravee Suthikulpanit
Hi Jorge, On 12/28/15 09:43, Joerg Roedel wrote: On Tue, Dec 22, 2015 at 01:19:14PM -0600, Suthikulpanit, Suravee wrote: This patch introduces amd_iommu_get_num_iommus(). Initially, this is intended to be used by Perf AMD IOMMU driver. Signed-off-by: Suravee Suthikulpanit

Re: [PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

2015-12-29 Thread Paul Kocialkowski
Le mardi 29 décembre 2015 à 14:02 -0600, Rob Herring a écrit : > On Wed, Dec 23, 2015 at 11:58:37AM +0100, Paul Kocialkowski wrote: > > LP872x regulators are made active via the EN pin, which might be hooked to a > > GPIO. This adds support for driving the GPIO high when the driver is in use. > >

Re: [PATCH v3 1/4] ocfs2: export ocfs2_kset for online file check

2015-12-29 Thread Andrew Morton
On Fri, 25 Dec 2015 15:16:16 +0800 Gang He wrote: > Export ocfs2_kset object from ocfs2_stackglue kernel module, > then online file check code will create the related sysfiles > under ocfs2_kset object. > > ... > > --- a/fs/ocfs2/stackglue.c > +++ b/fs/ocfs2/stackglue.c > @@

[PATCH] mISDN: correctly handling failed allocation in fsm

2015-12-29 Thread Insu Yun
Since kzalloc can be failed in memory pressure, NULL dereference can be happened. Signed-off-by: Insu Yun --- drivers/isdn/mISDN/fsm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/isdn/mISDN/fsm.c b/drivers/isdn/mISDN/fsm.c index 26477d4..3c3ffb0 100644 ---

[PATCH 0/5] Staging: panel: TODO fixes

2015-12-29 Thread Ksenija Stanojevic
This patchset is based on patch sent by Bijosh Thykkoottathil. Here I tried to address all suggestions made by Dan and Willy. Signed-off-by: Ksenija Stanojevic Ksenija Stanojevic (5): Staging: panel: Use u8 type Staging: panel: Remove typedef pmask_t Staging:

[PATCH 1/5] Staging: panel: Use u8 type

2015-12-29 Thread Ksenija Stanojevic
Declare om, im, omask and imask as u8 to remove any confusion if that describes the 8 bits of the data bus on the parallel port. Also change return type of lcd_write_data() to u8. Signed-off-by: Ksenija Stanojevic --- drivers/staging/panel/panel.c | 6 +++--- 1

Re: [PATCH v2 2/2] pci, pcie-thunder-pem: Add PCIe host driver for ThunderX processors.

2015-12-29 Thread Rob Herring
On Tue, Dec 22, 2015 at 03:43:52PM -0800, David Daney wrote: > From: David Daney > > Some Cavium ThunderX processors require quirky access methods for the > config space of the PCIe bridge. Add a driver to provide these config > space accessor functions. The

Re: [PATCH] unix: properly account for FDs passed over unix sockets

2015-12-29 Thread Willy Tarreau
On Tue, Dec 29, 2015 at 03:48:45PM +0100, Hannes Frederic Sowa wrote: > On 28.12.2015 15:14, Willy Tarreau wrote: > >It is possible for a process to allocate and accumulate far more FDs than > >the process' limit by sending them over a unix socket then closing them > >to keep the process' fd count

[PATCH] mISDN: correctly handling failed allocation

2015-12-29 Thread Insu Yun
Since kzalloc can be failed in memory pressure, NULL dereference might be happened. Signed-off-by: Insu Yun --- drivers/isdn/hardware/mISDN/hfcsusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/isdn/hardware/mISDN/hfcsusb.c

Re: [PATCH v3 0/4] Add online file check feature

2015-12-29 Thread Andrew Morton
On Fri, 25 Dec 2015 15:16:15 +0800 Gang He wrote: > When there are errors in the ocfs2 filesystem, > they are usually accompanied by the inode number which caused the error. > This inode number would be the input to fixing the file. > One of these options could be considered: > A

[PATCH] ixgbe: correctly handling failed allocation

2015-12-29 Thread Insu Yun
Since kzalloc can be failed in memory pressure, NULL derefence could be happened. Signed-off-by: Insu Yun --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

RE:IMPORTANT AND LUCRATIVE BUSINESS DISCUSSION

2015-12-29 Thread Hassan Ameri
HELLO, PLEASE GET BACK TO ME FOR AN IMPORTANT AND LUCRATIVE BUSINESS DISCUSSION.I AM TALKING ABOUT CRUDE OIL AND SEEKING A REPRESENTATIVE. REGARDS, H.A -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo

RE:IMPORTANT AND LUCRATIVE BUSINESS PROJECT.

2015-12-29 Thread Hassan Ameri
HELLO, PLEASE GET BACK TO ME FOR AN IMPORTANT AND LUCRATIVE BUSINESS DISCUSSION.I AM TALKING ABOUT CRUDE OIL AND SEEKING A REPRESENTATIVE. REGARDS, H.A -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH] net: Fix potential NULL pointer dereference in __skb_try_recv_datagram

2015-12-29 Thread Rainer Weikusat
Jacob Siverskog writes: > This should fix a NULL pointer dereference I encountered (dump > below). Since __skb_unlink is called while walking, > skb_queue_walk_safe should be used. The code in question is: skb_queue_walk(queue, skb) { *last = skb;

[PATCH] mwifiex: correctly handling kzalloc

2015-12-29 Thread Insu Yun
Since kzalloc can be failed in memory pressure, it needs to be handled as above kzalloc. Signed-off-by: Insu Yun --- drivers/net/wireless/mwifiex/sdio.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/mwifiex/sdio.c

[PATCH] qlcnic: correctly handle qlcnic_alloc_mbx_args

2015-12-29 Thread Insu Yun
Since qlcnic_alloc_mbx_args can be failed, return value should be checked. Signed-off-by: Insu Yun --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c

[PATCH 2/5] Staging: panel: Remove typedef pmask_t

2015-12-29 Thread Ksenija Stanojevic
Use __u64 instead of pmask_t and remove pmask_t since is useless. Signed-off-by: Ksenija Stanojevic --- drivers/staging/panel/panel.c | 24 +++- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/drivers/staging/panel/panel.c

[PATCH 2/2] mmc-sdricoh_cs: Less checks in sdricoh_init_mmc() after, error detection

2015-12-29 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 29 Dec 2015 21:45:34 +0100 This issue was detected by using the Coccinelle software. Two pointer checks could be repeated by the sdricoh_init_mmc() function during error handling even if the relevant properties can be determined for

Re: [PATCH] qlcnic: correctly handle qlcnic_alloc_mbx_args

2015-12-29 Thread David Miller
From: Insu Yun Date: Tue, 29 Dec 2015 14:29:47 -0500 > Signed-off-by: Insu Yun > --- > drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

2015-12-29 Thread Rob Herring
On Wed, Dec 23, 2015 at 11:58:37AM +0100, Paul Kocialkowski wrote: > LP872x regulators are made active via the EN pin, which might be hooked to a > GPIO. This adds support for driving the GPIO high when the driver is in use. > > Signed-off-by: Paul Kocialkowski > --- >

Re: [PATCH] mwifiex: correctly handling kzalloc

2015-12-29 Thread David Miller
From: Insu Yun Date: Tue, 29 Dec 2015 14:55:25 -0500 > Since kzalloc can be failed in memory pressure, > it needs to be handled as above kzalloc. > > Signed-off-by: Insu Yun > --- > drivers/net/wireless/mwifiex/sdio.c | 6 ++ > 1 file changed, 6

[PATCH] mwifiex: correctly handling kzalloc

2015-12-29 Thread Insu Yun
Signed-off-by: Insu Yun --- drivers/net/wireless/mwifiex/sdio.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c index 78a8474..a8af72d 100644 --- a/drivers/net/wireless/mwifiex/sdio.c

Re: [PATCH v2] cfq-iosched: convert group idle time to jiffies

2015-12-29 Thread Alexandru Moise
On Tue, Dec 29, 2015 at 01:19:57PM -0700, Jens Axboe wrote: > On 12/29/2015 01:16 PM, Alexandru Moise wrote: > >This patch refers to Jens Axboe's change way back in 2006: > >7b14e3b52 cfq-iosched: slice expiry fixups > > > >In this patch he fixed a potential timer race condition by delaying >

Re: [PATCH 3/5] Staging: panel: Remove ULL

2015-12-29 Thread Ilia Mirkin
On Tue, Dec 29, 2015 at 3:08 PM, Ksenija Stanojevic wrote: > Remove ULL since it's useless. > > Signed-off-by: Ksenija Stanojevic > --- > drivers/staging/panel/panel.c | 12 ++-- > 1 file changed, 6 insertions(+), 6

crash in acpi_ns_detach_object in 4.3.3

2015-12-29 Thread Toralf Förster
The screen shots in [1] and [2] happened after I plugged + unplugged my ThinkPad T440s into/from the docking station. I did that to investigate why after few s2ram / docking cycles the external monitor stays black when docked. This did not happen with 4.1.7, I'm unsure if this was the case

[PATCH] Limit VPD length on Atheros wifi cards

2015-12-29 Thread Jordan Hargrave
Attempt to read VPD on these cards causes kernel hang or delay Signed-off-by: Jordan Hargrave --- drivers/pci/quirks.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index e6376f6..a72667f

Re: [PATCH 3/3] rtc: s5m: Make register configuration per S2MPS device to remove exceptions

2015-12-29 Thread Krzysztof Kozlowski
On 30.12.2015 11:53, Yadwinder Singh Brar wrote: > Hi Krysztof, > > On Tue, Dec 29, 2015 at 5:53 PM, Krzysztof Kozlowski > wrote: >> Before updating time and alarm the driver must set appropriate mask in >> UDR register. For that purpose the driver uses common register

Re: [PATCH] thermal: re-calculate k_po/k_pu when update sustainable power

2015-12-29 Thread kbuild test robot
Hi Leo, [auto build test ERROR on thermal/next] [also build test ERROR on v4.4-rc7 next-20151223] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url:

[RFC] is_global_init() called on global init sub-thread

2015-12-29 Thread Sergey Senozhatsky
Hello, re-upping https://www.redhat.com/archives/linux-audit/2013-December/msg00086.html Oleg Nesterov wrote: :Because is_global_init() is only true for the main thread of /sbin/init. : :Just look at oom_unkillable_task(). It tries to not kill init. But, say, :select_bad_process() can happily

RE: [f2fs-dev] [PATCH 1/2] f2fs: use atomic variable for total_extent_tree

2015-12-29 Thread Chao Yu
Hi Yunlei, Thanks for your report, but the fix should be done in another patch. :) Hi Jaegeuk, We should add to init total_zombie_tree in ("f2fs: speed up shrinking extent tree entries") as Yunlei reported. Thanks, > -Original Message- > From: He YunLei [mailto:heyun...@huawei.com] >

[PULL] Re: bcache stability patches

2015-12-29 Thread Eric Wheeler
Hi Jens and Kent, This affects many users, so please take a look when you have a moment: There is a growing bcache user community with a well-tested patchset that is necessary for production bcache use. The diffstat is small and we all want someone to pull it in and get it into mainline.

Re: [PATCH V3] net: emac: emac gigabit ethernet controller driver

2015-12-29 Thread kbuild test robot
Hi Gilad, [auto build test WARNING on net/master] [also build test WARNING on v4.4-rc7 next-20151223] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url:

Re: [PATCH 1/5] staging: media: lirc: replace NULL comparisons with !var

2015-12-29 Thread Sudip Mukherjee
On Fri, Dec 18, 2015 at 06:35:25PM +0530, Sudip Mukherjee wrote: > A NULL comparison can be written as if (var) or if (!var). > Reported by checkpatch. > > Signed-off-by: Sudip Mukherjee > --- Hi Mauro, A gentle ping. Can this series be considered for 4.5? regards

[PATCH v3 1/1] usb: cdc-acm: handle unlinked urb in acm read callback

2015-12-29 Thread Lu Baolu
In current acm driver, the bulk-in callback function ignores the URBs unlinked in usb core. This causes unexpected data loss in some cases. For example, runtime suspend entry will unlinked all urbs and set urb->status to -ENOENT even those urbs might have data not processed yet. Hence, data loss

Re: [PATCH v2 1/1] usb: cdc-acm: handle unlinked urb in acm read callback

2015-12-29 Thread Lu Baolu
On 12/30/2015 09:46 AM, Greg Kroah-Hartman wrote: > On Wed, Dec 30, 2015 at 08:42:01AM +0800, Lu Baolu wrote: >> In current acm driver, the bulk-in callback function ignores the >> URBs unlinked in usb core. >> >> This causes unexpected data loss in some cases. For example, >> runtime suspend

[PATCH 2/5] clk: mediatek: Add dt-bindings for MT2701 clocks

2015-12-29 Thread James Liao
From: Shunli Wang Add MT2701 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao --- include/dt-bindings/clock/mt2701-clk.h

Re: [PATCH] DT: i2c: Add Freescale MPL3115 to trivial devices list

2015-12-29 Thread Wolfram Sang
On Tue, Dec 29, 2015 at 12:35:16PM -0600, Rob Herring wrote: > On Wed, Dec 23, 2015 at 01:59:07PM -0500, Akshay Bhat wrote: > > This adds devicetree documentation for the bindings of mpl3115 driver. > > > > Signed-off-by: Akshay Bhat > > --- > >

[PATCH 0/5] Add clock support for Mediatek MT2701

2015-12-29 Thread James Liao
This patchset is based on 4.4-rc7, add clock and reset controller support for Mediatek MT2701. This patchset also refined makefile and Kconfig to support configurable multiple SoC clock support. James Liao (1): clk: mediatek: Refine the makefile to support multiple clock drivers Shunli Wang

[PATCH 1/5] clk: mediatek: Refine the makefile to support multiple clock drivers

2015-12-29 Thread James Liao
Add a Kconfig to define clock configuration for each SoC, and modify the Makefile to build drivers that only selected in config. Signed-off-by: Shunli Wang Signed-off-by: James Liao --- drivers/clk/Kconfig | 1 +

[PATCH 5/5] reset: mediatek: mt2701 reset driver

2015-12-29 Thread James Liao
From: Shunli Wang In infrasys and perifsys, there are many reset control bits for kinds of modules. These bits are used as actual reset controllers to be registered into kernel's generic reset controller framework. Signed-off-by: Shunli Wang

[PATCH v2 1/1] Support for CMedia CM6533 HID audio jack controls

2015-12-29 Thread Ben Chen
The C-Media CM6533 is a USB audio chip featuring it's jack detection capability.The device originates an interrupt transfer via HID interface each time when a jack event occurs. The purpose of this patch is to handle hid raw events to keep the operating system informed of user interactions.

Re: [PATCH v3 0/4] Add online file check feature

2015-12-29 Thread Gang He
Hello Andrew and Mark, >>> > On Fri, 25 Dec 2015 15:16:15 +0800 Gang He wrote: > >> When there are errors in the ocfs2 filesystem, >> they are usually accompanied by the inode number which caused the error. >> This inode number would be the input to fixing the file. >> One of

[PATCH v2] crypto: af_alg - Disallow bind/setkey/... after accept(2)

2015-12-29 Thread Herbert Xu
On Tue, Dec 29, 2015 at 07:36:14PM +0100, Dmitry Vyukov wrote: > Hello, > > On commit 8513342170278468bac126640a5d2d12ffbff106 > + crypto: algif_skcipher - Use new skcipher interface > + crypto: algif_skcipher - Require setkey before accept(2) > + crypto: af_alg - Disallow bind/setkey/... after

[PATCH v3 7/7] x86/vdso: Disallow vvar access to vclock IO for never-used vclocks

2015-12-29 Thread Andy Lutomirski
It makes me uncomfortable that even modern systems grant every process direct read access to the HPET. While fixing this for real without regressing anything is a mess (unmapping the HPET is tricky because we don't adequately track all the mappings), we can do almost as well by tracking which

[PATCH v3 5/7] x86,vdso: Use .fault for the vdso text mapping

2015-12-29 Thread Andy Lutomirski
The old scheme for mapping the vdso text is rather complicated. vdso2c generates a struct vm_special_mapping and a blank .pages array of the correct size for each vdso image. Init code in vdso/vma.c populates the .pages array for each vdso image, and the mapping code selects the appropriate

[PATCH v3 6/7] x86,vdso: Use .fault instead of remap_pfn_range for the vvar mapping

2015-12-29 Thread Andy Lutomirski
This is IMO much less ugly, and it also opens the door to disallowing unprivileged userspace HPET access on systems with usable TSCs. Signed-off-by: Andy Lutomirski --- arch/x86/entry/vdso/vma.c | 97 --- 1 file changed, 57

[PATCH v3 2/7] mm: Add a vm_special_mapping .fault method

2015-12-29 Thread Andy Lutomirski
From: Andy Lutomirski Requiring special mappings to give a list of struct pages is inflexible: it prevents sane use of IO memory in a special mapping, it's inefficient (it requires arch code to initialize a list of struct pages, and it requires the mm core to walk the entire

[PATCH v3 4/7] x86/vdso: Track each mm's loaded vdso image as well as its base

2015-12-29 Thread Andy Lutomirski
As we start to do more intelligent things with the vdso at runtime (as opposed to just at mm initialization time), we'll need to know which vdso is in use. In principle, we could guess based on the mm type, but that's over-complicated and error-prone. Instead, just track it in the mmu context.

[PATCH v3 3/7] mm: Add vm_insert_pfn_prot

2015-12-29 Thread Andy Lutomirski
The x86 vvar vma conntains pages with differing cacheability flags. x86 currently implements this by manually inserting all the ptes using (io_)remap_pfn_range when the vma is set up. x86 wants to move to using .fault with VM_FAULT_NOPAGE to set up the mappings as needed. The correct API to use

[PATCH v3 0/7] mm, x86/vdso: Special IO mapping improvements

2015-12-29 Thread Andy Lutomirski
This applies on top of the earlier vdso pvclock series I sent out. Once that lands in -tip, this will apply to -tip. This series cleans up the hack that is our vvar mapping. We currently initialize the vvar mapping as a special mapping vma backed by nothing whatsoever and then we abuse

[PATCH v3 1/7] x86/vsdo: Fix build on PARAVIRT_CLOCK=y, KVM_GUEST=n

2015-12-29 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/pvclock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/pvclock.h b/arch/x86/include/asm/pvclock.h index 66df22b2e0c9..fdcc04020636 100644 --- a/arch/x86/include/asm/pvclock.h +++

RE: [PATCH v2 1/4] Documentation: fsl-quadspi: Add fsl,ls2080a-dspi compatible string

2015-12-29 Thread Yao Yuan
Hi Rob, Thanks for your review. So you mean that I should add the commit message for why I add this new compatible? Best Regards, Yuan Yao On Wed, Dec 30, 2015 at 02:35AM, Rob Herring wrote: > On Thu, Dec 24, 2015 at 07:01:00PM +0800, Yuan Yao wrote: > > new compatible string:

[PATCH] thermal: hisilicon: increase temperature resolution

2015-12-29 Thread Leo Yan
When calculate temperature, old code firstly do division and then convert to "millicelsius" unit. This will lose resolution and only can read back temperature with "Celsius" unit. So firstly scale step value to "millicelsius" and then do division, so finally we can increase resolution for

[PATCH 4/4] soc: mediatek: Add MT2701/MT7623 scpsys driver

2015-12-29 Thread James Liao
From: Shunli Wang Add scpsys driver for MT2701 and MT7623. Signed-off-by: Shunli Wang Signed-off-by: James Liao --- drivers/soc/mediatek/Kconfig | 11 +++ drivers/soc/mediatek/Makefile|

[PATCH 3/4] soc: mediatek: Add MT2701 power dt-bindings

2015-12-29 Thread James Liao
From: Shunli Wang Add power dt-bindings for MT2701. Signed-off-by: Shunli Wang Signed-off-by: James Liao --- include/dt-bindings/power/mt2701-power.h | 27 +++ 1 file changed, 27

Re: [V9fs-developer] Hang triggered by udev coldplug, looks like a race

2015-12-29 Thread Andy Lutomirski
[add cc's] Hi scheduler people: This is relatively easy for me to reproduce. Any hints for debugging it? Could we really have a bug in which processes that are schedulable as a result of mutex unlock aren't always reliably scheduled? --Andy On Thu, Dec 24, 2015 at 2:51 AM, Dominique Martinet

Re: Makefile:610: arch/m32r/Makefile: No such file or directory

2015-12-29 Thread Sudip Mukherjee
On Tue, Dec 29, 2015 at 11:50:06AM +0800, Fengguang Wu wrote: > Hi Sudip, > > Sorry for the noise -- it looks like a bug caused by a recent change > to our build scripts. Your commit is fine. Not my commit. I am just trying to fix the build failures with m32r. So noticed your mail. regards

[PATCH 1/4] soc: mediatek: Separate scpsys driver common code

2015-12-29 Thread James Liao
Separate scpsys driver common code to mtk-scpsys.c, and move MT8173 platform code to mtk-scpsys-mt8173.c. Signed-off-by: James Liao --- drivers/soc/mediatek/Kconfig | 13 +- drivers/soc/mediatek/Makefile| 1 +

[PATCH 0/4] Mediatek MT2701 SCPSYS power domain support

2015-12-29 Thread James Liao
This patchset is based on 4.4-rc7, add scpsys power domain support for Mediatek MT2701/MT7623. This patchset also separate MT8173 scpsys driver into common part (mtk-scpsys.c) and platform part (mtk-scpsys-mt8173.c), so that MT2701 scpsys driver can share most implementation with MT8173. James

[PATCH 2/4] soc: mediatek: Init MT8173 scpsys driver earlier

2015-12-29 Thread James Liao
Some power domain comsumers may init before module_init. So the power domain provider (scpsys) need to be initialized earlier too. Signed-off-by: James Liao --- drivers/soc/mediatek/mtk-scpsys-mt8173.c | 13 - 1 file changed, 12 insertions(+), 1

Re: [PATCH v2 00/12] mtd: nand_bbt: introduce independent nand BBT

2015-12-29 Thread 潘栋
Hi Boris and Ezequiel, 2015-12-29 23:11 GMT+08:00 Boris Brezillon : > On Tue, 29 Dec 2015 12:07:50 -0300 > Ezequiel Garcia wrote: > >> On 29 December 2015 at 06:35, Boris Brezillon >> wrote:

Re: [PATCH v3 0/4] Add online file check feature

2015-12-29 Thread Andrew Morton
On Tue, 29 Dec 2015 20:00:08 -0700 "Gang He" wrote: > > This feature should be documented, please. That means all pseudo-file > > locations, all inputs, all outputs, expected behaviour etc etc. Enough > > info so that our users can usefully and fully use this feature in the > >

Re: [PATCH] mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()

2015-12-29 Thread Joshua Clayton
On Wednesday, December 30, 2015 10:17:50 AM Sudip Mukherjee wrote: > On Sat, Dec 26, 2015 at 09:12:42PM -0800, Joshua Clayton wrote: > > running sparse on drivers/staging/lustre results in dozens of warnings: > > include/linux/gfp.h:281:41: warning: > > odd constant _Bool cast (40 becomes 1) >

Re: [PATCH v3 1/4] ocfs2: export ocfs2_kset for online file check

2015-12-29 Thread Gang He
Hello Andrew, >>> > On Fri, 25 Dec 2015 15:16:16 +0800 Gang He wrote: > >> Export ocfs2_kset object from ocfs2_stackglue kernel module, >> then online file check code will create the related sysfiles >> under ocfs2_kset object. >> >> ... >> >> --- a/fs/ocfs2/stackglue.c >> +++

[PATCH] thermal: re-calculate k_po/k_pu when update sustainable power

2015-12-29 Thread Leo Yan
k_po/k_pu are in essence ratio values compared with sustainable power. So when update sustainable power, we can recalculate k_po/k_pu simply with below formula: sustainable_power(new) k_p(new) = -- * k_p(old) sustainable_power(old)

[PATCH 4/5] reset: mediatek: mt2701 reset controller dt-binding file

2015-12-29 Thread James Liao
From: Shunli Wang Dt-binding file about reset controller is used to provide kinds of definition, which is referenced by dts file and IC-specified reset controller driver code. Signed-off-by: Shunli Wang ---

[PATCH 3/5] clk: mediatek: Add MT2701 clock support

2015-12-29 Thread James Liao
From: Shunli Wang Add MT2701 clock support, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao --- drivers/clk/mediatek/Kconfig |8 +

Re: RCU stall and the system boot hang with nfsroot

2015-12-29 Thread Aaron Ma
On Wed, Dec 30, 2015 at 7:42 AM, Paul E. McKenney wrote: > On Tue, Dec 29, 2015 at 05:34:38PM +0800, Aaron Ma wrote: >> Add paul...@linux.vnet.ibm.com >> >> On Tue, Dec 29, 2015 at 5:32 PM, Aaron Ma wrote: >> > Hi, Paul: >> > I found the

Re: [PATCH 3/3] rtc: s5m: Make register configuration per S2MPS device to remove exceptions

2015-12-29 Thread Krzysztof Kozlowski
On 30.12.2015 12:38, Krzysztof Kozlowski wrote: > On 30.12.2015 11:53, Yadwinder Singh Brar wrote: >> Hi Krysztof, >> >> On Tue, Dec 29, 2015 at 5:53 PM, Krzysztof Kozlowski >> wrote: >>> Before updating time and alarm the driver must set appropriate mask in >>> UDR

Re: [PATCH] mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()

2015-12-29 Thread Sudip Mukherjee
On Sat, Dec 26, 2015 at 09:12:42PM -0800, Joshua Clayton wrote: > running sparse on drivers/staging/lustre results in dozens of warnings: > include/linux/gfp.h:281:41: warning: > odd constant _Bool cast (40 becomes 1) > > Use "!!" to explicitly convert the result to bool range. > ---

[PATCH v2 3/3] rtc: s5m: Make register configuration per S2MPS device to remove exceptions

2015-12-29 Thread Krzysztof Kozlowski
Before updating time and alarm the driver must set appropriate mask in UDR register. For that purpose the driver uses common register configuration and a lot of exceptions per device in the code. The exceptions are not obvious, for example except the change in the logic sometimes the fields are

[PATCH v2 1/3] rtc: s5m: Cleanup by removing useless 'rtc' prefix from fields

2015-12-29 Thread Krzysztof Kozlowski
Remove the 'rtc' prefix from some of the fields in struct s5m_rtc_reg_config because it is obvious - this is a RTC driver. No functional changes. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. None. --- drivers/rtc/rtc-s5m.c | 40

[PATCH v2 2/3] rtc: s5m: Add separate field for storing auto-cleared mask in register config

2015-12-29 Thread Krzysztof Kozlowski
Some devices from S2M/S5M family use different register update masks for different operations (alarm and register update). Now the driver uses common register configuration and a lot of exceptions per device in code. Before eliminating the exceptions and using specific register configuration for

Re: [PATCH 1/2] Staging: panel: Fix line over 80 characters

2015-12-29 Thread Sudip Mukherjee
On Sun, Dec 27, 2015 at 12:16:15PM +0100, Ksenija Stanojevic wrote: > Split comment in order to fit into 80 characters per line. > Found by checkpatch.pl > > Signed-off-by: Ksenija Stanojevic > --- Instead of multiline maybe this is better: diff --git

<    1   2   3   4   5   6   7   8   >