[PATCH V2 3/4] PCI: exynos: Use the bitops API to operate the bit shifting

2017-01-11 Thread Jaehoon Chung
Just use the bitops api to operate the bit. Signed-off-by: Jaehoon Chung Reviewed-by: Pankaj Dubey Acked-by: Krzysztof Kozlowski --- Changelog on V2: - None drivers/pci/host/pci-exynos.c | 24 1 file

[PATCH V2 1/4] PCI: exynos: replace to one register accessor from each accessors

2017-01-11 Thread Jaehoon Chung
There is no reason to maintain *_blk/phy/elbi_* as register accessors. It can be replaced to one register accessor. Signed-off-by: Jaehoon Chung Reviewed-by: Pankaj Dubey Acked-by: Krzysztof Kozlowski --- Changelog on V2; -

[PATCH] drivers: power: supply: Compress return logic into one line.

2017-01-11 Thread Gustavo A. R. Silva
Simplify return logic to avoid unnecessary variable assignments. These issues were detected using Coccinelle and the following semantic patch: @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Gustavo A. R. Silva ---

RE: [PATCH 01/18] Drivers: hv: vmbus: Move the definition of hv_x64_msr_hypercall_contents

2017-01-11 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, January 10, 2017 9:27 AM > To: KY Srinivasan > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com; >

[GIT PULL] xfs: updates for 4.10-rc4

2017-01-11 Thread Darrick J. Wong
[Resend from the correct email account... sorry for the noise] Hi Linus, As promised last week, here's some stability fixes from Christoph and Jan Kara. I think they fall within the guidelines for non-merge window patches. Could you please pull the changes? --Darrick The following changes

[PATCH] can: Fix kernel panic at security_sock_rcv_skb

2017-01-11 Thread Liu ShuoX
From: Zhang Yanmin The patch is for fix the below kernel panic: BUG: unable to handle kernel NULL pointer dereference at (null) IP: [] selinux_socket_sock_rcv_skb+0x65/0x2a0 Call Trace: [] security_sock_rcv_skb+0x4c/0x60 [] sk_filter+0x41/0x210 []

Re: [PATCH] usb: dwc3: core: Disable USB2.0 phy suspend when dwc3 acts as host role

2017-01-11 Thread Felipe Balbi
Hi, Baolin Wang writes: >> Baolin Wang writes: >>> When dwc3 controller acts as host role with attaching slow speed device >>> (like mouse or keypad). Then if we plugged out the slow speed device, >>> it will timeout to run the deconfiguration

Re: x86-64: Maintain 16-byte stack alignment

2017-01-11 Thread Andy Lutomirski
On Wed, Jan 11, 2017 at 11:05 PM, Herbert Xu wrote: > On Tue, Jan 10, 2017 at 09:05:28AM -0800, Linus Torvalds wrote: >> >> I'm pretty sure we have random asm code that may not maintain a >> 16-byte stack alignment when it calls other code (including, in some >>

Re: [PATCH v2 8/8] crypto/testmgr: Allocate only the required output size for hash tests

2017-01-11 Thread Andy Lutomirski
On Wed, Jan 11, 2017 at 11:47 PM, Herbert Xu wrote: > Andy Lutomirski wrote: >> There are some hashes (e.g. sha224) that have some internal trickery >> to make sure that only the correct number of output bytes are >> generated. If something goes

[PATCH] drivers: power: supply: Compress return logic into one line.

2017-01-11 Thread Gustavo A. R. Silva
Simplify return logic to avoid unnecessary variable assignments. These issues were detected using Coccinelle and the following semantic patch: @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Gustavo A. R. Silva ---

Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

2017-01-11 Thread Sebastian Reichel
Hi Arnd, On Wed, Jan 11, 2017 at 03:51:55PM +0100, Arnd Bergmann wrote: > Casting a pointer to 'int' is not always valid: > > drivers/power/supply/axp20x_usb_power.c: In function 'axp20x_usb_power_probe': > drivers/power/supply/axp20x_usb_power.c:297:21: error: cast from pointer to > integer of

Re: [PATCH 2/4] mm, page_alloc: Split alloc_pages_nodemask

2017-01-11 Thread Hillf Danton
On Tuesday, January 10, 2017 12:35 AM Mel Gorman wrote: > > alloc_pages_nodemask does a number of preperation steps that determine > what zones can be used for the allocation depending on a variety of > factors. This is fine but a hypothetical caller that wanted multiple > order-0 pages has to

[PATCH net-next v2 09/10] net: phy: Allow pre-declaration of MDIO devices

2017-01-11 Thread Florian Fainelli
Allow board support code to collect pre-declarations for MDIO devices by registering them with mdiobus_register_board_info(). SPI and I2C buses have a similar feature, we were missing this for MDIO devices, but this is particularly useful for e.g: MDIO-connected switches which need to provide

[PATCH net-next v2 10/10] ARM: orion: Register DSA switch as a MDIO device

2017-01-11 Thread Florian Fainelli
Utilize the ability to pass board specific MDIO bus information towards a particular MDIO device thus allowing us to provide the per-port switch layout to the Marvell 88E6XXX switch driver. Since we would end-up with conflicting registration paths, do not register the "dsa" platform device

[PATCH net-next v2 07/10] net: Relocate dev_to_net_device() into core

2017-01-11 Thread Florian Fainelli
dev_to_net_device() is moved from net/dsa/dsa.c to net/core/dev.c since it going to be used by net/dsa/dsa2.c and the namespace of the function justifies making it available to other users potentially. Signed-off-by: Florian Fainelli --- include/linux/netdevice.h | 2 ++

[PATCH net-next v2 02/10] net: dsa: Make most functions take a dsa_port argument

2017-01-11 Thread Florian Fainelli
In preparation for allowing platform data, and therefore no valid device_node pointer, make most DSA functions takes a pointer to a dsa_port structure whenever possible. While at it, introduce a dsa_port_is_valid() helper function which checks whether port->dn is NULL or not at the moment.

[PATCH net-next v2 06/10] net: dsa: Migrate to device_find_class()

2017-01-11 Thread Florian Fainelli
Now that the base device driver code provides an identical implementation of dev_find_class() utilize device_find_class() instead of our own version of it. Signed-off-by: Florian Fainelli --- net/dsa/dsa.c | 22 ++ 1 file changed, 2 insertions(+), 20

Re: [greybus-dev] [PATCH v3] staging: greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-11 Thread Viresh Kumar
On 11-01-17, 16:00, Roman Sommer wrote: > Note that this patch does not fix all checkpatch warnings for the > affected files. > > Signed-off-by: Christian Bewermeyer > Signed-off-by: Roman Sommer > > --- > drivers/staging/greybus/gpio.c |

Re: [PATCH v5] arm64: dts: mt8173: add mmsel clocks for 4K support

2017-01-11 Thread Daniel Kurtz
Hi Matthias, (Trying again to send plain text email)... On Thu, Aug 4, 2016 at 10:57 AM, Bibby Hsieh wrote: > To support HDMI 4K resolution, mmsys need clcok > mm_sel to be 400MHz. > > The board .dts file should override the clock rate > property with the higher

Re: [PATCH 2/2] arm64: avoid increasing DMA masks above what hardware supports

2017-01-11 Thread Nikita Yushchenko
>> @@ -959,6 +990,15 @@ void arch_setup_dma_ops(struct device *dev, u64 >> dma_base, u64 size, >> if (!dev->archdata.dma_ops) >> dev->archdata.dma_ops = _dma_ops; >> >> + /* >> +* Whatever the parent bus can set. A device must not set >> +* a DMA

Re: [PATCH] pinctrl: amd: avoid maybe-uninitalized warning

2017-01-11 Thread Linus Walleij
On Wed, Jan 11, 2017 at 3:36 PM, Arnd Bergmann wrote: > Since gpio_dev->hwbank_num is now a variable, the compiler cannot > figure out if pin_num is initialized at all: > > drivers/pinctrl/pinctrl-amd.c: In function 'amd_gpio_dbg_show': > drivers/pinctrl/pinctrl-amd.c:210:3:

Re: [PATCH] tty_port: checkpatch: Refactored file to linux style guides

2017-01-11 Thread Greg Kroah-Hartman
On Wed, Jan 11, 2017 at 10:39:22PM +0100, Fabian Arnold wrote: > The tty_port.c file is now accordingly to the linux style guidelines. That's the vaguest changelog text ever :( Please describe what you did here, and why you did it. And if you fixed more than one "type" of style issue, you need

Re: [PATCH v2 0/5] Reset Controller Nodes for TI Keystone platforms

2017-01-11 Thread santosh.shilim...@oracle.com
On 1/11/17 5:48 PM, Suman Anna wrote: Hi Santosh, This is a slightly updated patch series for the reset controller nodes for TI Keystone2 SoCs. The only change is to rename the reset controller nodes from "psc-reset-controller" to just "reset-controller" following Rob Herring's comment on the

[PATCH net-next v2 05/10] drivers: base: Add device_find_class()

2017-01-11 Thread Florian Fainelli
Add a helper function to lookup a device reference given a class name. This is a preliminary patch to remove adhoc code from net/dsa/dsa.c and make it more generic. Signed-off-by: Florian Fainelli --- drivers/base/core.c| 19 +++ include/linux/device.h

[PATCH net-next v2 04/10] net: dsa: Move ports assignment closer to error checking

2017-01-11 Thread Florian Fainelli
Move the assignment of ports in _dsa_register_switch() closer to where it is checked, no functional change. Re-order declarations to be preserve the inverted christmas tree style. Signed-off-by: Florian Fainelli --- net/dsa/dsa2.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH net-next v2 03/10] net: dsa: Suffix function manipulating device_node with _dn

2017-01-11 Thread Florian Fainelli
Make it clear that these functions take a device_node structure pointer Signed-off-by: Florian Fainelli --- net/dsa/dsa2.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 6e3675220fef..04ab62251fe3

Re: + mm-vmscan-add-mm_vmscan_inactive_list_is_low-tracepoint.patch added to -mm tree

2017-01-11 Thread Minchan Kim
Hello, On Wed, Jan 11, 2017 at 04:52:39PM +0100, Michal Hocko wrote: > On Wed 11-01-17 08:52:50, Minchan Kim wrote: > [...] > > > @@ -2055,8 +2055,8 @@ static bool inactive_list_is_low(struct > > > if (!file && !total_swap_pages) > > > return false; > > > > > > - inactive =

[GIT PULL] xfs: updates for 4.10-rc4

2017-01-11 Thread Darrick J. Wong
Hi Linus, As promised last week, here's some stability fixes from Christoph and Jan Kara. I think they fall within the guidelines for non-merge window patches. Could you please pull the changes? --Darrick The following changes since commit a121103c922847ba5010819a3f250f1f7fc84ab8: Linux

Re: [PATCH v3 04/10] Documentation: perf: hisi: Documentation for HiP05/06/07 PMU event counting.

2017-01-11 Thread Anurup M
On Tuesday 10 January 2017 11:25 PM, Mark Rutland wrote: On Mon, Jan 02, 2017 at 01:49:37AM -0500, Anurup M wrote: +The Hisilicon SoC HiP05/06/07 chips consist of various independent system +device PMU's such as L3 cache(L3C) and Miscellaneous Nodes(MN). +These PMU devices are independent and

Re: x86-64: Maintain 16-byte stack alignment

2017-01-11 Thread Andy Lutomirski
On Tue, Jan 10, 2017 at 10:01 PM, Andy Lutomirski wrote: > On Tue, Jan 10, 2017 at 8:35 PM, Herbert Xu > wrote: >> On Tue, Jan 10, 2017 at 08:17:17PM -0800, Linus Torvalds wrote: >>> >>> That said, I do think that the "don't assume stack

Re: [PATCH 1/1] iommu/arm-smmu: Fix for ThunderX erratum #27704

2017-01-11 Thread Tomasz Nowicki
On 11.01.2017 13:19, Robin Murphy wrote: On 11/01/17 11:51, Tomasz Nowicki wrote: The goal of erratum #27704 workaround was to make sure that ASIDs and VMIDs are unique across all SMMU instances on affected Cavium systems. Currently, the workaround code partitions ASIDs and VMIDs by increasing

Re: [PATCH] staging: android/ion: Fix coding style issues

2017-01-11 Thread Greg KH
On Wed, Jan 11, 2017 at 11:20:39PM +0200, Bogdan Purcareata wrote: > Fix following checkpatch warnings: > - Lines over 80 characters > - void function with return statement > - Unaligned comment mark > - Header function prototypes missing variable names That's a lot of different things to be

[PATCH 4/4] staging: android/ion: Use variable names in header

2017-01-11 Thread Bogdan Purcareata
Populate header function signatures with variable names as well, not just variable types. Signed-off-by: Bogdan Purcareata --- drivers/staging/android/ion/ion_priv.h | 38 +- 1 file changed, 19 insertions(+), 19 deletions(-) diff

[PATCH 1/4] staging: android/ion: Fix line over 80 characters

2017-01-11 Thread Bogdan Purcareata
Signed-off-by: Bogdan Purcareata --- drivers/staging/android/ion/ion-ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion-ioctl.c b/drivers/staging/android/ion/ion-ioctl.c index 7e7431d..e28fffb 100644 ---

[PATCH 2/4] staging: android/ion: Don't use return in void function

2017-01-11 Thread Bogdan Purcareata
Signed-off-by: Bogdan Purcareata --- drivers/staging/android/ion/ion_of.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_of.c b/drivers/staging/android/ion/ion_of.c index 46b2bb9..7791c70 100644 ---

[PATCH v2] Documentation: dt: reset: Revise typos in TI syscon reset example

2017-01-11 Thread Suman Anna
Fix couple of typos in the example given in the TI syscon reset binding. The ti,reset-bits used for DSP0 are corrected to match the values that will be used in the actual DT node. Signed-off-by: Suman Anna --- v2: Address Rob Herring's comment to change the reset node name

Re: [PATCH v1] scsi: ufs: fix arguments order some trace calls

2017-01-11 Thread Martin K. Petersen
> "Subhash" == Subhash Jadavani writes: Subhash> Colin Ian King reported that with Subhash> commit 7ff5ab473633 ("scsi: ufs: add tracing support") static Subhash> analysis is reporting that we may have swapped arguments on Subhash> calls

Re: [lkp-developer] [ACPICA] 174cc7187e: kmsg.ACPI_Error:Mutex[ACPI_MTX_Tables]already_acquired_by_this_thread[#](#/utmutex-#)

2017-01-11 Thread Ye Xiaolong
Hi, Lv On 01/12, Zheng, Lv wrote: >Hi, Xiaolong > >I noticed the tested version in your the test dmesg: Linux version 4.9.0-rc5 >While the commit bisected should be in v4.10-rc1. >Does that mean your test tree doesn't contain some basic lock fixes? The reported kernel version is Linux version

Re: [PATCH] arm64: dts: exynos: Replace small letter of base address/offset on Exynos5433

2017-01-11 Thread Krzysztof Kozlowski
On Wed, Jan 11, 2017 at 11:22 PM, Chanwoo Choi wrote: > 2017-01-12 1:26 GMT+09:00 Krzysztof Kozlowski : >> On Wed, Jan 11, 2017 at 09:55:48AM +0900, Chanwoo Choi wrote: >>> This patch replaces the small letter of base address, offset and hex value >>> with the

Re: [PATCH 1/2] dma-mapping: let arch know origin of dma range passed to arch_setup_dma_ops()

2017-01-11 Thread Nikita Yushchenko
12.01.2017 08:52, Nikita Yushchenko wrote: >>> diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c >>> b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c >>> index 5ac373c..480b644 100644 >>> --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c >>> +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c >>> @@ -540,7

Re: [PATCH v2 1/1] platform/x86: Remove PMIC GPIO block support

2017-01-11 Thread Ingo Molnar
* Andy Shevchenko wrote: > On Wed, 2017-01-11 at 19:24 +0200, Andy Shevchenko wrote: > > The Moorestown support was removed by commit 1a8359e411eb ("x86/mid: > > Remove > > Intel Moorestown"). > > > > Remove this leftover. > > > > +Cc: Ingo > > Ingo, this

Re: [PATCH v2 8/8] crypto/testmgr: Allocate only the required output size for hash tests

2017-01-11 Thread Herbert Xu
Andy Lutomirski wrote: > There are some hashes (e.g. sha224) that have some internal trickery > to make sure that only the correct number of output bytes are > generated. If something goes wrong, they could potentially overrun > the output buffer. > > Make the test more robust

[PATCH 2/2] drm/nouveau: Handle fbcon suspend/resume in seperate worker

2017-01-11 Thread Lyude
Resuming from RPM can happen while already holding dev->mode_config.mutex. This means we can't actually handle fbcon in any RPM resume workers, since restoring fbcon requires grabbing dev->mode_config.mutex again. So move the fbcon suspend/resume code into it's own worker, and rely on that instead

[PATCH v2 1/2] drm/nouveau: Don't enabling polling twice on runtime resume

2017-01-11 Thread Lyude
As it turns out, on cards that actually have CRTCs on them we're already calling drm_kms_helper_poll_enable(drm_dev) from nouveau_display_resume() before we call it in nouveau_pmops_runtime_resume(). This leads us to accidentally trying to enable polling twice, which results in a potential

RE: [PATCH] serial: fsl_lpuart: Remove the alias node dependence

2017-01-11 Thread Yao Yuan
On Wed, Jan 11, 2016 at 04:33:32PM +0800, Greg KH wrote: > On Wed, Dec 14, 2016 at 04:33:32PM +0800, Yuan Yao wrote: > > From: Yuan Yao > > > > Numbering the ttyLPn space should not depend on the generic name > > "serial". > > > > If don't add the alias node like:"serial0 = ",

Re: [PATCH v5 2/9] mm/swap: Add cluster lock

2017-01-11 Thread Huang, Ying
Andrew Morton writes: > On Thu, 12 Jan 2017 09:47:51 +0800 "Huang\, Ying" > wrote: > >> >> > 1MB swap space, so for 1TB swap space, the total size will be 80M >> >> > compared with 8M of current implementation. >> > >> > Where did this 80 bytes

RE: [PATCH] block: loose check on sg gap

2017-01-11 Thread Dexuan Cui
> From: Ming Lei [mailto:ming@canonical.com] > Sent: Thursday, January 12, 2017 10:54 > To: Dexuan Cui > Cc: Jens Axboe ; Linux Kernel Mailing List ker...@vger.kernel.org>; linux-block ; > Christoph Hellwig ;

Re: lkp: make.cross: old aarch64-gcc has been removed

2017-01-11 Thread Fengguang Wu
Hi Masami, On Wed, Jan 11, 2017 at 07:08:40PM +0900, Masami Hiramatsu wrote: Ping? Oops, sorry for overlooking your previous email! BTW, I found that the old toolchain is archived in release.linaro.org. So I made a patch for that. So there are gcc 4.9, 5, 6 versions available for aarch64.

linux-next: Tree for Jan 12

2017-01-11 Thread Stephen Rothwell
Hi all, Changes since 20170111: New tree: aspeed The akpm-current tree gained a build failure for which I applied a patch. Non-merge commits (relative to Linus' tree): 2953 3790 files changed, 114528 insertions(+), 64138 deletions

Re: [PATCH 0/5 v3] adv7511 EDID probing improvements

2017-01-11 Thread Archit Taneja
On 01/12/2017 05:36 AM, John Stultz wrote: On Wed, Jan 11, 2017 at 12:48 AM, Archit Taneja wrote: Hi, On 01/04/2017 01:11 AM, John Stultz wrote: Hope everyone had a good newyears! Wanted to re-send out v3 of this patch set improving the EDID probing on the adv7511

Re: Enabling peer to peer device transactions for PCIe devices

2017-01-11 Thread Stephen Bates
On Fri, January 6, 2017 4:10 pm, Logan Gunthorpe wrote: > > > On 06/01/17 11:26 AM, Jason Gunthorpe wrote: > > >> Make a generic API for all of this and you'd have my vote.. >> >> >> IMHO, you must support basic pinning semantics - that is necessary to >> support generic short lived DMA (eg

Re: x86-64: Maintain 16-byte stack alignment

2017-01-11 Thread Herbert Xu
On Tue, Jan 10, 2017 at 05:30:48PM +, Ard Biesheuvel wrote: > > Apologies for introducing this breakage. It seemed like an obvious and > simple cleanup, so I didn't even bother to mention it in the commit > log, but if the kernel does not guarantee 16 byte alignment, I guess > we should revert

Re: [PATCH v3 00/10] perf: arm64: Support for Hisilicon SoC Hardware event counters

2017-01-11 Thread Anurup M
On Tuesday 10 January 2017 11:13 PM, Mark Rutland wrote: Hi, On Mon, Jan 02, 2017 at 01:47:52AM -0500, Anurup M wrote: ToDo: 1) The counter overflow handling is currently unsupported in this patch series. From a quick scan of the patches, I see mention of an interrupt in a comment the

Re: [PATCH 1/2] capability: export has_capability

2017-01-11 Thread Serge E. Hallyn
On Wed, Jan 11, 2017 at 01:47:01PM -0500, Alex Williamson wrote: > On Thu, 22 Dec 2016 00:10:15 +0800 > Jike Song wrote: > > > has_capability() is sometimes needed by modules to test capability > > for specified task other than current, so export it. > > > > Cc: Alex

Re: [PATCH] usb: dwc3-exynos Fix dma_mask WARN_ON from xhci_plat_probe()

2017-01-11 Thread Felipe Balbi
Hi, Shuah Khan writes: > During dwc3_exynos_probe(), WARN_ON(!pdev->dev.dma_mask) is triggered from > xhci_plat_probe(). dwc3_host_init() doesn't configure DMA prior to adding > the platform device. > > dwc3_host_init() was changed to not configure DMA with the change

Re: [PATCH v2 5/5] ARM: dts: Add LEGO MINDSTORMS EV3 dts

2017-01-11 Thread Sekhar Nori
On Wednesday 11 January 2017 09:55 PM, David Lechner wrote: >>> + { >>> +status = "okay"; >>> +pinctrl-names = "default"; >>> +pinctrl-0 = <_pins>, <_cs0_pin>, <_cs3_pin>; >>> + >>> +flash@0 { >>> +compatible = "n25q128a13", "jedec,spi-nor"; >>> +reg = <0>; >>> +

Re: [PATCH v8 00/18] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2017-01-11 Thread Auger Eric
Hi Bharat, On 12/01/2017 04:59, Bharat Bhushan wrote: > > >> -Original Message- >> From: Eric Auger [mailto:eric.au...@redhat.com] >> Sent: Wednesday, January 11, 2017 3:12 PM >> To: eric.au...@redhat.com; eric.auger@gmail.com; >> christoffer.d...@linaro.org; marc.zyng...@arm.com; >>

Re: [PATCH linux v2 2/6] hwmon: occ: Add sysfs interface

2017-01-11 Thread kbuild test robot
Hi Edward, [auto build test WARNING on hwmon/hwmon-next] [also build test WARNING on v4.10-rc3 next-20170111] [cannot apply to linux/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

Re: x86-64: Maintain 16-byte stack alignment

2017-01-11 Thread Ingo Molnar
* Andy Lutomirski wrote: > I find it rather annoying that gcc before 4.8 malfunctions when it > sees __aligned__(16) on x86_64 kernels. Sigh. Ran into this when writing silly FPU in-kernel testcases a couple of months ago... Thanks, Ingo

[PATCH] hwmon: occ: fix err_cast.cocci warnings

2017-01-11 Thread kbuild test robot
drivers/hwmon/occ/occ_sysfs.c:265:9-16: WARNING: ERR_CAST can be used with hwmon -> dev Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)) Generated by: scripts/coccinelle/api/err_cast.cocci CC: Edward A. James Signed-off-by: Fengguang Wu

[PATCH 3/4] staging: android/ion: Align comment mark

2017-01-11 Thread Bogdan Purcareata
Signed-off-by: Bogdan Purcareata --- drivers/staging/android/ion/ion_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_priv.h b/drivers/staging/android/ion/ion_priv.h index 3c3b324..00d8b53 100644 ---

Re: [PATCH resend] swiotlb: ensure that page-sized mappings are page-aligned

2017-01-11 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

[PATCH net-next v2 08/10] net: dsa: Add support for platform data

2017-01-11 Thread Florian Fainelli
Allow drivers to use the new DSA API with platform data. Most of the code in net/dsa/dsa2.c does not rely so much on device_nodes and can get the same information from platform_data instead. We purposely do not support distributed configurations with platform data, so drivers should be providing

[PATCH net-next v2 00/10] net: dsa: Support for pdata in dsa2

2017-01-11 Thread Florian Fainelli
Hi all, This is not exactly new, and was sent before, although back then, I did not have an user of the pre-declared MDIO board information, but now we do. Note that I have additional changes queued up to have b53 register platform data for MIPS bcm47xx and bcm63xx. Yes I know that we should

[patch] mm, memcg: do not retry precharge charges

2017-01-11 Thread David Rientjes
When memory.move_charge_at_immigrate is enabled and precharges are depleted during move, mem_cgroup_move_charge_pte_range() will attempt to increase the size of the precharge. This livelocks if reclaim fails and if an oom killed process attached to the destination memcg is trying to exit, which

[PATCH RESEND] Staging: greybus: style fix, permissions as octal

2017-01-11 Thread Derek Robson
Changed permissions to be in octal style. Found by checkpatch. Signed-off-by: Derek Robson --- drivers/staging/greybus/camera.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c

Re: [PATCH 1/2] dma-mapping: let arch know origin of dma range passed to arch_setup_dma_ops()

2017-01-11 Thread Nikita Yushchenko
>> diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c >> b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c >> index 5ac373c..480b644 100644 >> --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c >> +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c >> @@ -540,7 +540,7 @@ int fsl_mc_device_add(struct dprc_obj_desc

Re: [PATCH v3] staging: greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-11 Thread Dan Carpenter
On Wed, Jan 11, 2017 at 04:00:35PM +0100, Roman Sommer wrote: > Note that this patch does not fix all checkpatch warnings for the > affected files. > A lot of ways that display git commits put the changelog and the summary far apart. The changelog is pretty useless by itself in this case.

Re: x86-64: Maintain 16-byte stack alignment

2017-01-11 Thread Herbert Xu
On Tue, Jan 10, 2017 at 09:05:28AM -0800, Linus Torvalds wrote: > > I'm pretty sure we have random asm code that may not maintain a > 16-byte stack alignment when it calls other code (including, in some > cases, calling C code). > > So I'm not at all convinced that this is a good idea. We

[PATCH 7/7] staging:wilc1000:wilc_sdio.c Deleted un-needed blank lines

2017-01-11 Thread Scott Matheina
Fixes checkpatch CHECK: Blank lines aren't necessary before a close brace '}' Please don't use multiple blank lines Signed-off-by: Scott Matheina --- drivers/staging/wilc1000/wilc_sdio.c | 3 --- 1 file changed, 3 deletions(-) diff --git

[PATCH 2/7] staging:wilc1000:host_interface.c Added braces {} on else statemement

2017-01-11 Thread Scott Matheina
Fixes checkpatch warning: braces {} should be used on all arms of this statement Signed-off-by: Scott Matheina --- drivers/staging/wilc1000/host_interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/host_interface.c

[PATCH] [PATCH]thermal/intel_powerclamp:fix sched_setscheduler fail

2017-01-11 Thread xinwu . liu
From: "Liu, Xinwu" The schedule policy of thread "kidle_inject" is SCHED_NORMAL: [ 772.796284] intel_powerclamp: Start idle injection to reduce power [ 772.825757] [ cut here ] [ 772.825877] WARNING: CPU: 0 PID: 2140 at

RE: [lkp-developer] [ACPICA] 174cc7187e: kmsg.ACPI_Error:Mutex[ACPI_MTX_Tables]already_acquired_by_this_thread[#](#/utmutex-#)

2017-01-11 Thread Zheng, Lv
Hi, Xiaolong I noticed the tested version in your the test dmesg: Linux version 4.9.0-rc5 While the commit bisected should be in v4.10-rc1. Does that mean your test tree doesn't contain some basic lock fixes? Thanks and best regards Lv > From: lkp-developer-requ...@eclists.intel.com >

Re: [PATCH v2 0/3] PCI: designware/dra7xx: misc fixes and cleanups

2017-01-11 Thread Kishon Vijay Abraham I
Hi Bjorn, On Thursday 12 January 2017 02:51 AM, Bjorn Helgaas wrote: > On Fri, Dec 30, 2016 at 03:26:11PM +0530, Kishon Vijay Abraham I wrote: >> This series contains >> *) a patch to cleanup dra7xx probe >> *) a patch to force DRA7xx controller to work in GEN1 mode >> *)

Re: [PATCH v2 3/3] phy: rockchip-inno-usb2: Set EXTCON_USB when EXTCON_CHG_USB_SDP was set

2017-01-11 Thread Baolin Wang
On 3 January 2017 at 13:54, Baolin Wang wrote: > Hi Kison and Heiko, > > On 21 December 2016 at 16:12, Baolin Wang wrote: >> According to the documentation, we should set the EXTCON_USB when >> one SDP charger connector was reported. >> >>

Re: [PATCH 4.9 003/116] rtlwifi: Fix enter/exit power_save

2017-01-11 Thread Greg Kroah-Hartman
On Tue, Jan 10, 2017 at 10:51:56PM +0100, Willy Tarreau wrote: > On Tue, Jan 10, 2017 at 03:23:27PM -0600, l...@pengaru.com wrote: > > On Tue, Jan 10, 2017 at 09:40:24PM +0100, Greg Kroah-Hartman wrote: > > > On Tue, Jan 10, 2017 at 08:40:28PM +0300, Dmitry Osipenko wrote: > > > > Hello, this

Re: [PATCH v5 00/11] power: supply: bq27xxx: implement individual chip revision support

2017-01-11 Thread Sebastian Reichel
Hi, On Wed, Jan 11, 2017 at 12:44:37PM +1100, Chris Lapa wrote: > This patch series correctly renames the patch subject prefix to > 'power: supply: bq27xxx'. > > It also fixes up the deprecation of the BQ27500 and BQ27510 definitions. > > Otherwise the patch content is the same functionally as

Re: [PATCH] block: loose check on sg gap

2017-01-11 Thread Ming Lei
On Wed, Jan 11, 2017 at 1:10 PM, Dexuan Cui wrote: >> From: Dexuan Cui >> Sent: Tuesday, December 20, 2016 11:41 >> To: 'Jens Axboe' ; Ming Lei >> Cc: Linux Kernel Mailing List ; linux-block >>

Re: [PATCH] Add +~800M crashkernel explaination

2017-01-11 Thread Xunlei Pang
On 01/12/2017 at 03:35 AM, Robert LeBlanc wrote: > On Wed, Dec 14, 2016 at 4:17 PM, Xunlei Pang wrote: >> As I replied in another post, if you really want to detail the behaviour, >> should mention >> "crashkernel=size[KMG][@offset[KMG]]" with @offset[KMG] specified >>

Re: [PATCH v3 00/24] i.MX Media Driver

2017-01-11 Thread Steve Longerbeam
Hi Tim, On 01/11/2017 03:14 PM, Tim Harvey wrote: Hi Steve, I took a stab at testing this today on a gw51xx which has an adv7180 hooked up as follows: - i2c3@0x20 - 8bit data bus from DAT12 to DAT19, HSYNC, VSYNC, PIXCLK on CSI0 pads (CSI0_IPU1) - PWRDWN# on

[PATCH 1/7] staging:wlan-ng:cfg80211.c Aligned code with open parenthesis

2017-01-11 Thread Scott Matheina
Fixed Alignment should match open parenthesis checkpatch CHECK. Signed-off-by: Scott Matheina --- drivers/staging/wlan-ng/cfg80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wlan-ng/cfg80211.c

[PATCH 3/7] staging:wilc1000:linux_wlan.c Align code to match open parenthesis

2017-01-11 Thread Scott Matheina
Fixes checkpatch CHECK: Alignment should match open parenthesis Signed-off-by: Scott Matheina --- drivers/staging/wilc1000/linux_wlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c

[PATCH 4/7] staging:wilc1000:wilc_debugfs.c Aligns code to match open parenthesis

2017-01-11 Thread Scott Matheina
Fixes checkpatch CHECK: Alignment should match open parenthesis Signed-off-by: Scott Matheina --- drivers/staging/wilc1000/wilc_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_debugfs.c

[PATCH 5/7] staging:wilc1000:wilc_debugfs.c Removes multiple blank lines

2017-01-11 Thread Scott Matheina
Fixes checkpatch CHECK: Please don't use multiple blank lines Signed-off-by: Scott Matheina --- drivers/staging/wilc1000/wilc_debugfs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_debugfs.c b/drivers/staging/wilc1000/wilc_debugfs.c

[PATCH 6/7] staging:wilc1000:wilc_sdio.c Aligns code match open parenthesis

2017-01-11 Thread Scott Matheina
Fixes checkpatch CHECK: Alignment should match open parenthesis Signed-off-by: Scott Matheina --- drivers/staging/wilc1000/wilc_sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_sdio.c

linux-next: build failure after merge of the akpm-current tree

2017-01-11 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (powerpc allyesconfig) failed like this: In file included from fs/ocfs2/file.c:49:0: fs/ocfs2/file.c: In function 'ocfs2_permission': fs/ocfs2/dlmglue.h:189:29: error: inlining failed in call to always_inline

Re: [PATCH 3/4] dt-bindings: power/supply: Update TPS65217 properties

2017-01-11 Thread Sebastian Reichel
Hi Milo, On Fri, Dec 09, 2016 at 03:28:32PM +0900, Milo Kim wrote: > Add interrupt specifiers for USB and AC charger input. Interrupt numbers > are from the datasheet. > Fix wrong property for compatible string. > > Signed-off-by: Milo Kim > --- >

RE: [PATCH v8 00/18] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2017-01-11 Thread Bharat Bhushan
> -Original Message- > From: Eric Auger [mailto:eric.au...@redhat.com] > Sent: Wednesday, January 11, 2017 3:12 PM > To: eric.au...@redhat.com; eric.auger@gmail.com; > christoffer.d...@linaro.org; marc.zyng...@arm.com; > robin.mur...@arm.com; alex.william...@redhat.com; >

Re: ANNOUNCE: mdadm 4.0 - A tool for managing md Soft RAID under Linux

2017-01-11 Thread Guoqing Jiang
On 01/12/2017 12:59 AM, Jes Sorensen wrote: On 01/11/17 11:52, Shaohua Li wrote: On Tue, Jan 10, 2017 at 11:49:04AM -0600, Bruce Dubbs wrote: Jes Sorensen wrote: I am pleased to announce the availability of mdadm version 4.0 It is available at the usual places:

Re: net/atm: warning in alloc_tx/__might_sleep

2017-01-11 Thread Cong Wang
On Wed, Jan 11, 2017 at 11:46 AM, Michal Hocko wrote: > On Wed 11-01-17 20:45:25, Michal Hocko wrote: >> On Wed 11-01-17 09:37:06, Chas Williams wrote: >> > On Mon, 2017-01-09 at 18:20 +0100, Andrey Konovalov wrote: >> > > Hi! >> > > >> > > I've got the following error report

Re: linux-next: build failure after merge of the akpm-current tree

2017-01-11 Thread Eric Ren
Hi Stephen, Thanks for your report and the fix for it. The 0-day project has reported several days ago, but this patch set is still in discussion, so I am waiting for more days to see if other developers have any other questions. I am confused that how to deal with your patch if I need to

Re: [Intel-gfx] GPU hang with kernel 4.10rc3

2017-01-11 Thread Juergen Gross
On 11/01/17 18:08, Chris Wilson wrote: > On Wed, Jan 11, 2017 at 05:33:34PM +0100, Juergen Gross wrote: >> With kernel 4.10rc3 running as Xen dm0 I get at each boot: >> >> [ 49.213697] [drm] GPU HANG: ecode 7:0:0x3d1d3d3d, in gnome-shell >> [1431], reason: Hang on render ring, action: reset >> [

Re: [PATCH] serial: fsl_lpuart: Remove the alias node dependence

2017-01-11 Thread Greg KH
On Thu, Jan 12, 2017 at 02:27:45AM +, Yao Yuan wrote: > On Wed, Jan 11, 2016 at 04:33:32PM +0800, Greg KH wrote: > > On Wed, Dec 14, 2016 at 04:33:32PM +0800, Yuan Yao wrote: > > > From: Yuan Yao > > > > > > Numbering the ttyLPn space should not depend on the generic name >

[PATCH V2 2/4] PCI: exynos: Remove the unnecessary variables

2017-01-11 Thread Jaehoon Chung
Remove the unnecessary variables(elbi/phy/block_base). It needs one resource structure for assigning each resource. So it replaces with one 'res' variable. Signed-off-by: Jaehoon Chung Reviewed-by: Pankaj Dubey Acked-by: Krzysztof Kozlowski

[PATCH] spi: davinci: use dma_mapping_error()

2017-01-11 Thread Kevin Hilman
The correct error checking for dma_map_single() is to use dma_mapping_error(). Signed-off-by: Kevin Hilman --- Applies to v4.10-rc3 drivers/spi/spi-davinci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-davinci.c

[PATCH V2 4/4] PCI: exynos: remove the duplicated codes

2017-01-11 Thread Jaehoon Chung
Removed the duplicated codes. It can use the more simply than now. Signed-off-by: Jaehoon Chung Reviewed-by: Pankaj Dubey Acked-by: Krzysztof Kozlowski --- Changelog on V2: - None drivers/pci/host/pci-exynos.c | 22

Re: [PATCH] power: supply: axp20x_usb_power: fix warning on 64bit

2017-01-11 Thread Sebastian Reichel
Hi Michal, On Tue, Jan 10, 2017 at 06:48:12PM +0100, Michal Suchanek wrote: > Casting of_device_get_match_data return value to int causes warning on 64bit > architectures. > > ../drivers/power/supply/axp20x_usb_power.c: In function > 'axp20x_usb_power_probe': >

Re: [PATCH 1/4] mm, page_alloc: Split buffered_rmqueue

2017-01-11 Thread Hillf Danton
On Tuesday, January 10, 2017 12:35 AM Mel Gorman wrote: > > buffered_rmqueue removes a page from a given zone and uses the per-cpu > list for order-0. This is fine but a hypothetical caller that wanted > multiple order-0 pages has to disable/reenable interrupts multiple > times. This patch

Re: lkp: make.cross: old aarch64-gcc has been removed

2017-01-11 Thread Fengguang Wu
BTW, I found that the old toolchain is archived in release.linaro.org. So I made a patch for that. Applied the patch, thank you! Regards, Fengguang

[PATCH net-next v2 01/10] net: dsa: Pass device pointer to dsa_register_switch

2017-01-11 Thread Florian Fainelli
In preparation for allowing dsa_register_switch() to be supplied with device/platform data, pass down a struct device pointer instead of a struct device_node. Signed-off-by: Florian Fainelli --- drivers/net/dsa/b53/b53_common.c | 2 +- drivers/net/dsa/mv88e6xxx/chip.c |

  1   2   3   4   5   6   7   8   9   10   >