Re: [RFC PATCH 2/3] ARM: at91/dt: add sama5d2 pinmux

2015-08-02 Thread Ludovic Desroches
Hi Josh, On Mon, Aug 03, 2015 at 02:40:18PM +0800, Josh Wu wrote: > Hi, Ludovic > > On 7/31/2015 11:08 PM, Ludovic Desroches wrote: > >Signed-off-by: Ludovic Desroches > >--- > > arch/arm/boot/dts/sama5d2-pinfunc.h | 760 > > > > 1 file changed, 760 inserti

Re: about ENOSYS

2015-08-02 Thread Drokin, Oleg
subject have been missing, so I filled in something. On Aug 3, 2015, at 2:18 AM, Shraddha Barke wrote: > From b67c6c20455b04b77447ab4561e44f1a75dd978d Mon Sep 17 00:00:00 2001 > From: Shraddha Barke > Date: Mon, 3 Aug 2015 11:34:19 +0530 > Subject: [PATCH] Staging : lustre : Use -EINVAL instead

Re: [RFC PATCH 2/3] ARM: at91/dt: add sama5d2 pinmux

2015-08-02 Thread Josh Wu
Hi, Ludovic On 7/31/2015 11:08 PM, Ludovic Desroches wrote: Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/sama5d2-pinfunc.h | 760 1 file changed, 760 insertions(+) create mode 100644 arch/arm/boot/dts/sama5d2-pinfunc.h diff --git a/arch/arm/b

Re: [PATCH v6 0/3] Add MediaTek display PWM driver

2015-08-02 Thread YH Huang
On Fri, 2015-07-24 at 17:10 +0800, YH Huang wrote: > On Fri, 2015-07-24 at 10:42 +0200, Matthias Brugger wrote: > > On Monday, July 20, 2015 04:17:14 PM YH Huang wrote: > > > This patch series add the use of display PWM driver, documentation > > > and device tree for Mediatek SoCs. The driver is us

[PATCH RESEND] 9p: do not overwrite return code when locking fails

2015-08-02 Thread Dominique Martinet
If the remote locking fail, we run a local vfs unlock that should work and return success to userland when we didn't actually lock at all. We need to tell the application that tried to lock that it didn't get it, not that all went well. Signed-off-by: Dominique Martinet --- fs/9p/vfs_file.c | 3

Re: [PATCH] mmc: dw_mmc: Fix coding style issues

2015-08-02 Thread Shawn Lin
On 2015-8-3 12:07, Jaehoon Chung wrote: Hi, Shawn. On 07/28/2015 12:06 PM, Shawn Lin wrote: This patch fixes the following issues reported by checkpatch.pl: - use -EINVAL instead of -ENOSYS, to fix warning message: "ENOSYS means 'invalid syscall nr' and nothing else" - split lines whose leng

linux-next: Tree for Aug 3

2015-08-02 Thread Stephen Rothwell
Hi all, Changes since 20150731: The drm-misc tree gained a conflict against Linus' tree. Non-merge commits (relative to Linus' tree): 4919 4988 files changed, 250651 insertions(+), 115613 deletions(-) I have created

Re: [PATCH v3] target: Drop iSCSI use of mutex around max_cmd_sn increment

2015-08-02 Thread Nicholas A. Bellinger
On Thu, 2015-07-23 at 14:53 -0700, Spencer Baugh wrote: > From: Roland Dreier > > In a performance profile, taking a mutex in iscsit_increment_maxcmdsn() > shows up very high. However taking a mutex around "sess->max_cmd_sn += 1" > seems pretty silly: we're not serializing against other contexts

[no subject]

2015-08-02 Thread Shraddha Barke
>From b67c6c20455b04b77447ab4561e44f1a75dd978d Mon Sep 17 00:00:00 2001 From: Shraddha Barke Date: Mon, 3 Aug 2015 11:34:19 +0530 Subject: [PATCH] Staging : lustre : Use -EINVAL instead of -ENOSYS ENOSYS means that a nonexistent system call was called. This should not be used for invalid operatio

Re: [PATCH V2] staging: android: lowmemorykiller: imporve lmk to avoid deadlock issue

2015-08-02 Thread Dan Carpenter
On Mon, Aug 03, 2015 at 05:53:22AM +, Wang, Biao wrote: > Consider the following case: > Task A trigger lmk with a lock held, while task B try to > get this lock, but unfortunately B is the very culprit task lmk select to > kill. Then B will never be killed, and A will forever select B to kill.

[PATCH] cpupower tools: Fix error when running cpupower monitor

2015-08-02 Thread Shreyas B. Prabhu
get_cpu_topology() tries to get topology info from all cpus by reading files in the topology sysfs dir. If a cpu is offlined, since it doesn't have topology dir, this function fails and returns -1. This causes functions relying on get_cpu_topology() to fail. For example- $ cpupower monitor Cannot

[PATCH] Check return code from pdc20621_i2c_read()

2015-08-02 Thread Tomer Barletz
The variable spd0 might be used uninitialized when pdc20621_i2c_read() fails. This also generates a compilation warning with gcc 5.1. Signed-off-by: Tomer Barletz --- drivers/ata/sata_sx4.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/ata/sata_sx4.c

Re: [PATCH v2] arch: use WRITE_ONCE/READ_ONCE in smp_store_release/smp_load_acquire

2015-08-02 Thread Ralf Baechle
On Sun, Aug 02, 2015 at 05:11:04PM +0200, Andrey Konovalov wrote: > diff --git a/arch/mips/include/asm/barrier.h b/arch/mips/include/asm/barrier.h > index 7ecba84..752e0b8 100644 > --- a/arch/mips/include/asm/barrier.h > +++ b/arch/mips/include/asm/barrier.h > @@ -133,12 +133,12 @@ > do {

RE: [PATCH] drivers: usb: fsl: Workaround for USB erratum-A005275

2015-08-02 Thread Badola Nikhil
> -Original Message- > From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: Friday, July 31, 2015 10:04 PM > To: Badola Nikhil-B46172 > Cc: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; > gre...@linuxfoundation.org; Mehresh Ramneek-B31383 > Subject: Re: [PATCH] drivers: us

Re: [PATCH v5 01/11] block: make generic_make_request handle arbitrarily sized bios

2015-08-02 Thread Ming Lin
On Sat, 2015-08-01 at 12:33 -0400, Mike Snitzer wrote: > On Sat, Aug 01 2015 at 2:58am -0400, > Ming Lin wrote: > > > On Fri, 2015-07-31 at 17:38 -0400, Mike Snitzer wrote: > > > > > > OK, once setup, to run the 2 tests in question directly you'd do > > > something like: > > > > > > dmtest run

[PATCH v3] HID: hid-input: Fix accessing freed memory during device disconnect

2015-08-02 Thread Krzysztof Kozlowski
During unbinding the driver was dereferencing a pointer to memory already freed by power_supply_unregister(). Driver was freeing its internal description of battery through pointers stored in power_supply structure. However, because the core owns the power supply instance, after calling power_supp

Re: Re: [PATCH 03/15] drivers: devfreq: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-02 Thread Viresh Kumar
On 03-08-15, 05:50, MyungJoo Ham wrote: > Acked-by: MyungJoo Ham > > > please let me know when the series is ready to go. It wouldn't harm even if you apply it without 1/15. So, just go on and apply :) -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

[PATCH V2] staging: android: lowmemorykiller: imporve lmk to avoid deadlock issue

2015-08-02 Thread Wang, Biao
Consider the following case: Task A trigger lmk with a lock held, while task B try to get this lock, but unfortunately B is the very culprit task lmk select to kill. Then B will never be killed, and A will forever select B to kill. Such dead lock will trigger softlock up issue. This patch try to p

Re: Re: [PATCH 03/15] drivers: devfreq: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-02 Thread MyungJoo Ham
> On 03-08-15, 05:10, MyungJoo Ham wrote: > > > IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there > > > is no need to do that again from its callers. Drop it. > > > > > > Signed-off-by: Viresh Kumar > > > > @ from include/linux/err.h > > #define IS_ERR_VALUE(x) unlikely((x)

[PATCH] Avoid compiler warning by storing the result of rq_data_dir() in an int variable

2015-08-02 Thread Tomer Barletz
With gcc 5.1 I get: warning: switch condition has boolean value [-Wswitch-bool] Signed-off-by: Tomer Barletz --- drivers/mtd/mtd_blkdevs.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index 41acc50..8830475 1006

Re: [PATCH 03/15] drivers: devfreq: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-02 Thread Viresh Kumar
On 03-08-15, 05:10, MyungJoo Ham wrote: > > IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there > > is no need to do that again from its callers. Drop it. > > > > Signed-off-by: Viresh Kumar > > @ from include/linux/err.h > #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned lon

[PATCH] Staging : lustre: Struct file_operations should be const

2015-08-02 Thread Shraddha Barke
Declare the file_operations structure ll_file_operations as const, as done elsewhere in the kernel, as there are no modifications to its fields. Problem found using checkpatch: WARNING: struct file_operations should normally be const Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lus

Re: [PATCH 11/15] drivers: target: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-02 Thread Nicholas A. Bellinger
On Fri, 2015-07-31 at 14:08 +0530, Viresh Kumar wrote: > IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there > is no need to do that again from its callers. Drop it. > > Signed-off-by: Viresh Kumar > --- > drivers/target/tcm_fc/tfc_cmd.c | 2 +- > 1 file changed, 1 insertion(+

Re: [PATCH v2] Revert "Staging : lustre: Struct file_operations should be const"

2015-08-02 Thread Sudip Mukherjee
On Sun, Aug 02, 2015 at 11:04:22PM +0530, Shraddha Barke wrote: Your subject says 'Revert "Staging : lustre: Struct file_operations should be const"'. This patch reverts which commit? > Declare the file_operations structure ll_file_operations as const, as done > elsewhere in the kernel, as there

Re: [RFC][PATCH] ecryptfs: Allow only one instance per lower path

2015-08-02 Thread Tyler Hicks
On 2015-08-02 09:51:16, Richard Weinberger wrote: > Am 02.08.2015 um 03:03 schrieb Tyler Hicks: > > Thanks for the report and for the patch, Richard! > > > > On 2015-07-31 12:23:10, Richard Weinberger wrote: > >> Mounting the same lower path multiple times should not result > >> into multiple ecry

Re: [PATCH] Adding YAMA hooks also when YAMA is not stacked.

2015-08-02 Thread James Morris
On Fri, 31 Jul 2015, Salvatore Mesoraca wrote: > Without this patch YAMA will not work at all if it is chosen > as the primary LSM instead of being "stacked". > > Signed-off-by: Salvatore Mesoraca > --- > security/yama/yama_lsm.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/securit

Re: [PATCH 03/15] drivers: devfreq: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-02 Thread MyungJoo Ham
> IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there > is no need to do that again from its callers. Drop it. > > Signed-off-by: Viresh Kumar @ from include/linux/err.h #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO) ... static inline bool __must_check IS_E

Re: [RFC PATCH 4/5] ARM: dts: DRA7: Add memory map region entries for qspi

2015-08-02 Thread Vignesh R
On 07/31/2015 07:18 PM, Sekhar Nori wrote: > On Tuesday 28 July 2015 02:11 PM, Vignesh R wrote: >> Add qspi memory mapped region entries for DRA7xx based SoCs. >> >> Signed-off-by: Vignesh R >> --- >> arch/arm/boot/dts/am4372.dtsi | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >

[PATCH v3 4/5] arm: qcom: dts: Add NAND controller node for ipq806x

2015-08-02 Thread Archit Taneja
The nand controller in IPQ806x is of the 'EBI2 type'. Use the corresponding compatible string. Cc: devicet...@vger.kernel.org Reviewed-by: Andy Gross Signed-off-by: Archit Taneja --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/a

[PATCH v3 5/5] arm: qcom: dts: Enable NAND node on IPQ8064 AP148 platform

2015-08-02 Thread Archit Taneja
Enable the NAND controller node on the AP148 platform. Provide pinmux information. Cc: devicet...@vger.kernel.org Signed-off-by: Archit Taneja --- arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 36 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/qco

[PATCH v3 3/5] dt/bindings: qcom_nandc: Add DT bindings

2015-08-02 Thread Archit Taneja
Add DT bindings document for the Qualcomm NAND controller driver. Cc: devicet...@vger.kernel.org v3: - Don't use '0x' when specifying nand controller address space - Add optional property for on-flash bbt usage Acked-by: Andy Gross Signed-off-by: Archit Taneja --- .../devicetree/bindings/mtd/

[PATCH v3 2/5] mtd: nand: Qualcomm NAND controller driver

2015-08-02 Thread Archit Taneja
The Qualcomm NAND controller is found in SoCs like IPQ806x, MSM7xx, MDM9x15 series. It exists as a sub block inside the IPs EBI2 (External Bus Interface 2) and QPIC (Qualcomm Parallel Interface Controller). These IPs provide a broader interface for external slow peripheral devices such as LCD and

[PATCH v3 1/5] mtd: nand: Create a BBT flag to access bad block markers in raw mode

2015-08-02 Thread Archit Taneja
Some controllers can access the factory bad block marker from OOB only when they read it in raw mode. When ECC is enabled, these controllers discard reading/writing bad block markers, preventing access to them altogether. The bbt driver assumes MTD_OPS_PLACE_OOB when scanning for bad blocks. This

[PATCH v3 0/5] mtd: Qualcomm NAND controller driver

2015-08-02 Thread Archit Taneja
Add support for the NAND controller driver for SoC's that contain EBI2. For now, the only SoC upstream that has EBI2 is IPQ806x. The original version was posted a while back. The main comments were about the driver not being able to use nand_bbt. This was because the controller could read factory

Re: [RFC PATCH 4/5] ARM: dts: DRA7: Add memory map region entries for qspi

2015-08-02 Thread Vignesh R
On 08/01/2015 02:58 AM, Brian Norris wrote: > On Tue, Jul 28, 2015 at 02:11:15PM +0530, Vignesh R wrote: >> Add qspi memory mapped region entries for DRA7xx based SoCs. >> >> Signed-off-by: Vignesh R >> --- >> arch/arm/boot/dts/am4372.dtsi | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletio

Re: [RFC PATCH 4/5] ARM: dts: DRA7: Add memory map region entries for qspi

2015-08-02 Thread Vignesh R
On 07/31/2015 11:49 PM, Mark Brown wrote: > On Tue, Jul 28, 2015 at 02:11:15PM +0530, Vignesh R wrote: >> Add qspi memory mapped region entries for DRA7xx based SoCs. >> >> Signed-off-by: Vignesh R > >> qspi: qspi@4790 { >> compatible = "ti,am4372-qspi"; >>

Re: [RFC PATCH 1/5] spi: introduce flag for memory mapped read

2015-08-02 Thread Vignesh R
Hi, On 7/31/2015 11:47 PM, Mark Brown wrote: > On Tue, Jul 28, 2015 at 02:11:12PM +0530, Vignesh R wrote: > >> Introduce use_mmap_read field in spi_message struct. This can be set by >> mtd devices (m25p80) to indicate to spi-master (ti-qspi) to perform >> memory mapped read. This helps to distin

Re: Re: [PATCH] PM / devfreq: event: Remove incorrect property in exynos-ppmu DT binding

2015-08-02 Thread MyungJoo Ham
> Hello Myungjoo, > > On 07/23/2015 10:30 AM, Javier Martinez Canillas wrote: > > Hello Chanwoo, > > > > On 07/23/2015 10:19 AM, Chanwoo Choi wrote: > >> Hi Javier, > >> > >> On 07/13/2015 03:58 PM, Javier Martinez Canillas wrote: > >>> The exynos-ppmu driver is only a clock consumer and not a clo

Re: samples/kdbus/kdbus-workers.c and cross compiling MIPS

2015-08-02 Thread Michael Ellerman
On Fri, 2015-07-31 at 09:29 -0700, Greg Kroah-Hartman wrote: > On Fri, Jul 31, 2015 at 05:01:01PM +1000, Michael Ellerman wrote: > > It's obviously possible that some samples build with that configuration, but > > building against another arch'es kernel headers just seems like it's asking > > for

Re: [PATCH v2] HID: hid-input: Fix accessing freed memory during device disconnect

2015-08-02 Thread Krzysztof Kozlowski
On 03.08.2015 09:01, Krzysztof Kozlowski wrote: > During unbinding the driver was dereferencing a pointer to memory > already freed by power_supply_unregister(). > > Driver was freeing its internal description of battery through pointers > stored in power_supply structure. However, because the cor

Re: [PATCH v2 0/4] mtd: pxa3xx_nand: rework the timing setup

2015-08-02 Thread Robert Jarzmik
Ezequiel Garcia writes: > Just tested linux-next (hence *without* the patchset) and I see > the same "Wait time out". In other words, pxa3xx-nand is broken > on PXA :/ > > Interestingly, the culprit doesn't seem to be in pxa3xx-nand itself. > Reverting the recent commits on pxa3xx-nand doesn't he

Re: [PATCH 9/15 V2] drivers: rtc: Drop (un)likely before IS_ERR(_OR_NULL)

2015-08-02 Thread Hans Ulli Kroll
Hi On Fri, 31 Jul 2015, Viresh Kumar wrote: > IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there > is no need to do that again from its callers. Drop it. > > gemini driver was using likely() for a failure case while the rtc driver > is getting registered. That looks wrong and

Re: [linux-sunxi] [PATCH] ARM: dts: sunxi: Raise minimum CPU voltage for sun7i-a20 to a level all boards can supply

2015-08-02 Thread Chen-Yu Tsai
On Mon, Aug 3, 2015 at 12:22 PM, Julian Calaby wrote: > Hi Chen-Yu, > > On Mon, Aug 3, 2015 at 12:37 PM, Chen-Yu Tsai wrote: >> Hi, >> >> On Mon, Aug 3, 2015 at 7:35 AM, Julian Calaby >> wrote: >>> Hi Timo, >>> >>> On Mon, Aug 3, 2015 at 5:23 AM, Timo Sigurdsson >>> wrote: sun7i-a20.dtsi

Re: [PATCH 3.2 000/164] 3.2.70-rc1 review

2015-08-02 Thread Guenter Roeck
On 08/02/2015 02:49 PM, Ben Hutchings wrote: On Sat, 2015-08-01 at 19:23 -0700, Guenter Roeck wrote: On 08/01/2015 05:02 PM, Ben Hutchings wrote: This is the start of the stable review cycle for the 3.2.70 release. There are 164 patches in this series, which will be posted as responses to this

Re: [linux-sunxi] [PATCH] ARM: dts: sunxi: Raise minimum CPU voltage for sun7i-a20 to a level all boards can supply

2015-08-02 Thread Julian Calaby
Hi Chen-Yu, On Mon, Aug 3, 2015 at 12:37 PM, Chen-Yu Tsai wrote: > Hi, > > On Mon, Aug 3, 2015 at 7:35 AM, Julian Calaby wrote: >> Hi Timo, >> >> On Mon, Aug 3, 2015 at 5:23 AM, Timo Sigurdsson >> wrote: >>> sun7i-a20.dtsi contains an cpufreq operating point at 0.9 volts. Most A20 >>> boards >

Re: [PATCH] pci/pciehp: bail on bogus pcie reads from removed devices

2015-08-02 Thread Bjorn Helgaas
On Tue, Jul 21, 2015 at 12:25:30PM -0400, Jarod Wilson wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=99841 > > Seems like a read of all 1's from a register of a device that has gone > away should be taken as a sign that the device has gone away. > Section 6.2.10 of the PCIE spec (v4.0, rev

Re: [PATCH] mm: add the block to the tail of the list in expand()

2015-08-02 Thread Dave Hansen
On 08/02/2015 07:05 PM, Xishi Qiu wrote: >> > Also, this might not do very much good in practice. If you are >> > splitting a high-order page, you are doing the split because the >> > lower-order lists are empty. So won't that list_add() be to an empty > > I made a mistake, you are right, all th

[PATCH] fs: orangefs: remove execute priviliges from module params

2015-08-02 Thread Sasha Levin
This makes no sense and causes warnings on boot. Signed-off-by: Sasha Levin --- fs/orangefs/pvfs2-mod.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/orangefs/pvfs2-mod.c b/fs/orangefs/pvfs2-mod.c index 69289c5..d80537d 100644 --- a/fs/orangefs/pvfs2-mod.c +++ b/fs/or

Re: [PATCH] mmc: dw_mmc: Fix coding style issues

2015-08-02 Thread Jaehoon Chung
Hi, Shawn. On 07/28/2015 12:06 PM, Shawn Lin wrote: > This patch fixes the following issues reported by checkpatch.pl: > - use -EINVAL instead of -ENOSYS, to fix warning message: > "ENOSYS means 'invalid syscall nr' and nothing else" > - split lines whose length is greater than 80 characters > -

[PATCH v1 2/2] pinctrl: rockchip: only enable gpio clock when it setting

2015-08-02 Thread huang lin
gpio can keep state even the clock disable, for save power consumption, only enable gpio clock when it setting Signed-off-by: Heiko Stuebner Signed-off-by: huang lin Signed-off-by: huang lin --- drivers/pinctrl/pinctrl-rockchip.c | 60 ++ 1 file changed, 54

[PATCH v1 1/2] clk: rockchip: add pclk_pd_pmu to the list of rk3288 critical clocks

2015-08-02 Thread huang lin
pclk_pd_pmu needs to keep running and with the upcoming gpio clock handling this is not always the case anymore. So add it to the list of critical clocks for now. Signed-off-by: Heiko Stuebner Signed-off-by: huang lin --- drivers/clk/rockchip/clk-rk3288.c | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH 2/2] media: atmel-isi: move configure_geometry() to start_streaming()

2015-08-02 Thread Josh Wu
HI, Laurent On 7/31/2015 10:37 PM, Laurent Pinchart wrote: Hi Josh, Thank you for the patch. On Wednesday 17 June 2015 18:39:39 Josh Wu wrote: As in set_fmt() function we only need to know which format is been set, we don't need to access the ISI hardware in this moment. So move the configur

Re: [PATCH v4 2/2] dt: power: st: Provide bindings for ST's OPPs

2015-08-02 Thread Viresh Kumar
On 31-07-15, 09:37, Stephen Boyd wrote: > For qcom platforms, the frequency is almost always constant. > There may be some tables where we have a couple higher > frequencies than others because the speed bin is different. > Otherwise the voltage/current is changing based on the silicon > characteri

[PATCH 1/1] add-ZTE-pid

2015-08-02 Thread Liu.Zhao
Signed-off-by: Liu.Zhao --- drivers/usb/serial/option.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index f0c0c53..6996308 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@

[PATCH] igb: Fix a deadlock in igb_sriov_reinit

2015-08-02 Thread Jia-Ju Bai
When igb_init_interrupt_scheme in igb_sriov_reinit is failed, the lock acquired by rtnl_lock() is not released, which causes a deadlock. This patch adds rtnl_unlock() in error handling to fix it. Signed-off-by: Jia-Ju Bai --- drivers/net/ethernet/intel/igb/igb_main.c |1 + 1 file changed, 1

[PATCH 1/1] add-ZTE-pid

2015-08-02 Thread Liu.Zhao
Signed-off-by: Liu.Zhao --- drivers/usb/serial/option.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index f0c0c53..6996308 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@

[PATCH v2] mmc: dw_mmc: Add external dma interface support

2015-08-02 Thread Shawn Lin
DesignWare MMC Controller can support two types of DMA mode: external dma and internal dma. We get a RK312x platform integrated dw_mmc and ARM pl330 dma controller. This patch add edmac ops to suuport these platforms. I've tested it on RK312x platform with edmac mode and RK3288 platform with idmac

[PATCH] usb_gadget: fix spin_lock in pch_udc

2015-08-02 Thread Pengyu Ma
When remove module g_serial on quark platform, the following Warning on: Modules linked in: usb_f_acm u_serial g_serial(-) pch_udc libcomposite configfs udc_core ad7298 industrialio_triggered_buffer kfifo_buf tpm_i2c_infineon indus CPU: 0 PID: 369 Comm: modprobe Not tainted 3.14.29ltsi-WR7.0.0.0_

[PATCH] 3c59x: Fix resource leaks in vortex_open

2015-08-02 Thread Jia-Ju Bai
When vortex_up is failed, the skb buffers allocated by __netdev_alloc_skb in vortex_open are not released, which may cause resource leaks. This bug has been submitted before. This patch modifies the error handling code to fix it. Signed-off-by: Jia-Ju Bai --- drivers/net/ethernet/3com/3c59x.c |

Re: [PATCH RFC 1/3] x86: Add Intel PT common files

2015-08-02 Thread Takao Indoh
On 2015/08/02 19:02, Thomas Gleixner wrote: > On Wed, 29 Jul 2015, Takao Indoh wrote: >> +/* >> + * Table of Physical Addresses bits >> + */ >> +enum topa_sz { >> +TOPA_4K = 0, >> +TOPA_8K, >> +TOPA_16K, >> +TOPA_32K, >> +TOPA_64K, >> +TOPA_128K, >> +TOPA_256K, >> +T

Re: [PATCH] thermal/cpu_cooling: remove local cooling state variable

2015-08-02 Thread Viresh Kumar
On 01-08-15, 17:04, Viresh Kumar wrote: > On 31-07-15, 08:30, Radivoje Jovanovic wrote: > > I agree with you that this patch is trivial for the current > > implementation since the notifier, as it is currently, will enforce > > cpu_cooling policy change at every CPUFREQ_ADJUST which would cause >

[PATCH] fallback to hostname in scripts/package/builddeb

2015-08-02 Thread Christian Kujau
Hi, I happened to build a kernel with "make deb-pkg" on a machine with no network connectivity, but this failed with: [...] INSTALL debian/headertmp/usr/include/asm/ (65 files) hostname: Name or service not known ../scripts/package/Makefile:90: recipe for target 'deb-pkg' failed make[2]: *** [

[PATCH 6/7] cpufreq: rename cpufreq_real_policy as cpufreq_user_policy

2015-08-02 Thread Viresh Kumar
Its all about caching min/max freq requested by userspace, and the name 'cpufreq_real_policy' doesn't fit that well. Rename it to cpufreq_user_policy. Signed-off-by: Viresh Kumar --- include/linux/cpufreq.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/cpu

[PATCH 4/7] cpufreq: remove redundant 'governor' field from user_policy

2015-08-02 Thread Viresh Kumar
Its always same as policy->governor, and there is no need to keep another copy of it. Remove it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 7 ++- include/linux/cpufreq.h | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/driv

[PATCH 5/7] cpufreq: remove redundant 'policy' field from user_policy

2015-08-02 Thread Viresh Kumar
Its always same as policy->policy, and there is no need to keep another copy of it. Remove it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 10 +- include/linux/cpufreq.h | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/d

[PATCH 7/7] cpufreq: drop !cpufreq_driver check from cpufreq_parse_governor()

2015-08-02 Thread Viresh Kumar
Driver is guaranteed to be present on a call to cpufreq_parse_governor() and there is no need to check for !cpufreq_driver. Drop it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufre

[PATCH 2/7] cpufreq: use memcpy() to copy policy

2015-08-02 Thread Viresh Kumar
cpufreq_get_policy() is useful if the pointer to policy isn't available in advance. But if it is available, then there is no need to call cpufreq_get_policy(). Directly use memcpy() to copy the policy. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 8 ++-- 1 file changed, 2 inse

[PATCH 3/7] cpufreq: update user_policy.* on success

2015-08-02 Thread Viresh Kumar
'user_policy' caches properties of a policy that are set by userspace. And these must be updated only if cpufreq core was successful in updating them based on request from user space. In store_scaling_governor(), we are updating user_policy.policy and user_policy.governor even if cpufreq_set_polic

[PATCH 1/7] cpufreq: remove redundant CPUFREQ_INCOMPATIBLE notifier event

2015-08-02 Thread Viresh Kumar
What's being done from CPUFREQ_INCOMPATIBLE, can also be done with CPUFREQ_ADJUST. There is nothing special with CPUFREQ_INCOMPATIBLE notifier. Kill CPUFREQ_INCOMPATIBLE and fix its usage sites. This also updates the numbering of notifier events to remove holes. Signed-off-by: Viresh Kumar ---

Re: linux: sata_nv: adma support

2015-08-02 Thread Robert Hancock
On Sun, Aug 2, 2015 at 3:08 AM, Pali Rohár wrote: > On Sunday 02 August 2015 03:45:32 Robert Hancock wrote: >> On Sat, Aug 1, 2015 at 2:09 PM, Pali Rohár >> wrote: >> > On Thursday 25 December 2014 07:22:13 Robert Hancock wrote: >> >> On Tue, Dec 23, 2014 at 1:51 PM, Pali Rohár >> >> >> >> wrote

[GIT PULL] Thermal-SoC management updates for v4.2-rc6

2015-08-02 Thread Eduardo Valentin
Hello Rui, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal fixes to receive Thermal-SoC Management updates for v4.2-rc6 with top-most 3c19d237dd8148926e49259e495ee411f09c: thermal: exynos: Remove unused code related to platform_data on probe()

[PULL] modules fix

2015-08-02 Thread Rusty Russell
The following changes since commit d61be4b3f2684b6d76ef8c1d28ecdeb9bb20fa8f: Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux (2015-07-28 11:26:13 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux.gi

Re: [patch 2/7] x86/lguest: Do not setup unused irq vectors

2015-08-02 Thread Rusty Russell
Thomas Gleixner writes: > No point in assigning the interrupt vectors if there is no interrupt > chip installed. Move it to lguest_setup_irq(). > > Signed-off-by: Thomas Gleixner > Cc: Rusty Russell > --- > arch/x86/lguest/boot.c | 13 - > 1 file changed, 8 insertions(+), 5 deleti

Re: [PATCH v2 0/4] mtd: pxa3xx_nand: rework the timing setup

2015-08-02 Thread Ezequiel Garcia
On 20 July 2015 at 16:49, Robert Jarzmik wrote: > Ezequiel Garcia writes: > >> Here you go: >> >> http://git.infradead.org/users/ezequielg/linux/shortlog/refs/heads/pxa3xx-nand-timing-rework-v2 > > Okay, I've tested this on cm-x300. The result is not bright : > nand: device found, Manufac

RE: [PATCH 1/2] KVM: x86: set TMR when the interrupt is accepted

2015-08-02 Thread Zhang, Yang Z
Paolo Bonzini wrote on 2015-07-31: > > > On 31/07/2015 04:49, Steve Rutherford wrote: >> Oh... Yeah. That's a damn good point, given that the interrupt can be >> injected from another thread while one is in that guest vcpu. >> >> Easiest time to update the TMR should be on guest entry through >>

Re: [PATCH v2] kthread: Export kthread functions

2015-08-02 Thread Jes Sorensen
yalin wang writes: >> On Aug 1, 2015, at 21:32, Neil Horman wrote: >>> strange, this is my test result: >>> >>> size built-in.o* >>> text data bss dec hex filename >>> 743937 50786 56008 850731 cfb2b built-in.o // with the patch >>> 744069 50786 56008 850863 cfbaf built-

[PATCH] e100: Release skb when DMA mapping is failed in e100_xmit_prepare

2015-08-02 Thread Jia-Ju Bai
When pci_dma_mapping_error in e100_xmit_prepare is failed, the skb buffer allocated by netdev_alloc_skb_ip_align in e100_rx_alloc_skb is not released, which causes a possible resource leak. This patch adds error handling code to fix it. Signed-off-by: Jia-Ju Bai --- drivers/net/ethernet/intel/e1

[PATCH V2] iio: declare struct to fix warning

2015-08-02 Thread Pengyu Ma
When compile iio related driver the following warning shown: include/linux/iio/trigger.h:35:34: warning: 'struct iio_trigger' declared inside parameter list int (*set_trigger_state)(struct iio_trigger *trig, bool state); include/linux/iio/trigger.h:38:18: warning: 'struct iio_dev' declared insi

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-02 Thread Wangnan (F)
On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote: Em Fri, Jul 31, 2015 at 12:35:22PM -0300, Arnaldo Carvalho de Melo escreveu: But point here is, when I see "enable passing bpf object file to --event" I apply the patch and expect to be able to go straight away and do: perf record -e f

Re: [linux-sunxi] [PATCH] ARM: dts: sunxi: Raise minimum CPU voltage for sun7i-a20 to a level all boards can supply

2015-08-02 Thread Chen-Yu Tsai
Hi, On Mon, Aug 3, 2015 at 7:35 AM, Julian Calaby wrote: > Hi Timo, > > On Mon, Aug 3, 2015 at 5:23 AM, Timo Sigurdsson > wrote: >> sun7i-a20.dtsi contains an cpufreq operating point at 0.9 volts. Most A20 >> boards >> (or all?), however, do not allow the voltage to go below 1.0V. Thus, raise

RE: [PATCH 1/2] KVM: x86: set TMR when the interrupt is accepted

2015-08-02 Thread Zhang, Yang Z
Paolo Bonzini wrote on 2015-07-31: > > > On 31/07/2015 01:26, Zhang, Yang Z wrote: Do not compute TMR in advance. Instead, set the TMR just before the interrupt is accepted into the IRR. This limits the coupling between IOAPIC and LAPIC. >> >> Uh.., it back to original way which

Re: [GIT PULL] Samsung Thermal FIXES for v4.2-rc1

2015-08-02 Thread Eduardo Valentin
On Mon, Jul 06, 2015 at 05:26:57PM +0200, Lukasz Majewski wrote: > Dear Eduardo, > > Please find my pull request for Samsung Thermal fixes (v4.2-rc1): > > The following changes since commit > efa86858e1d8970411a140fa1e0c4dd18a8f2a89: > > thermal: armada: Update Armada 380 thermal sensor coeffi

Re: [PATCH v2] kthread: Export kthread functions

2015-08-02 Thread yalin wang
> On Aug 1, 2015, at 21:32, Neil Horman wrote: > > On Sat, Aug 01, 2015 at 03:12:42PM +0800, yalin wang wrote: >> >>> 在 2015年7月31日,22:14,Thomas Gleixner 写道: >>> >>> >>> On Fri, 31 Jul 2015, Thomas Gleixner wrote: >>> On Fri, 31 Jul 2015, yalin wang wrote: > it is optimised to 2 ins

[PATCH] e100: Add a check after pci_pool_create to avoid null pointer dereference

2015-08-02 Thread Jia-Ju Bai
The driver lacks the check of nic->cbs_pool after pci_pool_create in e100_probe. When this function is failed, a null pointer dereference occurs when pci_pool_alloc uses nic->cbs_pool in e100_alloc_cbs. This patch adds a check and related error handling code to fix it. Signed-off-by: Jia-Ju Bai

Re: [PATCH 3.10 ~ 3.14] efi: fix the efi 32bit boot failed problem

2015-08-02 Thread fupan
On 07/31/2015 08:05 PM, Matt Fleming wrote: On Fri, 31 Jul, at 09:22:33AM, fupan wrote: Hi, Matt Will you take care of this patch or I send a V2? Could you please send a V2 with the changes to the commit message that I suggested previously? Thanks! NP! Thanks! Fupan -- To unsubscribe fr

linux-next: manual merge of the drm-misc tree with Linus' tree

2015-08-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: drivers/gpu/drm/drm_atomic_helper.c between commit: 27667f4744fc ("i915: temporary fix for DP MST docking station NULL pointer dereference") from Linus' tree and commit: fc596660dd4e ("drm/atomic: add connectors_c

Linux 4.2-rc5

2015-08-02 Thread Linus Torvalds
We're getting up there to the later rc's, but it's looking like 4.2 might be one of the releases needing more than the usual seven rc releases - things aren't calming down like I would wish, and we've still had some fairly annoying issues pop up. For example, there was a core VFS fix merged just y

Re: [PATCH] mm: add the block to the tail of the list in expand()

2015-08-02 Thread Xishi Qiu
On 2015/8/1 7:24, Dave Hansen wrote: > On 07/31/2015 02:30 AM, Xishi Qiu wrote: >> __free_one_page() will judge whether the the next-highest order is free, >> then add the block to the tail or not. So when we split large order block, >> add the small block to the tail, it will reduce fragment. >

[PATCH V2] efi: fix 32bit kernel boot failed problem using efi

2015-08-02 Thread fupan.li
From: fli Commit 35d5134b7d5a ("x86/efi: Correct EFI boot stub use of code32_start") imported a bug, which will cause 32bit kernel boot failed using efi method. It should use the label's address instead of the value stored in the label to caculate the address of code32_start. Signed-off-by: Fupa

[PATCH] net: dsa: fix EDSA frame from hwaccel frame

2015-08-02 Thread Vivien Didelot
If the underlying network device features NETIF_F_HW_VLAN_CTAG_TX, an EDSA frame is prepended with a 802.1q header once queued. To fix this, push the VLAN tag to the payload if present, before checking the frame protocol. [note: we may prefer to access directly VLAN TCI from hwaccel frames, but t

Re: [PATCH v2] arch: use WRITE_ONCE/READ_ONCE in smp_store_release/smp_load_acquire

2015-08-02 Thread Michael Ellerman
On Sun, 2015-08-02 at 17:11 +0200, Andrey Konovalov wrote: > Replace ACCESS_ONCE() macro in smp_store_release() and smp_load_acquire() > with WRITE_ONCE() and READ_ONCE() on x86, arm, arm64, ia64, metag, mips, > powerpc, s390, sparc and asm-generic since ACCESS_ONCE does not work > reliably on non-

Re: [PATCH 3.10 ~ 3.14] efi: fix the efi 32bit boot failed problem

2015-08-02 Thread fupan
On 07/31/2015 08:21 PM, Luis Henriques wrote: On Fri, Jul 31, 2015 at 01:05:19PM +0100, Matt Fleming wrote: On Fri, 31 Jul, at 09:22:33AM, fupan wrote: Hi, Matt Will you take care of this patch or I send a V2? Could you please send a V2 with the changes to the commit message that I suggest

Re: [PATCH v2] arch: use WRITE_ONCE/READ_ONCE in smp_store_release/smp_load_acquire

2015-08-02 Thread Davidlohr Bueso
On Sun, 2015-08-02 at 17:11 +0200, Andrey Konovalov wrote: > Replace ACCESS_ONCE() macro in smp_store_release() and smp_load_acquire() > with WRITE_ONCE() and READ_ONCE() on x86, arm, arm64, ia64, metag, mips, > powerpc, s390, sparc and asm-generic since ACCESS_ONCE does not work > reliably on non-

[PATCH]Fix a null dereference in e1000_open

2015-08-02 Thread Jia-Ju Bai
When e1000e_setup_rx_resources is failed in e1000_open, e1000e_free_tx_resources in "err_setup_rx" segment is executed. "writel(0, tx_ring->head)" statement in e1000_clean_tx_ring in e1000e_free_tx_resources will cause a null dereference(crash), because "tx_ring->head" is only assigned in e1000_co

Re: [v3,1/8] powerpc/perf/hv-24x7: Whitespace - fix parameter alignment

2015-08-02 Thread Michael Ellerman
On Wed, 2015-15-07 at 03:01:48 UTC, Sukadev Bhattiprolu wrote: > Fix parameter alignment to be consistent with coding style. > > Signed-off-by: Sukadev Bhattiprolu Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/40386217cd7bc38908d6 cheers -- To unsubscribe from this list: se

Re: [v3, 2/8] powerpc/perf/hv-24x7: Simplify extracting counter from result buffer

2015-08-02 Thread Michael Ellerman
On Wed, 2015-15-07 at 03:01:49 UTC, Sukadev Bhattiprolu wrote: > Simplify code that extracts a 24x7 counter from the HCALL's result buffer. > > Suggested-by: Joe Perches > Signed-off-by: Sukadev Bhattiprolu Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/465345ca387ed491c467

[PATCH] Documentation: minor typo fix in mailbox.txt

2015-08-02 Thread Leo Yan
Fix minor typo so that can pass correct pointer variable for container_of(). Signed-off-by: Leo Yan --- Documentation/mailbox.txt | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/mailbox.txt b/Documentation/mailbox.txt index 1092ad9..f3f0ac2 100644 --- a/

[PATCH v3 3/5] dt-bindings: clk: Hi6220: Document stub clock driver

2015-08-02 Thread Leo Yan
Document the new compatible for stub clock driver which is used for CPU and DDR's dynamic frequency scaling. Signed-off-by: Leo Yan --- .../devicetree/bindings/clock/hi6220-clock.txt| 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/devi

[PATCH v3 4/5] clk: Hi6220: add stub clock driver

2015-08-02 Thread Leo Yan
On Hi6220, there have some clocks which can use mailbox channel to send messages to power controller to change frequency; this includes CPU, GPU and DDR clocks. For dynamic frequency scaling, firstly need write the frequency value to SRAM region, and then send message to mailbox to trigger power c

[PATCH v3 5/5] arm64: dts: add Hi6220's stub clock node

2015-08-02 Thread Leo Yan
Enable SRAM node and stub clock node for Hi6220; furthermore add the CPU's clock so it will be used by cpufreq-dt driver. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/hisilico

  1   2   3   >