Re: [PATCH net-next V3 5/6] net: introduce NETDEV_CHANGE_TX_QUEUE_LEN

2016-06-29 Thread Jason Wang
On 2016年06月30日 13:59, Jason Wang wrote: On 2016年06月30日 13:12, Jason Wang wrote: On 2016年06月30日 12:56, John Fastabend wrote: On 16-06-29 08:52 PM, Jason Wang wrote: This patch introduces a new event - NETDEV_CHANGE_TX_QUEUE_LEN, this will be triggered when tx_queue_len. It could be used b

[PATCH v3 2/4] hwmon: (lm75) Drop lm75_read_value and lm75_write_value

2016-06-29 Thread Guenter Roeck
lm75_read_value and lm75_write_value don't really add any value. Replace with direct smbus access functions. Signed-off-by: Guenter Roeck --- v2, v3: No change drivers/hwmon/lm75.c | 42 +- 1 file changed, 9 insertions(+), 33 deletions(-) diff --git a/dr

[PATCH net-next V4 1/6] ptr_ring: support zero length ring

2016-06-29 Thread Jason Wang
Sometimes, we need zero length ring. But current code will crash since we don't do any check before accessing the ring. This patch fixes this. Signed-off-by: Jason Wang --- include/linux/ptr_ring.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/ptr_ring.h

[PATCH net-next V4 6/6] tun: switch to use skb array for tx

2016-06-29 Thread Jason Wang
We used to queue tx packets in sk_receive_queue, this is less efficient since it requires spinlocks to synchronize between producer and consumer. This patch tries to address this by: - switch from sk_receive_queue to a skb_array, and resize it when tx_queue_len was changed. - introduce a new pr

[PATCH net-next V4 4/6] skb_array: add wrappers for resizing

2016-06-29 Thread Jason Wang
Signed-off-by: Michael S. Tsirkin Signed-off-by: Jason Wang --- include/linux/skb_array.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index 2dd0d1e..f4dfade 100644 --- a/include/linux/skb_array.h +++ b/include/linux/skb_array

[PATCH net-next V4 2/6] skb_array: minor tweak

2016-06-29 Thread Jason Wang
Signed-off-by: Michael S. Tsirkin Signed-off-by: Jason Wang --- include/linux/skb_array.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index 678bfbf..2dd0d1e 100644 --- a/include/linux/skb_array.h +++ b/include/linu

[PATCH net-next V4 5/6] net: introduce NETDEV_CHANGE_TX_QUEUE_LEN

2016-06-29 Thread Jason Wang
This patch introduces a new event - NETDEV_CHANGE_TX_QUEUE_LEN, this will be triggered when tx_queue_len. It could be used by net device who want to do some processing at that time. An example is tun who may want to resize tx array when tx_queue_len is changed. Cc: John Fastabend Signed-off-by: J

[PATCH net-next V4 3/6] ptr_ring: support resizing multiple queues

2016-06-29 Thread Jason Wang
From: "Michael S. Tsirkin" Sometimes, we need support resizing multiple queues at once. This is because it was not easy to recover to recover from a partial failure of multiple queues resizing. Signed-off-by: Michael S. Tsirkin Signed-off-by: Jason Wang --- include/linux/ptr_ring.h |

[PATCH v3 3/4] hwmon: (lm75) Add update_interval attribute

2016-06-29 Thread Guenter Roeck
Since we know the chip's update interval, let's make it available to the user. Signed-off-by: Guenter Roeck --- v2, v3: No change drivers/hwmon/lm75.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index 7b18cbd4a5ec..fe83f70ba62a

[PATCH net-next V4 0/6] switch to use tx skb array in tun

2016-06-29 Thread Jason Wang
Hi all: This series tries to switch to use skb array in tun. This is used to eliminate the spinlock contention between producer and consumer. The conversion was straightforward: just introdce a tx skb array and use it instead of sk_receive_queue. A minor issue is to keep the tx_queue_len behaviou

[PATCH v3 4/4] hwmon: (lm75) Convert to use regmap

2016-06-29 Thread Guenter Roeck
Convert to use regmap. Leave caching to regmap and drop the register update function. While this can result in additional read operations if the temperature register is read continuously, it avoids re-reading the limit registers and thus overall reduces complexity. Signed-off-by: Guenter Roeck --

[PATCH v3 1/4] hwmon: (lm75) Handle cleanup with devm_add_action

2016-06-29 Thread Guenter Roeck
Use devm_add_action() to register the function to restore the original chip configuration. Use devm_hwmon_device_register_with_groups() to register the hwmon device, and drop the remove function as no longer needed. Signed-off-by: Guenter Roeck --- v2, v3: No change drivers/hwmon/lm75.c | 38 ++

[PATCH v3 2/4] perf annotate: Enable cross arch annotate

2016-06-29 Thread Ravi Bangoria
Change current data structures and function to enable cross arch annotate. Current implementation does not contain logic of record on one arch and annotating on other. This remote annotate is partially possible with current implementation for x86 (or may be arm as well) only. But, to make remote a

Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute available

2016-06-29 Thread Christoph Hellwig
On Thu, Jun 30, 2016 at 02:35:54PM +0800, Fam Zheng wrote: > also more code and less flexible IMO. For example, we need at least two > variants, for attribute_group and device_attribute separately, right? Yes, or maybe just a calling convention that just passes both.

Re: [PATCH] media: s5p-mfc fix vidioc_g_crop() to return crop info.

2016-06-29 Thread Hans Verkuil
On 06/30/2016 01:33 AM, Shuah Khan wrote: > Fix vidioc_g_crop() to report crop information irrepective of ctx state. > g_crop is expected to return crop information as long as the passed in > v4l2_crop type field is vV4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE. > > Signed-off-by: Shuah Khan > --- > driver

Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
On Wed, 06/29 23:24, Christoph Hellwig wrote: > On Thu, Jun 30, 2016 at 09:59:41AM +0800, Fam Zheng wrote: > > Documentation/kobject.txt: > > > Use the KOBJ_ADD action for when the kobject is first added to the kernel. > > > This should be done only after any attributes or children of the kobject >

Re: [PATCH] ALSA: riptide: Use DIV_ROUND_UP

2016-06-29 Thread Takashi Iwai
On Wed, 29 Jun 2016 16:56:28 +0200, Amitoj Kaur Chawla wrote: > > The kernel.h macro DIV_ROUND_UP performs the computation > (((n) + (d) - 1) /(d)) but is perhaps more readable. > > The Coccinelle script used to make this change is as follows: > @haskernel@ > @@ > > #include > > @depends on ha

Re: [PATCH v3] arm: tegra124: remove commas from unit addresses

2016-06-29 Thread Alexandre Courbot
On Thursday, June 30, 2016 7:21:37 AM JST, Marcel Ziswiler wrote: Remove commas from unit addresses as suggested by Rob Herring upon me posting initial Apalis TK1 support: http://article.gmane.org/gmane.linux.ports.tegra/26608 Please keep the remaining 0, notation on the GPU node in place as a

Re: [PATCH v4 0/11] Misc fixup and add RK3399 eDP support to Analogix DP driver[Involving remittance information, please pay attention to the safety of property]

2016-06-29 Thread Yakir Yang
Sean, On 06/29/2016 10:01 PM, Sean Paul wrote: On Wed, Jun 29, 2016 at 5:14 AM, Yakir Yang wrote: RK3399 and RK3288 shared the same eDP IP controller, only some light difference with VOP configure and GRF configure. The whole set looks good to me. All patches should have my R-b now, thanks f

Re: [GIT PULL rcu/next] RCU commits for 4.8

2016-06-29 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > This series contains the following changes: > > 1.Documentation updates. Just some simple changes, no design-level > additions. I guess that means two for the next merge window... > > http://lkml.kernel.org/g/20160615213847.ga3...

Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute available

2016-06-29 Thread Christoph Hellwig
On Thu, Jun 30, 2016 at 09:59:41AM +0800, Fam Zheng wrote: > Documentation/kobject.txt: > > Use the KOBJ_ADD action for when the kobject is first added to the kernel. > > This should be done only after any attributes or children of the kobject > > have been initialized properly, as userspace will i

Re: [PATCH net-next V3 6/6] tun: switch to use skb array for tx

2016-06-29 Thread kbuild test robot
Hi, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Jason-Wang/switch-to-use-tx-skb-array-in-tun/20160630-120656 coccinelle warnings: (new ones prefixed by >>) >> drivers/net/tun.c:1476:2-3: Unneeded semicolon Please review and possibly fold the

[PATCH] tun: fix semicolon.cocci warnings

2016-06-29 Thread kbuild test robot
drivers/net/tun.c:1476:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Jason Wang Signed-off-by: Fengguang Wu --- tun.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@

[PATCH v2] cpufreq: powernv: Replacing pstate_id with frequency table index

2016-06-29 Thread Akshay Adiga
Refactoring code to use frequency table index instead of pstate_id. This abstraction will make the code independent of the pstate values. - No functional changes - The highest frequency is at frequency table index 0 and the frequency decreases as the index increases. - Macros pstates_to_idx() an

Re: [PATCH v3 3/4] perf annotate: add powerpc support

2016-06-29 Thread Michael Ellerman
On Thu, 2016-06-30 at 11:44 +0530, Ravi Bangoria wrote: > diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c > index 36a5825..b87eac7 100644 > --- a/tools/perf/util/annotate.c > +++ b/tools/perf/util/annotate.c > @@ -476,6 +481,125 @@ static int ins__cmp(const void *a, const void

Re: [PATCH v6v3 02/12] mm: migrate: support non-lru movable page migration

2016-06-29 Thread Minchan Kim
On Thu, Jun 30, 2016 at 11:26:45AM +0530, Anshuman Khandual wrote: > >> Did you get a chance to test the driver out ? I am still concerned about > >> how to > >> handle the struct address_space override problem within the struct page. > > > > Hi Anshuman, > > > > Slow but I am working on that

linux-next: Tree for Jun 30

2016-06-29 Thread Stephen Rothwell
Hi all, Changes since 20160629: The net-next tree gained a conflict against Linus' tree. The lightnvm tree gained a build failure so I used the version from next-20160629. Non-merge commits (relative to Linus' tree): 6084 5883 files changed, 279537 insertions(+), 117460

Re: [PATCH V2 2/4] net-next: mediatek: don't use intermediate variables to store IRQ masks

2016-06-29 Thread kbuild test robot
Hi, [auto build test ERROR on net/master] [also build test ERROR on v4.7-rc5 next-20160629] [cannot apply to net-next/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/John-Crispin/net

Re: [PATCH] arm64: tegra: Add missing Smaug revision

2016-06-29 Thread Alexandre Courbot
On Wed, Jun 29, 2016 at 6:02 PM, Jon Hunter wrote: > > On 29/06/16 09:52, Alexandre Courbot wrote: >> The "google,smaug-rev2" string is missing from the compatible list of >> Smaug's DT. The differences of rev2 are not relevant at our current >> level of support and it boots just fine, so add it.

Re: [PATCH net-next V3 5/6] net: introduce NETDEV_CHANGE_TX_QUEUE_LEN

2016-06-29 Thread Jason Wang
On 2016年06月30日 13:12, Jason Wang wrote: On 2016年06月30日 12:56, John Fastabend wrote: On 16-06-29 08:52 PM, Jason Wang wrote: This patch introduces a new event - NETDEV_CHANGE_TX_QUEUE_LEN, this will be triggered when tx_queue_len. It could be used by net device who want to do some processing

Re: [PATCH v3 2/2] remoteproc: qcom: Introduce WCNSS peripheral image loader

2016-06-29 Thread Bjorn Andersson
On Wed 29 Jun 09:26 PDT 2016, Srinivas Kandagatla wrote: > Hi Bjorn, > > Few comments below, > Thanks! > On 28/06/16 21:58, Bjorn Andersson wrote: [..] > > checkpatch reports: > total: 0 errors, 16 warnings, 853 lines checked > Yeah, there's 16 cases left where I think it's worth going a fe

Re: [PATCH v6v3 02/12] mm: migrate: support non-lru movable page migration

2016-06-29 Thread Anshuman Khandual
On 06/28/2016 12:09 PM, Minchan Kim wrote: > On Mon, Jun 27, 2016 at 11:21:01AM +0530, Anshuman Khandual wrote: >> On 06/16/2016 11:07 AM, Minchan Kim wrote: >>> On Thu, Jun 16, 2016 at 09:12:07AM +0530, Anshuman Khandual wrote: On 06/16/2016 05:56 AM, Minchan Kim wrote: > On Wed, Jun 15,

RE: [PATCH v11 2/2] dmaengine: Add Xilinx zynqmp dma engine driver support

2016-06-29 Thread Appana Durga Kedareswara Rao
Hi Vinod, > > On Thu, Jun 09, 2016 at 09:07:47PM +0530, Kedareswara rao Appana wrote: > > > + dma_set_mask(&pdev->dev, DMA_BIT_MASK(44)); > > + dma_cap_set(DMA_SG, zdev->common.cap_mask); > > + dma_cap_set(DMA_MEMCPY, zdev->common.cap_mask); > > > /** > > + * struct zynqmp_dma_config - Z

Re: [PATCH v2 4/4] hwmon: (lm75) Convert to use regmap

2016-06-29 Thread kbuild test robot
Hi, [auto build test ERROR on hwmon/hwmon-next] [also build test ERROR on v4.7-rc5 next-20160629] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Guenter-Roeck/hwmon-lm75-Handle-cleanup-with

Re: [PATCH net-next V3 0/6] switch to use tx skb array in tun

2016-06-29 Thread Michael S. Tsirkin
On Thu, Jun 30, 2016 at 11:52:53AM +0800, Jason Wang wrote: > Hi all: > > This series tries to switch to use skb array in tun. This is used to > eliminate the spinlock contention between producer and consumer. The > conversion was straightforward: just introdce a tx skb array and use > it instead

[PATCH v14 3/4] usb: gadget: Integrate with the usb gadget supporting for usb charger

2016-06-29 Thread Baolin Wang
When the usb gadget supporting for usb charger is ready, the usb charger can implement the usb_charger_plug_by_gadget() function, usb_charger_exit() function and dev_to_uchger() function by getting 'struct usb_charger' from 'struct gadget'. Signed-off-by: Baolin Wang Reviewed-by: Li Jun Tested-b

[PATCH v14 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-06-29 Thread Baolin Wang
Currently the Linux kernel does not provide any standard integration of this feature that integrates the USB subsystem with the system power regulation provided by PMICs meaning that either vendors must add this in their kernels or USB gadget devices based on Linux (such as mobile phones) may not b

[PATCH v14 2/4] usb: gadget: Support for the usb charger framework

2016-06-29 Thread Baolin Wang
For supporting the usb charger, it adds the usb_charger_init() and usb_charger_exit() functions for usb charger initialization and exit. It will report to the usb charger when the gadget state is changed, then the usb charger can do the power things. Signed-off-by: Baolin Wang Reviewed-by: Li Ju

[PATCH v14 1/4] usb: gadget: Introduce the usb charger framework

2016-06-29 Thread Baolin Wang
This patch introduces the usb charger driver based on usb gadget that makes an enhancement to a power driver. It works well in practice but that requires a system with suitable hardware. The basic conception of the usb charger is that, when one usb charger is added or removed by reporting from the

[PATCH v14 4/4] power: wm831x_power: Support USB charger current limit management

2016-06-29 Thread Baolin Wang
Integrate with the newly added USB charger interface to limit the current we draw from the USB input based on the input device configuration identified by the USB stack, allowing us to charge more quickly from high current inputs without drawing more current than specified from others. Signed-off-

Re: [PATCH] drm: mediatek: fix prototypes after API change

2016-06-29 Thread Kuninori Morimoto
Hi > The newly added mediatek HDMI driver clashes with an API change > for struct hdmi_codec_ops, causing an 'allmodconfig' build to fail: > > drivers/gpu/drm/mediatek/mtk_hdmi.c:1653:15: error: initialization from > incompatible pointer type [-Werror=incompatible-pointer-types] > drivers/gpu/d

Re: [PATCH net-next V3 5/6] net: introduce NETDEV_CHANGE_TX_QUEUE_LEN

2016-06-29 Thread Jason Wang
On 2016年06月30日 12:56, John Fastabend wrote: On 16-06-29 08:52 PM, Jason Wang wrote: This patch introduces a new event - NETDEV_CHANGE_TX_QUEUE_LEN, this will be triggered when tx_queue_len. It could be used by net device who want to do some processing at that time. An example is tun who may wa

Re: [PATCH V2 4/4] net-next: mediatek: add support for IRQ grouping

2016-06-29 Thread kbuild test robot
Hi, [auto build test ERROR on net/master] [also build test ERROR on next-20160629] [cannot apply to net-next/master v4.7-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/John-Crispin/net

Re: modules: add ro_after_init support

2016-06-29 Thread Rusty Russell
Jessica Yu writes: > +++ Rusty Russell [29/06/16 10:38 +0930]: >>Jessica Yu writes: >>> Add ro_after_init support for modules by adding a new page-aligned section >>> in the module layout (after rodata) for ro_after_init data and enabling RO >>> protection for that section after module init runs.

Re: [PATCH net-next V3 5/6] net: introduce NETDEV_CHANGE_TX_QUEUE_LEN

2016-06-29 Thread John Fastabend
On 16-06-29 08:52 PM, Jason Wang wrote: > This patch introduces a new event - NETDEV_CHANGE_TX_QUEUE_LEN, this > will be triggered when tx_queue_len. It could be used by net device > who want to do some processing at that time. An example is tun who may > want to resize tx array when tx_queue_len i

Re: [RESEND PATCH v2 1/5] ir-rx51: Fix build after multiarch changes broke it

2016-06-29 Thread Tony Lindgren
* Ivaylo Dimitrov [160627 11:22]: > On 23.06.2016 20:48, Pali Rohár wrote: > > On Wednesday 22 June 2016 21:22:17 Ivaylo Dimitrov wrote: > > > The ir-rx51 driver for n900 has been disabled since the multiarch > > > changes as plat include directory no longer is SoC specific. > > > > > > Let's fix

Re: [LKP] [x86/KASLR] ed9f007ee6: -- System halted

2016-06-29 Thread Yinghai Lu
On Wed, Jun 29, 2016 at 1:29 PM, Huang, Ying wrote: > If you could provide a git branch for that, that will be easier for us > to test and more accurate for you to get the right patch to be tested. > Please check git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-x86-v4.

Re: [PATCH v2 1/3] dmaengine: hsu: Export hsu_dma_get_status()

2016-06-29 Thread Vinod Koul
On Wed, Jun 15, 2016 at 01:44:11PM +0800, Chuah Kim Tatt wrote: > From: "Chuah, Kim Tatt" > > To allow other code to safely read DMA Channel Status Register (where > the register attribute for Channel Error, Descriptor Time Out & > Descriptor Done fields are read-clear), export hsu_dma_get_status

Re: [PATCH v4] dmaengine: qcom-bam-dma: Add pm_runtime support

2016-06-29 Thread Vinod Koul
On Fri, Jun 17, 2016 at 03:56:03PM +0530, Pramod Gurav wrote: > Adds pm_runtime support for BAM DMA so that clock is enabled only > when there is a transaction going on to help save power. Applied, thanks -- ~Vinod

Re: [PATCH v2] dmaengine: dmatest: Add support for scatter-gather DMA mode

2016-06-29 Thread Vinod Koul
On Thu, Jun 09, 2016 at 09:10:14PM +0530, Kedareswara rao Appana wrote: > This patch updates the dmatest client to > Support scatter-gather dma mode. Applied, thanks -- ~Vinod

Re: [PATCH v11 2/2] dmaengine: Add Xilinx zynqmp dma engine driver support

2016-06-29 Thread Vinod Koul
On Thu, Jun 09, 2016 at 09:07:47PM +0530, Kedareswara rao Appana wrote: > + dma_set_mask(&pdev->dev, DMA_BIT_MASK(44)); > + dma_cap_set(DMA_SG, zdev->common.cap_mask); > + dma_cap_set(DMA_MEMCPY, zdev->common.cap_mask); > /** > + * struct zynqmp_dma_config - ZYNQMP DMA Configuration

Re: [PATCH v6 04/10] acpi: Add some basic struct and functions in GTDT driver

2016-06-29 Thread Timur Tabi
Rafael J. Wysocki wrote: That's not enough. The [0/10] will not go into the git log, mind you. The changelog is placed under the "---", so it wouldn't go into the git log anyway. -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member

[PATCH net-next V3 3/6] ptr_ring: support resizing multiple queues

2016-06-29 Thread Jason Wang
From: "Michael S. Tsirkin" Sometimes, we need support resizing multiple queues at once. This is because it was not easy to recover to recover from a partial failure of multiple queues resizing. Signed-off-by: Michael S. Tsirkin Signed-off-by: Jason Wang --- include/linux/ptr_ring.h |

[PATCH net-next V3 1/6] ptr_ring: support zero length ring

2016-06-29 Thread Jason Wang
Sometimes, we need zero length ring. But current code will crash since we don't do any check before accessing the ring. This patch fixes this. Signed-off-by: Jason Wang --- include/linux/ptr_ring.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/ptr_ring.h

[PATCH net-next V3 2/6] skb_array: minor tweak

2016-06-29 Thread Jason Wang
Signed-off-by: Michael S. Tsirkin Signed-off-by: Jason Wang --- include/linux/skb_array.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index 678bfbf..2dd0d1e 100644 --- a/include/linux/skb_array.h +++ b/include/linu

[PATCH net-next V3 4/6] skb_array: add wrappers for resizing

2016-06-29 Thread Jason Wang
Signed-off-by: Michael S. Tsirkin Signed-off-by: Jason Wang --- include/linux/skb_array.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index 2dd0d1e..f4dfade 100644 --- a/include/linux/skb_array.h +++ b/include/linux/skb_array

[PATCH net-next V3 5/6] net: introduce NETDEV_CHANGE_TX_QUEUE_LEN

2016-06-29 Thread Jason Wang
This patch introduces a new event - NETDEV_CHANGE_TX_QUEUE_LEN, this will be triggered when tx_queue_len. It could be used by net device who want to do some processing at that time. An example is tun who may want to resize tx array when tx_queue_len is changed. Signed-off-by: Jason Wang --- incl

[PATCH net-next V3 0/6] switch to use tx skb array in tun

2016-06-29 Thread Jason Wang
Hi all: This series tries to switch to use skb array in tun. This is used to eliminate the spinlock contention between producer and consumer. The conversion was straightforward: just introdce a tx skb array and use it instead of sk_receive_queue. A minor issue is to keep the tx_queue_len behaviou

[PATCH 4/4] spi: Document option to insert delay between transactions

2016-06-29 Thread apronin
From: Andrey Pronin Some devices may need CS to be deasserted for some time between transactions. Added a new capability to guarantee a delay between SPI transactions for the device. Signed-off-by: Andrey Pronin --- Documentation/devicetree/bindings/spi/spi-bus.txt | 2 ++ 1 file changed, 2 in

[PATCH 3/4] spi: Add option to insert delay between transactions

2016-06-29 Thread apronin
From: Andrey Pronin Some devices may need CS to be deasserted for some time between transactions. Added a new capability to guarantee a delay between SPI transactions for the device. Signed-off-by: Andrey Pronin --- drivers/spi/spi.c | 3 +++ include/linux/spi/spi.h | 4 2 files cha

[PATCH 1/4] spi: Add option to wake a device by toggling CS

2016-06-29 Thread apronin
From: Andrey Pronin Some SPI devices may go to sleep after a period of inactivity on SPI. For such devices, if enough time has passed since the last SPI transaction, toggle CS and wait for the device to start before communicating with it. Signed-off-by: Andrey Pronin --- drivers/spi/spi.c

Re: [PATCH v3] x86/power/64: Fix kernel text mapping corruption during image restoration

2016-06-29 Thread Logan Gunthorpe
On 29/06/16 08:55 PM, Rafael J. Wysocki wrote: The only thing that comes to mind at this point is that TLBs should be flushed after page tables changes, so please apply the appended and let me know if you see this panic any more with it. Ok, I'll build a new kernel tomorrow. But keep in min

[PATCH 2/4] spi: Document option to wake a device by toggling CS

2016-06-29 Thread apronin
From: Andrey Pronin Some SPI devices may go to sleep after a period of inactivity on SPI. For such devices, if enough time has passed since the last SPI transaction, toggle CS and wait for the device to start before communicating with it. Signed-off-by: Andrey Pronin --- Documentation/devicetr

[PATCH net-next V3 6/6] tun: switch to use skb array for tx

2016-06-29 Thread Jason Wang
We used to queue tx packets in sk_receive_queue, this is less efficient since it requires spinlocks to synchronize between producer and consumer. This patch tries to address this by: - switch from sk_receive_queue to a skb_array, and resize it when tx_queue_len was changed. - introduce a new pr

[PATCH] tpm: read burstcount from TPM_STS in one 32-bit transaction

2016-06-29 Thread apronin
From: Andrey Pronin Some chips incorrectly support partial reads from TPM_STS register at non-zero offsets. Read the entire 32-bits register instead of making two 8-bit reads to support such devices and reduce the number of bus transactions when obtaining the burstcount from TPM_STS. Signed-off-

Re: [3/3] hwmon: iio_hwmon: defer probe when no channel is found

2016-06-29 Thread Guenter Roeck
On Tue, Jun 28, 2016 at 10:18:17AM +0200, Quentin Schulz wrote: > iio_channel_get_all returns -ENODEV when it cannot find either phandles and > properties in the Device Tree or channels whose consumer_dev_name matches > iio_hwmon in iio_map_list. The iio_map_list is filled in by iio drivers > which

[PATCH v2 4/4] hwmon: (lm75) Convert to use regmap

2016-06-29 Thread Guenter Roeck
Convert to use regmap. Leave caching to regmap and drop the register update function. While this can result in additional read operations if the temperature register is read continuously, it avoids re-reading the limit registers and thus overall reduces complexity. Signed-off-by: Guenter Roeck --

[PATCH v2 1/4] hwmon: (lm75) Handle cleanup with devm_add_action

2016-06-29 Thread Guenter Roeck
Use devm_add_action() to register the function to restore the original chip configuration. Use devm_hwmon_device_register_with_groups() to register the hwmon device, and drop the remove function as no longer needed. Signed-off-by: Guenter Roeck --- v2: No change drivers/hwmon/lm75.c | 38 ++

[PATCH v2 3/4] hwmon: (lm75) Add update_interval attribute

2016-06-29 Thread Guenter Roeck
Since we know the chip's update interval, let's make it available to the user. Signed-off-by: Guenter Roeck --- v2: No change drivers/hwmon/lm75.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index 7b18cbd4a5ec..fe83f70ba62a 1006

[PATCH v2 2/4] hwmon: (lm75) Drop lm75_read_value and lm75_write_value

2016-06-29 Thread Guenter Roeck
lm75_read_value and lm75_write_value don't really add any value. Replace with direct smbus access functions. Signed-off-by: Guenter Roeck --- v2: No change drivers/hwmon/lm75.c | 42 +- 1 file changed, 9 insertions(+), 33 deletions(-) diff --git a/driver

[PATCH v3 1/3] hwmon: (tmp102) Improve handling of initial read delay

2016-06-29 Thread Guenter Roeck
If the chip was in shutdown mode when the driver was loaded, the first conversion is ready no more than 35 milli-seconds after the chip was taken out of shutdown. The driver delay was so far set to 333 ms (HZ / 3), which is much higher than the maximum time needed by the chip. Reduce the time to 35

[PATCH v3 3/3] hwmon: (tmp102) Convert to use regmap, and drop local cache

2016-06-29 Thread Guenter Roeck
By converting the driver to regmap, we can use regmap to cache non-volatile registers. Stop caching the temperature register; while potentially reading it more often can result in reading it more often than necessary, this is offset by the gain due to not re-reading the limit registers. A positive

[PATCH v3 2/3] hwmon: (tmp102) Rework chip configuration

2016-06-29 Thread Guenter Roeck
So far the chip was forced into polarity 0, even if it was preconfigured differently. Do not touch the polarity when configuring the chip. Also, the configuration register was read beack to check if the configuration 'sticks'. Ultimately, that is similar to checking if the chip is a tmp102 in the

Re: [PATCH v4] vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive

2016-06-29 Thread Yongji Xie
On 2016/6/30 10:53, Alex Williamson wrote: On Thu, 30 Jun 2016 10:40:23 +0800 Yongji Xie wrote: Hi Alex, On 2016/6/30 4:03, Alex Williamson wrote: On Tue, 28 Jun 2016 13:47:23 -0600 Alex Williamson wrote: On Tue, 28 Jun 2016 18:09:46 +0800 Yongji Xie wrote: Hi, Alex On 2016/6/25

RE: [PATCH v2 1/9] mtd:fsl-quadspi:use the property fields of SPI-NOR

2016-06-29 Thread Yunhui Cui
Hi Brian and Han, Could you please give me some comments about this patch set v2 ? Thanks > -Original Message- > From: Yunhui Cui [mailto:b56...@freescale.com] > Sent: Friday, April 22, 2016 2:40 PM > To: dw...@infradead.org; computersforpe...@gmail.com; > han...@freescale.com > Cc: linux

Re: [PATCH v2 02/12] genhd: Honor gen_uevent and add disk_gen_uevents

2016-06-29 Thread kbuild test robot
Hi, [auto build test WARNING on block/for-next] [also build test WARNING on v4.7-rc5] [cannot apply to next-20160629] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Fam-Zheng/gendisk-Generate

[PATCH V2 7/7] thermal: qoriq: Add thermal management support

2016-06-29 Thread Jia Hongtao
This driver add thermal management support by enabling TMU (Thermal Monitoring Unit) on QorIQ platform. It's based on thermal of framework: - Trip points defined in device tree. - Cpufreq as cooling device registered in qoriq cpufreq driver. Signed-off-by: Jia Hongtao --- Changes of V2: * Add HA

[PATCH] PM / suspend: show workqueue state in suspend flow

2016-06-29 Thread Roger Lu
If freezable workqueue aborts suspend flow, show workqueue state for debug purpose. Signed-off-by: Roger Lu --- kernel/power/process.c | 3 +++ kernel/workqueue.c | 7 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/kernel/power/process.c b/kernel/power/process.c index

Re: [PATCH] dmaengine: at_xdmac: fix debug string

2016-06-29 Thread Vinod Koul
On Wed, Jun 29, 2016 at 07:44:51PM +0200, Alexandre Belloni wrote: > mbr_ds is an integer, don't use %pad to print it. Applied, thanks -- ~Vinod

crypto: tcrypt - Do not bail on EINPROGRESS in multibuffer hash test

2016-06-29 Thread Herbert Xu
On Wed, Jun 29, 2016 at 10:45:56AM -0700, Megha Dey wrote: > I tested the latest cryptodev tree on my haswell machine and this is > what I see: > [ 40.402834] modprobe tcrypt mode=422 > [ 40.403105] testing speed of multibuffer sha1 (sha1_mb) > [ 40.403108] test 0 ( 16 byte blocks, 16 by

linux-next: build failure after merge of the lightnvm tree

2016-06-29 Thread Stephen Rothwell
8 ("lightnvm: let drivers control the lifetime of nvm_dev") I have used the lightnvm tree from next-20160629 for today. -- Cheers, Stephen Rothwell

Re: [PATCH v6 03/10] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-06-29 Thread Hanjun Guo
On 2016/6/30 2:15, fu@linaro.org wrote: From: Fu Wei This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* don't need to add "arch_timer:" everytime. Also delete some Blank Spaces in arch_timer_banner, according to the suggestion from checkpatch.pl. No functional change. S

Re: [PATCH v4] vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive

2016-06-29 Thread Alex Williamson
On Thu, 30 Jun 2016 10:40:23 +0800 Yongji Xie wrote: > Hi Alex, > > On 2016/6/30 4:03, Alex Williamson wrote: > > > On Tue, 28 Jun 2016 13:47:23 -0600 > > Alex Williamson wrote: > > > >> On Tue, 28 Jun 2016 18:09:46 +0800 > >> Yongji Xie wrote: > >> > >>> Hi, Alex > >>> > >>> On 2016/6/25

Re: [PATCH v3] x86/power/64: Fix kernel text mapping corruption during image restoration

2016-06-29 Thread Rafael J. Wysocki
On Thursday, June 30, 2016 04:20:43 AM Rafael J. Wysocki wrote: > On Wednesday, June 29, 2016 07:52:18 PM Logan Gunthorpe wrote: > > Hey Raf, > > > > Sorry to report that although the patch works the majority of the time, > > I just got a suspicious kernel panic during resume. > > > > It said: >

Re: [Cocci] [PATCH] Coccinelle: Script to replace NULL test with IS_ERR test for devm_ioremap_resource

2016-06-29 Thread Amitoj Kaur Chawla
On Thu, Jun 30, 2016 at 12:53 AM, Wolfram Sang wrote: > On Thu, Jun 30, 2016 at 12:03:47AM +0530, Amitoj Kaur Chawla wrote: >> This script detects cases which have incorrect error handling for >> devm_ioremap_resource function, employing a NULL test instead of an >> IS_ERR() test. >> >> Signed-off

Re: [PATCH v4] vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive

2016-06-29 Thread Yongji Xie
Hi Alex, On 2016/6/30 4:03, Alex Williamson wrote: On Tue, 28 Jun 2016 13:47:23 -0600 Alex Williamson wrote: On Tue, 28 Jun 2016 18:09:46 +0800 Yongji Xie wrote: Hi, Alex On 2016/6/25 0:43, Alex Williamson wrote: On Fri, 24 Jun 2016 23:37:02 +0800 Yongji Xie wrote: Hi, Alex

Re: kernel-4.7 bug in Intel sound and/or ACPI

2016-06-29 Thread Wim Osterholt
On Wed, Jun 29, 2016 at 04:34:14AM -0400, Sinan Kaya wrote: > > > > I posted this [PATCH V2 0/4] ACPI,PCI,IRQ: correct ISA penalty calculation > > Can you test this and give me a tested-by? Kernel-4.7-rc5 plus this patch works like a charm on my Inspiron 4100. Dmesg output is quite similar to

[PATCH] clk: rockchip: fix the rk3399 spdif incorrect bit for DPTX

2016-06-29 Thread Xing Zheng
The CLKSEL_CON32 bit_0 is controlled for spdif_8ch, not spdif_rec_dptx, it should be bit_8, let's fix it. Reported-by: Chris Zhong Tested-by: Chris Zhong Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3399.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

Re: [PATCH v3] x86/power/64: Fix kernel text mapping corruption during image restoration

2016-06-29 Thread Rafael J. Wysocki
On Wednesday, June 29, 2016 07:52:18 PM Logan Gunthorpe wrote: > Hey Raf, > > Sorry to report that although the patch works the majority of the time, > I just got a suspicious kernel panic during resume. > > It said: > > "kernel tried to execute NX protected page - exploit attempt? (uid: 0)" >

Re: [PATCH] ALSA: riptide: Use DIV_ROUND_UP

2016-06-29 Thread Takashi Sakamoto
On Jun 29 2016 23:56, Amitoj Kaur Chawla wrote: The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)) but is perhaps more readable. The Coccinelle script used to make this change is as follows: @haskernel@ @@ #include @depends on haskernel@ expression n,d; @@ ( - (n

Re: [PATCH v6 00/10] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-06-29 Thread Hanjun Guo
Hi Rafael, On 2016/6/30 9:37, Rafael J. Wysocki wrote: On Thursday, June 30, 2016 09:29:59 AM Fu Wei wrote: Hi Rafael, On 30 June 2016 at 05:32, Rafael J. Wysocki wrote: On Wed, Jun 29, 2016 at 8:15 PM, wrote: From: Fu Wei This patchset: (1)Preparation for adding GTDT support in arm

RE: [PATCH 08/21] usb: chipidea: Kick OTG state machine for AVVIS with vbus extcon

2016-06-29 Thread Jun Li
Hi Stephen, > -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of Peter Chen > Sent: Thursday, June 30, 2016 9:27 AM > To: Stephen Boyd > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vge

[PATCH v2 02/12] genhd: Honor gen_uevent and add disk_gen_uevents

2016-06-29 Thread Fam Zheng
In add_disk(), don't send uevent to userspace when gen_uevent is true; also export the refactored function disk_gen_uevents for later use. Signed-off-by: Fam Zheng --- block/genhd.c | 23 +++ include/linux/genhd.h | 1 + 2 files changed, 20 insertions(+), 4 deletions

fix some host driver defect

2016-06-29 Thread Chaotian Jing
Chaotian Jing (4): mmc: mediatek: do not tune data for HS400 mode mmc: mediatek: fix CRC error when calling mmc_select_hs400() mmc: mediatek: fix CMD21/CMD19 timeout issue mmc: mediatek: perfer to use rise edge latching drivers/mmc/host/mtk-sd.c | 70 +

[PATCH v2 08/12] zram: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- drivers/block/zram/zram_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/

RE: [PATCH] phy: rcar-gen3-usb2: fix mutex_lock calling in interrupt

2016-06-29 Thread Yoshihiro Shimoda
Hi, > From: Kishon Vijay Abraham I > Sent: Wednesday, June 29, 2016 11:04 PM > > +Chanwoo > > Hi, > > On Monday 27 June 2016 12:06 PM, Yoshihiro Shimoda wrote: > > This patch fixes an issue that the extcon_set_cable_state_() is possible > > to cause "BUG: scheduling while atomic" because this d

[PATCH v2 07/12] pktcdvd: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- drivers/block/pktcdvd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH 4/4] mmc: mediatek: perfer to use rise edge latching

2016-06-29 Thread Chaotian Jing
in our host design, rise edge latching is more stable than fall edge latching. so that if rise edge has enough margin, no need scan fall edge. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/d

[PATCH 3/4] mmc: mediatek: fix CMD21/CMD19 timeout issue

2016-06-29 Thread Chaotian Jing
we did not deal with the read data of CMD21/CMD19 if there is response CRC error of CMD21/CMD19, in this case, eMMC/SD may still in send-data state. therefore, all of next commands cannot get response as device is not in transfer state. for resolving this issue, still need deal with the data recei

[PATCH v2 04/12] axonrom: Generate uevent after attribute available

2016-06-29 Thread Fam Zheng
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng --- arch/powerpc/sysdev/axonram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/

  1   2   3   4   5   6   7   8   9   >