Re: [PATCH v4 6/8] staging: octeon: Remove USE_ASYNC_IOBDMA macro.

2017-12-07 Thread Greg Kroah-Hartman
On Tue, Nov 28, 2017 at 04:55:38PM -0800, David Daney wrote: > Previous patch sets USE_ASYNC_IOBDMA to 1 unconditionally. Remove > USE_ASYNC_IOBDMA from all if statements. Remove dead code caused by > the change. > > Signed-off-by: David Daney Acked-by: Greg

[PATCH net-next v2 2/8] net: phy: meson-gxl: define control registers

2017-12-07 Thread Jerome Brunet
Define registers and bits in meson-gxl PHY driver to make a bit more human friendly. No functional change. Signed-off-by: Neil Armstrong Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 64

[PATCH net-next v2 4/8] net: phy: meson-gxl: use genphy_config_init

2017-12-07 Thread Jerome Brunet
Use the generic init function to populate some of the phydev structure fields Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index

[PATCH net-next v2 1/8] net: phy: meson-gxl: check phy_write return value

2017-12-07 Thread Jerome Brunet
Always check phy_write return values. Better to be safe than sorry Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 50 ++--- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/drivers/net/phy/meson-gxl.c

[PATCH net-next v2 3/8] net: phy: meson-gxl: add read and write helpers for bank registers

2017-12-07 Thread Jerome Brunet
Add read and write helpers to manipulate banked registers on this PHY This helps clarify the settings applied to these registers in the init function and upcoming changes. Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 103

[PATCH net-next v2 5/8] net: phy: meson-gxl: detect LPA corruption

2017-12-07 Thread Jerome Brunet
The purpose of this change is to fix the incorrect detection of the link partner (LP) advertised capabilities which sometimes happens with this PHY (roughly 1 time in a dozen) This issue may cause the link to be negotiated at 10Mbps/Full or 10Mbps/Half when 100MBps/Full is actually possible. In

Re: [PATCH 2/2] i2c: fix piix4 aux port number

2017-12-07 Thread Jean Delvare
Hi Andrew, On Thu, 23 Nov 2017 13:09:38 +1000, Andrew Cooks wrote: > Let the aux port use port number one (not zero), to match the AMD > documentation and enable mapping ACPI _ADR to port number. > > This fixes ACPI-based enumeration of I2C slave peripherals that are > defined for the aux SMBus

Re: [PATCH RESEND] arm64: fault: avoid send SIGBUS two times

2017-12-07 Thread James Morse
Hi gengdongjiu, Will, On 07/12/17 05:55, gengdongjiu wrote: > On 2017/12/7 0:15, Will Deacon wrote: >>> --- a/arch/arm64/mm/fault.c >>> +++ b/arch/arm64/mm/fault.c >>> @@ -570,7 +570,6 @@ static int do_sea(unsigned long addr, unsigned int esr, >>> struct pt_regs *regs) >>> { >>> struct

Re: [RFC PATCH] mm: unclutter THP migration

2017-12-07 Thread Michal Hocko
On Thu 07-12-17 22:10:47, Zi Yan wrote: > Hi Michal, > > Thanks for sending this out. > > Michal Hocko wrote: > > From: Michal Hocko > > > > THP migration is hacked into the generic migration with rather > > surprising semantic. The migration allocation callback is supposed to

[PATCH v2 1/2] uio: Allow to take irq bottom-half into irq_handler with additional dt-binding

2017-12-07 Thread Andrey Zhizhikin
Certain Kernel preemption models are using threaded interrupt handlers, which is in general quite beneficial. However, threaded handlers introducing additional scheduler overhead, when the bottom-half thread should be woken up and scheduled for execution. This can result is additional latency,

[PATCH v2 2/2] uio: Introduce UIO driver dt-binding documentation

2017-12-07 Thread Andrey Zhizhikin
Create Documentation portion of UIO driver with Generic Interrupt Handler. This patch creates a dt-binding documentation portion of the UIO Driver. In addition to definition of standard required properties, new optional property defined: - no-threaded-irq: when present, request_irq() is called

[PATCH v2 0/2] uio: Allow to take irq bottom-half into irq_handler with additional dt-binding

2017-12-07 Thread Andrey Zhizhikin
This patch series aimed to introduce additional feature for UIO driver with generic interrupt handler to allow IRQ bottom half to be executed in irq_handler context rather than as threaded IRQ. Andrey Zhizhikin (2): uio: Allow to take irq bottom-half into irq_handler with additional

[PATCH net-next v4 3/4] net: phy: smsc: LAN8710/20: add PHY_RST_AFTER_CLK_EN flag

2017-12-07 Thread Richard Leitner
From: Richard Leitner The Microchip/SMSC LAN8710/LAN8720 PHYs need (according to their datasheet [1]) a continuous REF_CLK when configured to "REF_CLK In Mode". Therefore set the PHY_RST_AFTER_CLK_EN flag for those PHYs to let the ETH driver reset them after the

Re: [PATCH v1 1/6] ARM: davinci: clean up map_io functions

2017-12-07 Thread Sekhar Nori
On Saturday 02 December 2017 08:04 AM, David Lechner wrote: > This cleans up the map_io functions in the board init files for > mach-davinci. > > Most of the boards had a wrapper function around _init(). This > wrapper is removed and the function is used directly. Additionally, the > _init()

RE: [intel-sgx-kernel-dev] [PATCH v7 4/8] intel_sgx: driver for Intel Software Guard Extensions

2017-12-07 Thread Christopherson, Sean J
Jarkko Sakkinen wrote: > +static void sgx_ewb(struct sgx_encl *encl, struct sgx_encl_page *entry) > +{ > + struct sgx_va_page *va_page; > + unsigned int va_offset; > + int ret; > + int i; > + > + for (i = 0; i < 2; i++) { > +

Re: Timer refuses to expire

2017-12-07 Thread Paul E. McKenney
On Thu, Dec 07, 2017 at 03:03:50PM +0800, Boqun Feng wrote: > Hi Paul, > > On Wed, Dec 06, 2017 at 02:04:21PM -0800, Paul E. McKenney wrote: > > On Tue, Dec 05, 2017 at 03:37:44PM -0800, Paul E. McKenney wrote: > > > On Mon, Dec 04, 2017 at 09:42:08AM -0800, Paul E. McKenney wrote: > > > > On

Re: [PATCH net-next v4 1/4] phylib: Add device reset delay support

2017-12-07 Thread Richard Leitner
Hi Geert, On 12/07/2017 03:52 PM, Geert Uytterhoeven wrote: > Hi Richard, > > On Thu, Dec 7, 2017 at 3:43 PM, Richard Leitner wrote: >> --- a/drivers/net/phy/mdio_device.c >> +++ b/drivers/net/phy/mdio_device.c >> @@ -24,6 +24,7 @@ >> #include >> #include >> #include >>

Re: [PATCH] btrfs: tree-checker: use %zu format string for size_t

2017-12-07 Thread David Sterba
On Thu, Dec 07, 2017 at 08:32:04AM +0800, Qu Wenruo wrote: > > > On 2017年12月06日 22:18, Arnd Bergmann wrote: > > The return value of sizeof() is of type size_t, so we must print it > > using the %z format modifier rather than %l to avoid this warning > > on some architectures: > > > >

Re: [PATCH V6 4/7] OF: properties: Implement get_match_data() callback

2017-12-07 Thread Lothar Waßmann
Hi, On Thu, 7 Dec 2017 09:45:31 -0500 Sinan Kaya wrote: > On 12/7/2017 8:10 AM, Lothar Waßmann wrote: > >> +void *of_fwnode_get_match_data(const struct fwnode_handle *fwnode, > >> + struct device *dev) > > Shouldn't this be 'const void *of_fwnode_get_match_data > > OF

[PATCH v2 02/10] arm64: dts: qcom: msm8916-pins: remove assignments to bias-disable

2017-12-07 Thread Damien Riegel
Drop assignments to bias-disable as the documentation [1] states that this property doesn't take a value. Other occurrences of this property respect that. [1] Documentation/devicetree/bindings/pinctrl/qcom,msm8916-pinctrl.txt Signed-off-by: Damien Riegel

[PATCH v2 05/10] arm64: dts: qcom: apq8016-sbc: sort nodes alphabetically

2017-12-07 Thread Damien Riegel
Also, it was using whitespaces for indentation on some lines, fix that while moving it. Signed-off-by: Damien Riegel --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v2 08/10] arm64: dts: qcom: msm8916-pins: move sdhc2 cd node with its siblings

2017-12-07 Thread Damien Riegel
Nodes relative to the first sdhc node were interlaced with node of the second sdhc. Move sdhc2_cd_pin with its siblings to prevent that. Also rename the grouping node from sdhc2_cd_pin to pmx_sdc2_cd_pin, as "pmx_sdc" is the prefix used by other nodes. Signed-off-by: Damien Riegel

[PATCH v2 07/10] arm64: dts: qcom: msm8916: drop remaining unused pinconfs

2017-12-07 Thread Damien Riegel
This commit drops pin configs that cannot be moved to board files as no boards use them. Signed-off-by: Damien Riegel --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 33 -- 1 file changed, 33 deletions(-) diff --git

Re: [PATCH 31/45] tools/perf: remove duplicate includes

2017-12-07 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 06, 2017 at 11:13:24PM +0530, Pravin Shedge escreveu: > These duplicate includes have been found with scripts/checkincludes.pl but > they have been removed manually to avoid removing false positives. Thanks, checked the dups manually too and applied, - Arnaldo > Signed-off-by:

Re: [PATCH net-next 1/3] net: dsa: mediatek: add VLAN support for MT7530

2017-12-07 Thread Andrew Lunn
> static void > +mt7530_port_set_vlan_unware(struct dsa_switch *ds, int port) > +{ > + struct mt7530_priv *priv = ds->priv; > + int i; > + bool all_user_ports_removed = true; Hi Sean Reverse Christmas tree please. > +static int > +mt7530_vlan_cmd(struct mt7530_priv *priv, enum

Re: [PATCH net-next 2/3] net: dsa: mediatek: combine MediaTek tag with VLAN tag

2017-12-07 Thread Andrew Lunn
> @@ -25,20 +28,37 @@ static struct sk_buff *mtk_tag_xmit(struct sk_buff *skb, > { > struct dsa_port *dp = dsa_slave_to_port(dev); > u8 *mtk_tag; > + bool is_vlan_skb = true; .. > + /* Mark tag attribute on special tag insertion to notify hardware > + * whether that's a

Re: [PATCH net-next v2 1/8] net: phy: meson-gxl: check phy_write return value

2017-12-07 Thread Andrew Lunn
On Thu, Dec 07, 2017 at 03:27:08PM +0100, Jerome Brunet wrote: > Always check phy_write return values. Better to be safe than sorry > > Signed-off-by: Jerome Brunet Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v5 2/2] dt-bindings: add eeprom "no-read-rollover" property

2017-12-07 Thread Rob Herring
On Thu, Dec 7, 2017 at 8:36 AM, Sven Van Asbroeck wrote: > Adds an optional property for at24 eeproms. > This parameterless property indicates that the multi-address eeprom > does not automatically roll over reads to the next slave address. > > Signed-off-by: Sven Van Asbroeck

[PATCH v3 04/10] ASoC: tlv320aic31xx: Add MICBIAS off setting

2017-12-07 Thread Andrew F. Davis
Leaving microphone bias off is a valid setting and even used in the DT binding document example. Add this setting here and document the same. Signed-off-by: Andrew F. Davis Acked-by: Rob Herring --- Documentation/devicetree/bindings/sound/tlv320aic31xx.txt | 1 +

[PATCH v3 00/10] Add Headphone Detection to TLV320AIC31xx Driver

2017-12-07 Thread Andrew F. Davis
Hello all, This series has the end goal of adding headphone detection to the tlv320aic31xx driver. The first few patches are mostly cleanups. Then a couple bug fixes I noticed. Followed by adding interrupt handling and finally headphone detection. Still not sure if the IRQ patch is correct, I

[PATCH v3 09/10] ASoC: tlv320aic31xx: Add headphone/headset detection

2017-12-07 Thread Andrew F. Davis
This device can detect the insertion/removal of headphones and headsets. Enable reporting this status by enabling this interrupt and forwarding this to upper-layers if a jack has been defined. This jack definition and the resulting operation from a jack detection event must currently be defined

[PATCH v3 03/10] ASoC: tlv320aic31xx: Remove platform data

2017-12-07 Thread Andrew F. Davis
Platform data is not used by anyone (at least in upstream) so drop this data. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 7 --- sound/soc/codecs/tlv320aic31xx.h | 6 -- 2 files changed, 13 deletions(-) diff --git

[PATCH v3 08/10] ASoC: tlv320aic31xx: Add overflow detection support

2017-12-07 Thread Andrew F. Davis
Similar to short circuit detection, when the ADC/DAC is saturated and overflows poor audio quality can result and should be reported to the user. This device support Automatic Dynamic Range Compression (DRC) to reduce this but it is not enabled currently in this driver. Signed-off-by: Andrew F.

[PATCH v3 05/10] ASoC: tlv320aic31xx: Remove regulator notification handling

2017-12-07 Thread Andrew F. Davis
A regulator being forcefully disabled is a catastrophic event that should never happen to most devices, especially not sound CODECs. In addition, our handler sets the reset line but never disables it as no one is listening for an enable event, this is certainly broken and was mosy likely just

[PATCH v3 02/10] ASoC: tlv320aic31xx: Use fwnode APIs over raw OF calls

2017-12-07 Thread Andrew F. Davis
Use fwnode_* API instead of of_*, the results are the same but fwnode_* is cleaner and we get ACPI support. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 77 +++- 1 file changed, 29 insertions(+), 48 deletions(-) diff

[PATCH v3 06/10] ASoC: tlv320aic31xx: Reset registers during power up

2017-12-07 Thread Andrew F. Davis
Add a reset function that toggles the reset line if available or uses the software reset command otherwise. Use this in power up to ensure the registers are in a sane state. This is useful when the driver module is reloaded, or after Kexec, warm-reboots, etc.. Signed-off-by: Andrew F. Davis

[PATCH v3 01/10] ASoC: tlv320aic31xx: Fix GPIO header includes

2017-12-07 Thread Andrew F. Davis
Use of gpiod_* needs , add this here. Fixes: b6b247cd5e37 ("ASoC: tlv320aic31xx: Switch GPIO handling to use gpiod_* API") Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 4.9 037/109] dmaengine: stm32-dma: Set correct args number for DMA request from DT

2017-12-07 Thread alexander . levin
On Thu, Dec 07, 2017 at 03:04:07PM +0100, Pierre Yves MORDRET wrote: >I did check. DT Bindings are aligned with the patch. >In fact the patch was an alignment with DT Bindings. > >For DT : >47c8a5035b68 ARM: dts: stm32: Add DMA support for STM32F746 SoC >01d281b6e4a2 ARM: dts: stm32: Add DMA

Re: [PATCH net-next v2 5/8] net: phy: meson-gxl: detect LPA corruption

2017-12-07 Thread Jerome Brunet
On Thu, 2017-12-07 at 16:34 +0100, Andrew Lunn wrote: > On Thu, Dec 07, 2017 at 03:27:12PM +0100, Jerome Brunet wrote: > > The purpose of this change is to fix the incorrect detection of the link > > partner (LP) advertised capabilities which sometimes happens with this PHY > > (roughly 1 time in

Re: [PATCH v18 05/10] xbitmap: add more operations

2017-12-07 Thread Michael S. Tsirkin
On Thu, Dec 07, 2017 at 08:01:24PM +0800, Wei Wang wrote: > On 12/03/2017 09:50 AM, Tetsuo Handa wrote: > > Matthew Wilcox wrote: > > > On Fri, Dec 01, 2017 at 03:09:08PM +, Wang, Wei W wrote: > > > > On Friday, December 1, 2017 9:02 PM, Tetsuo Handa wrote: > > > > > If start == end is legal,

Re: [PATCH] dt: bindings: as3645a: Fix the example node

2017-12-07 Thread Rob Herring
On Wed, Dec 6, 2017 at 4:32 PM, Dan Murphy wrote: > Rob > > On 12/06/2017 03:52 PM, Rob Herring wrote: >> On Tue, Dec 05, 2017 at 07:36:37AM -0600, Dan Murphy wrote: >>> Fix the address-cells and size-cells example node >>> to reflect to the correct representation. >>> >>>

[PATCH AUTOSEL for 4.14 068/135] qtnfmac: modify full Tx queue error reporting

2017-12-07 Thread alexander . levin
From: Sergey Matyukevich [ Upstream commit e9931f984dd1e80adb3b5e095ef175fe383bc92d ] Under heavy load it is normal that h/w Tx queue is almost full all the time and reclaim should be done before transmitting next packet. Warning still should be reported as

[PATCH AUTOSEL for 4.14 084/135] RDMA/cxgb4: Declare stag as __be32

2017-12-07 Thread alexander . levin
From: Leon Romanovsky [ Upstream commit 35fb2a88ed4b77356fa679a8525c869a3594e287 ] The scqe.stag is actually __b32, fix it. drivers/infiniband/hw/cxgb4/cq.c:754:52: warning: cast to restricted __be32 Cc: Steve Wise Signed-off-by: Leon

Re: [PATCH v3 6/6] cpufreq: schedutil: ignore sugov kthreads

2017-12-07 Thread Patrick Bellasi
On 07-Dec 14:54, Viresh Kumar wrote: > On 30-11-17, 16:42, Patrick Bellasi wrote: > > On 30-Nov 17:12, Juri Lelli wrote: > > > Not sure about this though, not my call :). I guess this still helps > > > until we get the DL changes in. > > > > Yes, agree... well Viresh had some concerns about this

[PATCH AUTOSEL for 4.14 069/135] mtd: spi-nor: stm32-quadspi: Fix uninitialized error return code

2017-12-07 Thread alexander . levin
From: Geert Uytterhoeven [ Upstream commit 05521bd3d117704a1458eb4d0c3ae821858658f2 ] With gcc 4.1.2: drivers/mtd/spi-nor/stm32-quadspi.c: In function ‘stm32_qspi_tx_poll’: drivers/mtd/spi-nor/stm32-quadspi.c:230: warning: ‘ret’ may be used uninitialized in this

[PATCH AUTOSEL for 4.14 062/135] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-12-07 Thread alexander . levin
From: Nick Desaulniers [ Upstream commit fd9dde6abcb9bfe6c6bee48834e157999f113971 ] Upon upgrading to binutils 2.27, we found that our lz4 and gzip compressed kernel images were significantly larger, resulting is 10ms boot time regressions. As noted by Rahul: "aarch64

[PATCH AUTOSEL for 4.14 082/135] net: hns3: add nic_client check when initialize roce base information

2017-12-07 Thread alexander . levin
From: Lipeng [ Upstream commit 3a46f34d20d453f09defb76b11a567647939c0aa ] Roce driver works base on HNS3 driver.If insmod Roce driver before NIC driver there is a error because do not check nic_client. This patch adds nic_client check when initialize roce base information.

Re: [PATCH v3] leds: trigger: Introduce a NETDEV trigger

2017-12-07 Thread Ben Whitten
Philippe, On 7 December 2017 at 13:01, Philippe Ombredanne wrote: > Ben, > > On Thu, Dec 7, 2017 at 12:46 PM, Ben Whitten wrote: >> From: Ben Whitten >> >> This commit introduces a NETDEV trigger for named device >> activity.

Re: [PATCH v3 3/6] cpufreq: schedutil: update CFS util only if used

2017-12-07 Thread Patrick Bellasi
On 07-Dec 10:45, Viresh Kumar wrote: > On 30-11-17, 15:57, Patrick Bellasi wrote: > > Yes, that's a pretty trivial update with a confusing changelog. > > > > If we think it's worth to keep (and correct as well) I'll update the > > commit message. > > We also need to update the commit log based

Re: [PATCH 0/1] About MIPS/Loongson maintainance

2017-12-07 Thread James Hogan
On Thu, Dec 07, 2017 at 09:10:10PM +0800, Jiaxun Yang wrote: > On 2017-12-07 Thu 11:05 +,James Hogan Wrote: > > On Thu, Dec 07, 2017 at 07:57:59AM +0100, Greg Kroah-Hartman wrote: > > > On Thu, Dec 07, 2017 at 02:31:07PM +0800, Huacai Chen wrote: > > > > Hi, Linus, Stephen, Greg, Ralf and

[PATCH net-next v2 8/8] net: phy: meson-gxl: join the authors

2017-12-07 Thread Jerome Brunet
Following previous changes, join the other authors of this driver and take the blame with them Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index

Re: PI futexes + lock stealing woes

2017-12-07 Thread Peter Zijlstra
On Thu, Dec 07, 2017 at 11:45:16AM +0100, Peter Zijlstra wrote: > diff --git a/kernel/futex.c b/kernel/futex.c > index 76ed5921117a..8ad5221fbd84 100644 > --- a/kernel/futex.c > +++ b/kernel/futex.c > @@ -2303,14 +2303,35 @@ static void unqueue_me_pi(struct futex_q *q) > static int

Re: [RFC v3 PATCH 0/2] Introduce Security Version to EFI Stub

2017-12-07 Thread Alan Cox
On Tue, 5 Dec 2017 18:01:46 +0800 Gary Lin wrote: > The series of patches introduce Security Version to EFI stub. > > Security Version is a monotonically increasing number and designed to > prevent the user from loading an insecure kernel accidentally. The > bootloader maintains

Re: [2/3] ath9k: move spectral scan support under a separate config symbol

2017-12-07 Thread Kalle Valo
Matthias Schiffer wrote: > At the moment, spectral scan support, and with it RELAY, is always enabled > with ATH9K[_HTC]_DEBUGFS. Spectral scan support is currently the only user > of RELAY in ath9k, and it unconditionally reserves a relay channel. > > Having

[PATCH v5 1/2] at24: support eeproms that do not auto-rollover reads.

2017-12-07 Thread Sven Van Asbroeck
Some multi-address eeproms in the at24 family may not automatically roll-over reads to the next slave address. On those eeproms, reads that straddle slave boundaries will not work correctly. Solution: Mark such eeproms with a flag that prevents reads straddling slave boundaries. Add the

Re: [PATCH 1/2] i2c: add ACPI support for i2c-piix4

2017-12-07 Thread Jean Delvare
Hi Andrew, On Thu, 23 Nov 2017 13:09:37 +1000, Andrew Cooks wrote: > This enables the i2c-piix4 SMBus controller driver to enumerate I2C > slave devices using ACPI. It builds on the related I2C mux device work > in commit 8eb5c87a92c0 ("i2c: add ACPI support for I2C mux ports") > >

[PATCH net-next v4 4/4] net: fec: add phy_reset_after_clk_enable() support

2017-12-07 Thread Richard Leitner
From: Richard Leitner Some PHYs (for example the SMSC LAN8710/LAN8720) doesn't allow turning the refclk on and off again during operation (according to their datasheet). Nonetheless exactly this behaviour was introduced for power saving reasons by commit e8fcfcd5684a

[PATCH net-next v4 0/4] net: fec: fix refclk enable for SMSC LAN8710/20

2017-12-07 Thread Richard Leitner
From: Richard Leitner This patch series fixes the use of the SMSC LAN8710/20 with a Freescale ETH when the refclk is generated by the FSL. This patchset depends on the "phylib: Add device reset GPIO support" patch submitted by Geert Uytterhoeven/Sergei Shtylyov,

[PATCH net-next v4 2/4] phylib: add reset after clk enable support

2017-12-07 Thread Richard Leitner
From: Richard Leitner Some PHYs need the refclk to be a continuous clock. Therefore they don't allow turning it off and on again during operation. Nonetheless such a clock switching is performed by some ETH drivers (namely FEC [1]) for power saving reasons. An

Re: [PATCH] ACPI / GED: unregister interrupts during shutdown

2017-12-07 Thread Sinan Kaya
Rafael, On 12/7/2017 8:00 AM, Rafael J. Wysocki wrote: >> Just don't use devm_request_threaded_irq()? :) >> >> Seriously, those are just "helper" functions if your code happens to >> follow the pattern they provide, if not, then don't use them, it's not >> that hard to provide the correct code

Re: [PATCH net-next v4 1/4] phylib: Add device reset delay support

2017-12-07 Thread Geert Uytterhoeven
Hi Richard, On Thu, Dec 7, 2017 at 3:43 PM, Richard Leitner wrote: > --- a/drivers/net/phy/mdio_device.c > +++ b/drivers/net/phy/mdio_device.c > @@ -24,6 +24,7 @@ > #include > #include > #include > +#include > > void mdio_device_free(struct mdio_device *mdiodev) > { >

Re: [PATCH] kconfig: Warn if choice default is not in choice

2017-12-07 Thread Masahiro Yamada
2017-10-04 8:25 GMT+09:00 Ulf Magnusson : > This will catch mistakes like in the following real-world example, where > a "CONFIG_" prefix snuck in, making an undefined symbol the default: > > choice > prompt "Compiler optimization level" >

[PATCH] drivers/scsi/qla2xxx: fix double free bug after firmware timeout

2017-12-07 Thread Max Kellermann
When the qla2xxx firmware is unavailable, eventually qla2x00_sp_timeout() is reached, which calls the timeout function and frees the srb_t instance. The timeout function always resolves to qla2x00_async_iocb_timeout(), which invokes another callback function called "done". All of these

Re: [PATCH] Makefile: .PHONY is not a variable, but PHONY is

2017-12-07 Thread Masahiro Yamada
Hi Ulf, 2015-09-02 22:11 GMT+09:00 : > From: Ulf Magnusson > > .PHONY is a target, not a variable. > > Signed-off-by: Ulf Magnusson > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH] perf tests: Handle properly readdir DT_UNKNOWN

2017-12-07 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 06, 2017 at 06:45:35PM +0100, Jiri Olsa escreveu: > Some system can return DT_UNKNOWN in readdir's struct dirent::d_type > and we must handle it properly. In this case we can directly check > if the entity we found is directory and skip it. > Making is_directory function global.

[PATCH v2 04/10] arm64: dts: qcom: msm8916: drop unused board-specific nodes

2017-12-07 Thread Damien Riegel
These nodes reserve and configure some pins as GPIOs. They are not generic pinctrls, they actually belong to board files but they are not used by any other node, so just drop them altogether. Signed-off-by: Damien Riegel ---

[PATCH v2 10/10] arm64: dts: qcom: msm8916: add nodes for i2c1, i2c3, i2c5

2017-12-07 Thread Damien Riegel
Signed-off-by: Damien Riegel --- Changes in v2: - Reworded commit title - Changed size to 0x500 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 48 ++ arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 42 ++

[PATCH v2 06/10] arm64: dts: qcom: msm8916: move pinconfs to board files

2017-12-07 Thread Damien Riegel
Following a suggestion from Bjorn Andersson [1], this commit moves electrical specifications which were defined in mms8916-pins.dtsi to board files, where they actually belong. Pinmuxing is kept in the platform file because there are no alternative pins on which all these functions could be

Re: [PATCH] mm/huge_memory: fix comment in __split_huge_pmd_locked

2017-12-07 Thread Kirill A. Shutemov
On Thu, Dec 07, 2017 at 01:49:05PM +0800, Yisheng Xie wrote: > pmd_trans_splitting has been remove after THP refcounting redesign, > therefore related comment should be updated. > > Signed-off-by: Yisheng Xie Looks good to me. Acked-by: Kirill A. Shutemov

[PATCH v2 09/10] arm64: dts: qcom: msm8916: normalize I2C and SPI nodes

2017-12-07 Thread Damien Riegel
The QUP core can be used either for I2C or SPI, so the same IP is mapped by a driver or the other. SPI bindings use a leading 0 for the start address and a size of 0x600, I2C bindings don't have the leading 0 and have a size 0x1000. To make them more similar, add the leading 0 to I2C bindings and

[PATCH v2 00/10] arm64: dts: qcom: dts improvements

2017-12-07 Thread Damien Riegel
The goal of this series was to add missing I2C bindings for BLSP_I2C1, BLSP_I2C3, and BLSP_I2C5. But while working on this, I noticed some styling issues and decided to tackle them in the same patchset, mostly because they touch the same files and the same people will be involved for the review.

[PATCH v2 01/10] arm64: dts: qcom: pm8916: fix wcd_codec indentation

2017-12-07 Thread Damien Riegel
Indentation did not respect kernel standards, so fix that for the usual indent with tabs, align with spaces. While at it, remove some empty lines before and after the closing parenthesis of this block. Signed-off-by: Damien Riegel Reviewed-by: Bjorn Andersson

[PATCH v2 03/10] arm64: dts: qcom: msm8916-pins: keep cdc_dmic pins in suspend mode

2017-12-07 Thread Damien Riegel
This node was the only one that didn't have the same set of pins in active and suspend mode. Signed-off-by: Damien Riegel --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 8 1 file changed, 8 insertions(+) diff --git

Re: [PATCH v8 4/6] clocksource: stm32: only use 32 bits timers

2017-12-07 Thread Daniel Lezcano
On 14/11/2017 09:52, Benjamin Gaignard wrote: > The clock driving counters is at 90MHz so the maximum period > for 16 bis counters is around 750 ms which is a short period > for a clocksource. Isn't it 728us ? > For 32 bits counters this period is close > 47 secondes which is more acceptable. >

Re: [PATCH net-next 3/3] net: dsa: mediatek: update MAINTAINERS entry with MediaTek switch driver

2017-12-07 Thread Andrew Lunn
On Thu, Dec 07, 2017 at 02:06:12PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > I work for MediaTek and maintain SoC targeting to home gateway and > also will keep extending and testing the function from MediaTek > switch. > > Signed-off-by: Sean Wang

[PATCH AUTOSEL for 4.14 108/135] IB/hfi1: Mask out A bit from psn trace

2017-12-07 Thread alexander . levin
From: Don Hiatt [ Upstream commit d0a2f454713a42447ee4007582c0e43c47bcf230 ] The trace logic prior to the fixes below used to mask the A bit from the psn. It now mistakenly displays the A bit, which is already displayed separately. Fix by adding the appropriate mask to the

[PATCH AUTOSEL for 4.14 087/135] scsi: hpsa: cleanup sas_phy structures in sysfs when unloading

2017-12-07 Thread alexander . levin
From: Martin Wilck [ Upstream commit 55ca38b4255bb336c2d35990bdb2b368e19b435a ] I am resubmitting this patch on behalf of Martin Wilck with his permission. The original patch can be found here: https://www.spinics.net/lists/linux-scsi/msg102083.html This patch did not help

[PATCH AUTOSEL for 4.9 027/156] writeback: fix memory leak in wb_queue_work()

2017-12-07 Thread alexander . levin
From: Tahsin Erdogan [ Upstream commit 4a3a485b1ed0e109718cc8c9d094fa0f552de9b2 ] When WB_registered flag is not set, wb_queue_work() skips queuing the work, but does not perform the necessary clean up. In particular, if work->auto_free is true, it should free the memory.

[PATCH AUTOSEL for 4.14 103/135] raid5: Set R5_Expanded on parity devices as well as data.

2017-12-07 Thread alexander . levin
From: NeilBrown [ Upstream commit 235b6003fb28f0dd8e7ed8fbdb088bb548291766 ] When reshaping a fully degraded raid5/raid6 to a larger nubmer of devices, the new device(s) are not in-sync and so that can make the newly grown stripe appear to be "failed". To avoid this, we set the

[PATCH AUTOSEL for 4.9 023/156] drm/omap: fix dmabuf mmap for dma_alloc'ed buffers

2017-12-07 Thread alexander . levin
From: Tomi Valkeinen [ Upstream commit 9fa1d7537242bd580ffa99c4725a0407096aad26 ] omap_gem_dmabuf_mmap() returns an error (with a WARN) when called for a buffer which is allocated with dma_alloc_*(). This prevents dmabuf mmap from working on SoCs without DMM, e.g. AM4 and

[PATCH AUTOSEL for 4.14 132/135] ath9k: fix tx99 potential info leak

2017-12-07 Thread alexander . levin
From: Miaoqing Pan [ Upstream commit ee0a47186e2fa9aa1c56cadcea470ca0ba8c8692 ] When the user sets count to zero the string buffer would remain completely uninitialized which causes the kernel to parse its own stack data, potentially leading to an info leak. In addition

[PATCH AUTOSEL for 4.9 017/156] net/mlx5: Don't save PCI state when PCI error is detected

2017-12-07 Thread alexander . levin
From: Daniel Jurgens [ Upstream commit 5d47f6c89d568ab61712d8c40676fbb020b68752 ] When a PCI error is detected the PCI state could be corrupt, don't save it in that flow. Save the state after initialization. After restoring the PCI state during slot reset save it again,

Re: [PATCH net-next v2 7/8] net: phy: meson-gxl: add interrupt support

2017-12-07 Thread Andrew Lunn
On Thu, Dec 07, 2017 at 03:27:14PM +0100, Jerome Brunet wrote: > Enable interrupt support in meson-gxl PHY driver Hi Jerome Is it possible to implement did_interrupt()? That allows for shared interrupts. It does however work fine without it, so long as the interrupt is not shared.

[PATCH AUTOSEL for 4.4 046/101] NFSv4.1 respect server's max size in CREATE_SESSION

2017-12-07 Thread alexander . levin
From: Olga Kornievskaia [ Upstream commit 033853325fe3bdc70819a8b97915bd3bca41d3af ] Currently client doesn't respect max sizes server returns in CREATE_SESSION. nfs4_session_set_rwsize() gets called and server->rsize, server->wsize are 0 so they never get set to the sizes

[PATCH AUTOSEL for 4.4 045/101] efi/esrt: Cleanup bad memory map log messages

2017-12-07 Thread alexander . levin
From: Daniel Drake [ Upstream commit 822f5845f710e57d7e2df1fd1ee00d6e19d334fe ] The Intel Compute Stick STCK1A8LFC and Weibu F3C platforms both log 2 error messages during boot: efi: requested map not found. esrt: ESRT header is not in the memory map. Searching the

[PATCH] clk: qcom: gcc-msm8996: always enable aggre0_noc gdsc

2017-12-07 Thread srinivas . kandagatla
From: Srinivas Kandagatla bus clks which depend on this gdsc are marked as critical, so this patch flags this gdsc ALWAYS_ON so that bus clks status does not get stuck at on or off. Signed-off-by: Srinivas Kandagatla ---

Re: ath10k: use 64-bit crash dump timestamps

2017-12-07 Thread Kalle Valo
Arnd Bergmann wrote: > The dump format uses 64-bit timestamps already, but calling > getnstimeofday() only returns a 32-bit number on 32-bit architectures, > so that will overflow in y2038. > > This changes it to use ktime_get_real_ts64() instead. > > Signed-off-by: Arnd

Re: [RFC PATCH 1/6] drm: Add Content Protection property

2017-12-07 Thread Alan Cox
> How about for sensitive video streams in government offices where you > want to avoid a spy potentially tapping the cable to see the video > stream? Last time I checked HDCP did not meet government security requirements - which is hardly surprising since you can buy $10 boxes from China to

Re: [PATCH 1/6] staging: pi433: Split rf69_set_crc_enabled into two functions

2017-12-07 Thread Greg KH
On Wed, Dec 06, 2017 at 09:42:19PM +0100, Simon Sandström wrote: > Splits rf69_set_crc_enabled(dev, enabled) into > rf69_enable_crc(dev) and rf69_disable_crc(dev). > > Signed-off-by: Simon Sandström > --- > drivers/staging/pi433/pi433_if.c | 22 -- >

Re: [PATCH] media: s5p-jpeg: Fix off-by-one problem

2017-12-07 Thread Andrzej Pietrasiewicz
W dniu 06.12.2017 o 17:37, Flavio Ceolin pisze: s5p_jpeg_runtime_resume() does not call clk_disable_unprepare() for jpeg->clocks[0] when one of the clk_prepare_enable() fails. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Flavio Ceolin

Re: [PATCH] kconfig: Document the 'menu' struct

2017-12-07 Thread Masahiro Yamada
2017-10-04 12:37 GMT+09:00 Ulf Magnusson : > Understanding what it represents helps a lot when reading the code, and > it's not obvious, so document it. > > The ROOT_MENU flag is only set and tested by the gconf and qconf front > ends, so leave it undocumented here. The

Re: [PATCH] kconfig: Document the 'symbol' struct

2017-12-07 Thread Masahiro Yamada
2017-10-04 14:48 GMT+09:00 Ulf Magnusson : > Visibility and choices in particular might be a bit tricky to figure > out. > > Also fix existing comment to point out that P_MENU is also used for > menus. > > Signed-off-by: Ulf Magnusson Applied to

Re: [PATCH 4.4 00/49] 4.4.105-stable review

2017-12-07 Thread Nathan Chancellor
On Thu, Dec 07, 2017 at 02:06:54PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.105 release. > There are 49 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH v3] scripts/package: snap-pkg target

2017-12-07 Thread Masahiro Yamada
2017-12-07 3:14 GMT+09:00 Paolo Pisati : > On Wed, Dec 6, 2017 at 11:36 AM, Masahiro Yamada > wrote: >> Just one question to Paolo: >> >> If some change like firmware removal happens in the future, >> patching for snapcraft is

Re: [Intel-gfx] [PATCH] drm/i915: Increase max texture to 16k for gen9+

2017-12-07 Thread Ville Syrjälä
On Thu, Dec 07, 2017 at 05:26:00PM +0800, Alex Tu wrote: > Rrefer to another patch [1] on mesa to extend width/height to 16384. > For issue : > - https://bugs.freedesktop.org/show_bug.cgi?id=102508 > - LP: #1714178 Triple monitor display failed with Dell Dock (HiDPI) > > [1]

[PATCH AUTOSEL for 4.14 025/135] platform/x86: intel_punit_ipc: Fix resource ioremap warning

2017-12-07 Thread alexander . levin
From: Kuppuswamy Sathyanarayanan [ Upstream commit 6cc8cbbc8868033f279b63e98b26b75eaa0006ab ] For PUNIT device, ISPDRIVER_IPC and GTDDRIVER_IPC resources are not mandatory. So when PMC IPC driver creates a PUNIT device, if these resources are not

[PATCH AUTOSEL for 4.14 002/135] HID: cp2112: fix broken gpio_direction_input callback

2017-12-07 Thread alexander . levin
From: Sébastien Szymanski [ Upstream commit 7da85fbf1c87d4f73621e0e7666a3387497075a9 ] When everything goes smoothly, ret is set to 0 which makes the function to return EIO error. Fixes: 8e9faa15469e ("HID: cp2112: fix gpio-callback error handling")

[PATCH AUTOSEL for 4.14 060/135] Ib/hfi1: Return actual operational VLs in port info query

2017-12-07 Thread alexander . levin
From: Patel Jay P [ Upstream commit 00f9203119dd2774564407c7a67b17d81916298b ] __subn_get_opa_portinfo stores value returned by hfi1_get_ib_cfg() as operational vls. hfi1_get_ib_cfg() returns vls_operational field in hfi1_pportdata. The problem with this is that the value

[PATCH AUTOSEL for 4.14 038/135] net: hns3: fix for getting advertised_caps in hns3_get_link_ksettings

2017-12-07 Thread alexander . levin
From: Fuyun Liang [ Upstream commit 2b39cabb2a283cea0c3d96d9370575371726164f ] This patch fixes a bug for ethtool's get_link_ksettings(). The advertising for autoneg is always added to advertised_caps whether autoneg is enable or disable. This patch fixes it. Fixes:

[PATCH AUTOSEL for 4.14 032/135] badblocks: fix wrong return value in badblocks_set if badblocks are disabled

2017-12-07 Thread alexander . levin
From: Liu Bo [ Upstream commit 39b4954c0a1556f8f7f1fdcf59a227117fcd8a0b ] MD's rdev_set_badblocks() expects that badblocks_set() returns 1 if badblocks are disabled, otherwise, rdev_set_badblocks() will record superblock changes and return success in that case and md will

<    1   2   3   4   5   6   7   8   9   10   >