[PATCH 09/11] phy: phy-mtk-tphy: remove unused u3phya_ref clock

2019-08-23 Thread Chunfeng Yun
The u3phya_ref clock is already moved into sub-node, and renamed as ref clock, no used anymore now, so remove it, this can avoid confusion when support new platforms Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/phy-mtk-tphy.c | 18 -- 1 file changed, 18 deletions(-) diff

[PATCH 04/11] dt-bindings: phy-mtk-tphy: add a new reference clock

2019-08-23 Thread Chunfeng Yun
Usually the digital and anolog phys use the same reference clock, but on some platforms, they are separated, so add another optional clock to support it. In order to keep the clock names consistent with PHY IP's, use the da_ref for anolog phy and ref clock for digital phy. Signed-off-by: Chunfeng

[PATCH 08/11] phy: phy-mtk-tphy: make the ref clock optional

2019-08-23 Thread Chunfeng Yun
Sometimes the reference clock of USB3 PHY comes from oscillator directly, and no need refer to a fixed-clock in DTS anymore if make it optional. Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/phy-mtk-tphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/med

[PATCH 06/11] phy: phy-mtk-tphy: add a property for disconnect threshold

2019-08-23 Thread Chunfeng Yun
This is used to tune the threshold of disconnect Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/phy-mtk-tphy.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/phy/mediatek/phy-mtk-tphy.c b/drivers/phy/mediatek/phy-mtk-tphy.c index cb2ed3b2506

[PATCH 02/11] dt-bindings: phy-mtk-tphy: make the ref clock optional

2019-08-23 Thread Chunfeng Yun
Make the ref clock optional, then we no need refer to a fixed-clock in DTS anymore when the clock of USB3 PHY comes from oscillator directly Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/phy/phy-mtk-tphy.txt| 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) di

[PATCH 05/11] dt-bindings: phy-mtk-tphy: add the properties about address mapping

2019-08-23 Thread Chunfeng Yun
Add three required properties about the address mapping, including '#address-cells', '#size-cells' and 'ranges' Signed-off-by: Chunfeng Yun --- Documentation/devicetree/bindings/phy/phy-mtk-tphy.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH 01/11] dt-bindings: phy-mtk-tphy: add two optional properties for u2phy

2019-08-23 Thread Chunfeng Yun
Add two optional properties, one for J-K test, another for disconnect threshold, both of them can be used to debug disconnection issues. Signed-off-by: Chunfeng Yun --- Documentation/devicetree/bindings/phy/phy-mtk-tphy.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devi

[PATCH 07/11] phy: phy-mtk-tphy: add a property for internal resistance

2019-08-23 Thread Chunfeng Yun
This is used to tune internal resistance for J-K test Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/phy-mtk-tphy.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/phy/mediatek/phy-mtk-tphy.c b/drivers/phy/mediatek/phy-mtk-tphy.c index 5afe336

[PATCH 10/11] phy: phy-mtk-tphy: add a new reference clock

2019-08-23 Thread Chunfeng Yun
Usually the digital and anolog phys use the same reference clock, but some platforms have two separate reference clocks for each of them, so add another optional clock to support them. In order to keep the clock names consistent with PHY IP's, change the da_ref for anolog phy and ref clock for digi

[PATCH 03/11] dt-bindings: phy-mtk-tphy: remove unused u3phya_ref clock

2019-08-23 Thread Chunfeng Yun
The u3phya_ref clock is already moved into sub-node, and renamed as ref clock, no used anymore now, so remove it to avoid confusion Signed-off-by: Chunfeng Yun --- Documentation/devicetree/bindings/phy/phy-mtk-tphy.txt | 4 1 file changed, 4 deletions(-) diff --git a/Documentation/devicetr

[PATCH 11/11] arm64: dts: mt2712: use non-empty ranges for usb-phy

2019-08-23 Thread Chunfeng Yun
Use non-empty ranges for usb-phy to make the layout of its registers clearer Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 36 +++ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/a

[RESEND PATCH v2 11/14] arm64: dts: meson-g12a-x96-max: fix compatible

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-g12a-x96-max.dt.yaml: /: compatible: ['amediatech,x96-max', 'amlogic,u200', 'amlogic,g12a'] is not valid under any of the given schemas Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g

[RESEND PATCH v2 05/14] arm64: dts: meson-gx: fix watchdog compatible

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-nanopi-k2.dt.yaml: watchdog@98d0: compatible:0: 'amlogic,meson-gx-wdt' is not one of ['amlogic,meson-gxbb-wdt'] meson-gxl-s805x-libretech-ac.dt.yaml: watchdog@98d0: compatible:0: 'amlogic,meson-gx-wdt' is not one of ['amlogic,meson-gxbb

[RESEND PATCH v2 13/14] arm64: dts: meson-gxbb-p201: fix snps, reset-delays-us format

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-p201.dt.yaml: ethernet@c941: snps,reset-delays-us: [[0, 1, 100]] is too short Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxbb-p201.dts | 2 +- 1 file changed, 1 in

[RESEND PATCH v2 10/14] arm64: dts: meson-g12a: fix reset controller compatible

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-g12a-u200.dt.yaml: reset-controller@1004: compatible:0: 'amlogic,meson-g12a-reset' is not one of ['amlogic,meson8b-reset', 'amlogic,meson-gxbb-reset', 'amlogic,meson-axg-reset'] meson-g12a-sei510.dt.yaml: reset-controller@1004: compatible:0:

[RESEND PATCH v2 08/14] arm64: dts: meson-gxl: fix internal phy compatible

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxl-s805x-libretech-ac.dt.yaml: ethernet-phy@8: compatible: ['ethernet-phy-id0181.4400', 'ethernet-phy-ieee802.3-c22'] is not valid under any of the given schemas Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- arch/arm64

[RESEND PATCH v2 09/14] arm64: dts: meson-axg: fix MHU compatible

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-axg-s400.dt.yaml: mailbox@ff63c404: compatible:0: 'amlogic,meson-gx-mhu' is not one of ['amlogic,meson-gxbb-mhu'] Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[RESEND PATCH v2 07/14] arm64: dts: meson-gx: fix periphs bus node name

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-nanopi-k2.dt.yaml: periphs@c8834000: $nodename:0: 'periphs@c8834000' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' meson-gxl-s805x-libretech-ac.dt.yaml: periphs@c8834000: $nodename:0: 'periphs@c8834000' does not match '^(bus|soc

[RESEND PATCH v2 14/14] arm64: dts: meson: fix boards regulators states format

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-odroidc2.dt.yaml: gpio-regulator-tf_io: states:0: Additional items are not allowed (180, 1 were unexpected) meson-gxbb-odroidc2.dt.yaml: gpio-regulator-tf_io: states:0: [330, 0, 180, 1] is too long meson-gxbb-nexbox-a95x.dt.

[RESEND PATCH v2 12/14] arm64: dts: meson-gxbb-nanopi-k2: add missing model

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-nanopi-k2.dt.yaml: /: 'model' is a required property Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm6

[RESEND PATCH v2 02/14] arm64: dts: meson-gx: drop the vpu dmc memory cell

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxl-s805x-libretech-ac.dt.yaml: vpu@d010: reg-names: Additional items are not allowed ('dmc' was unexpected) meson-gxl-s805x-libretech-ac.dt.yaml: vpu@d010: reg-names: ['vpu', 'hhi', 'dmc'] is too long The 'dmc' register area was re

[RESEND PATCH v2 01/14] arm64: dts: meson: fix ethernet mac reg format

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-axg-s400.dt.yaml: soc: ethernet@ff3f:reg:0: [0, 4282318848, 0, 65536, 0, 4284695872, 0, 8] is too long meson-axg-s400.dt.yaml: ethernet@ff3f: reg: [[0, 4282318848, 0, 65536, 0, 4284695872, 0, 8]] is too short meson-g12a-u200.dt.yaml:

[RESEND PATCH v2 06/14] arm64: dts: meson-gx: fix mhu compatible

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-nanopi-k2.dt.yaml: mailbox@404: compatible:0: 'amlogic,meson-gx-mhu' is not one of ['amlogic,meson-gxbb-mhu'] meson-gxl-s805x-libretech-ac.dt.yaml: mailbox@404: compatible:0: 'amlogic,meson-gx-mhu' is not one of ['amlogic,meson-gxbb-mhu

[RESEND PATCH v2 00/14] arm64: dts: meson: fixes following YAML bindings schemas conversion

2019-08-23 Thread Neil Armstrong
This is the first set of DT fixes following the first YAML bindings conversion at [1], [2] and [3]. After this set of fixes, the remaining errors are : meson-axg-s400.dt.yaml: sound: 'clocks' is a dependency of 'assigned-clocks' meson-g12a-sei510.dt.yaml: sound: 'clocks' is a dependency of 'assign

[RESEND PATCH v2 04/14] arm64: dts: meson-gx: fix spifc compatible

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxl-s805x-libretech-ac.dt.yaml: spi@8c80: compatible:0: 'amlogic,meson-gx-spifc' is not one of ['amlogic,meson6-spifc', 'amlogic,meson-gxbb-spifc'] Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/am

[RESEND PATCH v2 03/14] arm64: dts: meson-gx: fix reset controller compatible

2019-08-23 Thread Neil Armstrong
This fixes the following DT schemas check errors: meson-gxbb-nanopi-k2.dt.yaml: reset-controller@4404: compatible:0: 'amlogic,meson-gx-reset' is not one of ['amlogic,meson8b-reset', 'amlogic,meson-gxbb-reset', 'amlogic,meson-axg-reset'] Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenst

Re: [PATCH -next] phy: tegra: Use PTR_ERR_OR_ZERO in tegra_p2u_probe()

2019-08-23 Thread Vidya Sagar
On 8/22/2019 12:04 PM, YueHaibing wrote: Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: YueHaibing --- drivers/phy/tegra/phy-tegra194-p2u.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/phy/tegra/phy-tegra194-p2u.c b/drivers/phy/te

[PATCH net-next v2 0/2] Save EEE

2019-08-23 Thread Hayes Wang
v2: Adjust patch #1. The EEE has been disabled in the beginning of r8153_hw_phy_cfg() and r8153b_hw_phy_cfg(), so only check if it is necessary to enable EEE. Add the patch #2 for the helper function. v1: Saving the settings of EEE to avoid they become the default settings after reset_resume().

[PATCH net-next v2 1/2] r8152: saving the settings of EEE

2019-08-23 Thread Hayes Wang
Saving the settings of EEE to avoid they become the default settings after reset_resume(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 80 + 1 file changed, 50 insertions(+), 30 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/u

[PATCH net-next v2 2/2] r8152: add a helper function about setting EEE

2019-08-23 Thread Hayes Wang
Add a helper funtcion "rtl_eee_enable" for setting EEE. Besides, I move r8153_eee_en() and r8153b_eee_en(). And, I remove r8152b_enable_eee(), r8153_set_eee(), and r8153b_set_eee(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 166 +++- 1 file chang

Re: [PATCH] PCI: Add missing link delays required by the PCIe spec

2019-08-23 Thread Mika Westerberg
On Thu, Aug 22, 2019 at 08:29:09PM +0200, Matthias Andree wrote: > Am 21.08.19 um 14:45 schrieb Mika Westerberg: > > Hi all, > > > > As the changelog says this is reworked version that tries to avoid reported > > issues while at the same time fix the missing delays so we can get ICL > > systems and

[RFC 0/3] New idle device-tree format and support for versioned stop state

2019-08-23 Thread Abhishek Goel
Background -- Previously if a older kernel runs on a newer firmware, it may enable all available states irrespective of its capability of handling it. Consider a case that some stop state has a bug, we end up disabling all the stop states. This patch introduces selective control to

[RFC 3/3] cpuidle/powernv : Add flags to identify stop state type

2019-08-23 Thread Abhishek Goel
Removed threshold latency which was being used to decide if a state is cpuidle type or not. This decision can be taken using flags, as this information has been encapsulated in the state->flags and being read from idle device-tree. Signed-off-by: Abhishek Goel --- arch/powerpc/include/asm/opal-a

[RFC 2/3] cpuidle/powernv: Add support for versioned stop states

2019-08-23 Thread Abhishek Goel
New device tree format adds a compatible flag which has version corresponding to every state, so that only kernel which has the capability to handle the version of stop state will enable it. Drawback of the array based dt node is that versioning of idle states is not possible. Older kernel will st

[RFC 1/3] cpuidle/powernv : Pass state pointer instead of values to stop loop

2019-08-23 Thread Abhishek Goel
Instead of passing psscr_val and psscr_mask, we will pass state pointer to stop loop. This will help to figure out the method to enter/exit idle state. Removed psscr_mask and psscr_val from driver idle code. Same has also been done in platform idle code. Also, added some cleanups and debugging info

Re: [PATCH v2 16/20] ARM: mmp: add SMP support

2019-08-23 Thread Lubomir Rintel
On Thu, 2019-08-22 at 09:36 -0700, Florian Fainelli wrote: > On 8/22/19 2:26 AM, Lubomir Rintel wrote: > > Used to bring up the second core on MMP3. > > > > Signed-off-by: Lubomir Rintel > > > > --- > > Changes since v1: > > - Wrap SW_BRANCH_VIRT_ADDR with __pa_symbol() > > > > arch/arm/mach-m

[PATCH v7 0/7] iommu: Bounce page for untrusted devices

2019-08-23 Thread Lu Baolu
The Thunderbolt vulnerabilities are public and have a nice name as Thunderclap [1] [3] nowadays. This patch series aims to mitigate those concerns. An external PCI device is a PCI peripheral device connected to the system through an external bus, such as Thunderbolt. What makes it different is tha

Re: [PATCH 6/9] dm crypt: support diskcipher

2019-08-23 Thread boojin.kim
On Fri, Aug 23, 2019 at 01:28:37PM +0900, Herbert Xu wrote: > > No. If you're after total offload then the crypto API is not for > you. What we can support is the offloading of encryption/decryption > over many sectors. > > Cheers, FMP doesn't use encrypt/decrypt of crypto API because it doesn't

[PATCH v7 2/7] PCI: Add dev_is_untrusted helper

2019-08-23 Thread Lu Baolu
There are several places in the kernel where it is necessary to check whether a device is a pci untrusted device. Add a helper to simplify the callers. Signed-off-by: Lu Baolu Reviewed-by: Christoph Hellwig --- include/linux/pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/li

[PATCH v7 1/7] iommu/vt-d: Don't switch off swiotlb if use direct dma

2019-08-23 Thread Lu Baolu
The direct dma implementation depends on swiotlb. Hence, don't switch off swiotlb since direct dma interfaces are used in this driver. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Signed-off-by: Lu Baolu Reviewed-by: Christoph Hellwig --- drivers/iommu/Kconfig | 1 + drivers/iommu/intel-

[PATCH v7 3/7] swiotlb: Split size parameter to map/unmap APIs

2019-08-23 Thread Lu Baolu
This splits the size parameter to swiotlb_tbl_map_single() and swiotlb_tbl_unmap_single() into an alloc_size and a mapping_size parameter, where the latter one is rounded up to the iommu page size. Suggested-by: Christoph Hellwig Signed-off-by: Lu Baolu Reviewed-by: Christoph Hellwig --- drive

[PATCH v7 4/7] swiotlb: Zero out bounce buffer for untrusted device

2019-08-23 Thread Lu Baolu
This is necessary to avoid exposing valid kernel data to any malicious device. Suggested-by: Christoph Hellwig Signed-off-by: Lu Baolu --- kernel/dma/swiotlb.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index

[PATCH net-next v3 2/2] r8152: add a helper function about setting EEE

2019-08-23 Thread Hayes Wang
Add a helper funtion "rtl_eee_enable" for setting EEE. Besides, I move r8153_eee_en() and r8153b_eee_en(). And, I remove r8152b_enable_eee(), r8153_set_eee(), and r8153b_set_eee(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 166 +++- 1 file change

[PATCH net-next v3 1/2] r8152: saving the settings of EEE

2019-08-23 Thread Hayes Wang
Saving the settings of EEE to avoid they become the default settings after reset_resume(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 80 + 1 file changed, 50 insertions(+), 30 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/u

[PATCH net-next v3 0/2] r8152: save EEE

2019-08-23 Thread Hayes Wang
v3: For patch #2, fix the mistake caused by copying and pasting. v2: Adjust patch #1. The EEE has been disabled in the beginning of r8153_hw_phy_cfg() and r8153b_hw_phy_cfg(), so only check if it is necessary to enable EEE. Add the patch #2 for the helper function. v1: Saving the settings of EEE

[PATCH v7 6/7] iommu/vt-d: Add trace events for device dma map/unmap

2019-08-23 Thread Lu Baolu
This adds trace support for the Intel IOMMU driver. It also declares some events which could be used to trace the events when an IOVA is being mapped or unmapped in a domain. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Signed-off-by: Mika Westerberg Signed-off-by: Lu Baolu Reviewed-by: Steven

[PATCH v7 5/7] iommu/vt-d: Check whether device requires bounce buffer

2019-08-23 Thread Lu Baolu
This adds a helper to check whether a device needs to use bounce buffer. It also provides a boot time option to disable the bounce buffer. Users can use this to prevent the iommu driver from using the bounce buffer for performance gain. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Signed-off-by:

[PATCH v7 7/7] iommu/vt-d: Use bounce buffer for untrusted devices

2019-08-23 Thread Lu Baolu
The Intel VT-d hardware uses paging for DMA remapping. The minimum mapped window is a page size. The device drivers may map buffers not filling the whole IOMMU window. This allows the device to access to possibly unrelated memory and a malicious device could exploit this to perform DMA attacks. To

Re: [PATCH v2 00/20] Initial support for Marvell MMP3 SoC

2019-08-23 Thread Lubomir Rintel
On Thu, 2019-08-22 at 11:31 +0100, Marc Zyngier wrote: > On 22/08/2019 10:26, Lubomir Rintel wrote: > > Hi, > > > > this is a second spin of a patch set that adds support for the Marvell > > MMP3 processor. MMP3 is used in OLPC XO-4 laptops, Panasonic Toughpad > > FZ-A1 tablet and Dell Wyse 3020

Re: [PATCH v2 0/3] PCI: Add PCI_ERROR_RESPONSE, check for errors

2019-08-23 Thread Mika Westerberg
On Thu, Aug 22, 2019 at 03:05:48PM -0500, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Reads from a PCI device may fail if the device has been turned off (put > into D3cold), removed, or if some other error occurs. The PCI host bridge > typically fabricates ~0 data to complete the CPU's read.

Re: [PATCH] sched/fair: Add missing unthrottle_cfs_rq()

2019-08-23 Thread Liangyan
Resend. Sorry that my previous email has format issue. On 19/8/23 上午2:48, bseg...@google.com wrote: Valentin Schneider writes: Turns out a cfs_rq->runtime_remaining can become positive in assign_cfs_rq_runtime(), but this codepath has no call to unthrottle_cfs_rq(). This can leave us in a s

Re: [PATCH V2] cpustat: print watchdog time and statistics of soft and hard interrupts in soft lockup scenes

2019-08-23 Thread c00423981
On 2019/8/23 0:14, Peter Zijlstra wrote: > On Thu, Aug 22, 2019 at 07:58:37PM +0800, c00423981 wrote: > >> V1->V2 >> - fix the broken interfaces: get_idle_time and get_iowait_time > >> +else if (index == CPUTIME_IOWAIT) >> +time = get_iowait_time(kcs, cpu); > > I'm confused; i

Re: [PATCH v2 4/5] dt-bindings: soundwire: add bindings for Qcom controller

2019-08-23 Thread Vinod Koul
On 13-08-19, 09:35, Srinivas Kandagatla wrote: > This patch adds bindings for Qualcomm soundwire controller. > > Qualcomm SoundWire Master controller is present in most Qualcomm SoCs > either integrated as part of WCD audio codecs via slimbus or > as part of SOC I/O. Rob.. ? > > Signed-off-by:

[PATCH net-next v4 2/2] r8152: add a helper function about setting EEE

2019-08-23 Thread Hayes Wang
Add a helper function "rtl_eee_enable" for setting EEE. Besides, I move r8153_eee_en() and r8153b_eee_en(). And, I remove r8152b_enable_eee(), r8153_set_eee(), and r8153b_set_eee(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 168 ++-- 1 file chang

[PATCH net-next v4 0/2] r8152: save EEE

2019-08-23 Thread Hayes Wang
v4: For patch #2, remove redundant calling of "ocp_reg_write(tp, OCP_EEE_ADV, 0)". v3: For patch #2, fix the mistake caused by copying and pasting. v2: Adjust patch #1. The EEE has been disabled in the beginning of r8153_hw_phy_cfg() and r8153b_hw_phy_cfg(), so only check if it is necessary to en

[PATCH net-next v4 1/2] r8152: saving the settings of EEE

2019-08-23 Thread Hayes Wang
Saving the settings of EEE to avoid they become the default settings after reset_resume(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 80 + 1 file changed, 50 insertions(+), 30 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/u

Re: [alsa-devel] [RFC PATCH 31/40] soundwire: intel: move shutdown() callback and don't export symbol

2019-08-23 Thread Vinod Koul
On 14-08-19, 14:31, Pierre-Louis Bossart wrote: > > > > > > > +void intel_shutdown(struct snd_pcm_substream *substream, > > > > > +    struct snd_soc_dai *dai) > > > > > +{ > > > > > +    struct sdw_cdns_dma_data *dma; > > > > > + > > > > > +    dma = snd_soc_dai_get_dma_data(dai, substre

Re: [PATCH v1 1/3] gpio: mpc8xxx: add ls1088a platform gpio node DT binding description

2019-08-23 Thread Linus Walleij
On Thu, Aug 8, 2019 at 12:26 PM Hui Song wrote: > From: Song Hui > > ls1088a and ls1028a platform share common gpio node. > > Signed-off-by: Song Hui Patch applied with Rob's ACK! Yours, Linus Walleij

Re: [PATCH v1 3/3] gpio: mpc8xxx: add ls1088a platform special function

2019-08-23 Thread Linus Walleij
On Thu, Aug 8, 2019 at 12:26 PM Hui Song wrote: > From: Song Hui > > ls1028a and ls1088a platform share common special function. > The gpio hardware what they use is the same version. > > Signed-off-by: Song Hui Patch applied. Yours, Linus Walleij

Re: [RESEND PATCH v2 2/2] usb: xhci-mtk: add an optional xhci_ck clock

2019-08-23 Thread Matthias Brugger
On 23/08/2019 08:40, Chunfeng Yun wrote: > Some SoCs may have an optional clock xhci_ck (125M or 200M), it > usually uses the same PLL as sys_ck, so support it. > > Signed-off-by: Chunfeng Yun Reviewed-by: Matthias Brugger > --- > v2 no changes > --- > drivers/usb/host/xhci-mtk.c | 13

Re: [PATCH 5/7] ARM: xscale: fix multi-cpu compilation

2019-08-23 Thread Linus Walleij
On Fri, Aug 9, 2019 at 6:33 PM Arnd Bergmann wrote: > Building a combined ARMv4+XScale kernel produces these > and other build failures: > > /tmp/copypage-xscale-3aa821.s: Assembler messages: > /tmp/copypage-xscale-3aa821.s:167: Error: selected processor does not support > `pld [r7,#0]' in ARM m

Re: [PATCH v8 0/5] media: Allwinner A10 CSI support

2019-08-23 Thread Maxime Ripard
On Thu, Aug 22, 2019 at 10:21:11AM +0200, Maxime Ripard wrote: > From: Maxime Ripard > > Hi, > > Here is a series introducing the support for the A10 (and SoCs of the same > generation) CMOS Sensor Interface (called CSI, not to be confused with > MIPI-CSI, which isn't support by that IP). > > That

[PATCH] brcmfmac: replace strncpy() by strscpy()

2019-08-23 Thread Xulin Sun
The strncpy() may truncate the copied string, replace it by the safer strscpy(). To avoid below compile warning with gcc 8.2: drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:In function 'brcmf_vndr_ie': drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4227:2: warning: 'str

Re: [PATCH v1 0/5] Improve MediaTek pinctrl v2 and make backward compatible to smartphone mass production usage

2019-08-23 Thread Linus Walleij
On Tue, Aug 13, 2019 at 10:53 AM Light Hsieh wrote: > This patch improves MediaTek pinctrl v2 and makes backward compatible to > current smartphone mass production usage by: > 1.Check gpio pin number and use binary search in control address lookup > 2.Supporting driving setting without mapping cu

Re: [PATCH v5 15/20] RISC-V: KVM: Add timer functionality

2019-08-23 Thread Alexander Graf
On 22.08.19 10:46, Anup Patel wrote: From: Atish Patra The RISC-V hypervisor specification doesn't have any virtual timer feature. Due to this, the guest VCPU timer will be programmed via SBI calls. The host will use a separate hrtimer event for each guest VCPU to provide timer functionality.

Re: [PATCH v1 5/5] pinctrl: mediatek: Add support for pin configuration dump via sysfs.

2019-08-23 Thread Linus Walleij
Hi Light, thanks for your patch! On Tue, Aug 13, 2019 at 10:53 AM Light Hsieh wrote: > From: Light Hsieh > > Add support for pin configuration dump via catting > /sys/kernel/debug/pinctrl/$platform_dependent_path/pinconf-pins. This is debugfs so rename the subject "*debugfs" > pinctrl framew

Re: [PATCH] MAINTAINERS: Remove FMC subsystem

2019-08-23 Thread Linus Walleij
On Tue, Aug 13, 2019 at 11:20 PM Denis Efremov wrote: > On 13.08.2019 11:54, Linus Walleij wrote: > > Do you need help to merge the patch? I can take it in the > > GPIO tree since the subsystem was removed there. > > Yes, please. I kindly ask you to take this patch in your tree. OK patch merged

[PATCH next v10 10/11] usb: common: add USB GPIO based connection detection driver

2019-08-23 Thread Chunfeng Yun
Due to the requirement of usb-connector.txt binding, the old way using extcon to support USB Dual-Role switch is now deprecated when use Type-B connector. This patch introduces a USB GPIO based connection detection driver, used to support Type-B connector which typically uses an input GPIO to detec

[PATCH next v10 04/11] dt-bindings: usb: mtu3: add properties about USB Role Switch

2019-08-23 Thread Chunfeng Yun
Now the USB Role Switch is supported, so add properties about it, and modify some description related. Signed-off-by: Chunfeng Yun Reviewed-by: Rob Herring --- v6~v10 no changes v5 changes: 1. modify decription about extcon and vbus-supply properties 2. make this patch depend on [1] [1]: [v

[PATCH next v10 07/11] usb: roles: Add fwnode_usb_role_switch_get() function

2019-08-23 Thread Chunfeng Yun
From: Heikki Krogerus The fwnode_usb_role_switch_get() function is exactly the same as usb_role_switch_get(), except that it takes struct fwnode_handle as parameter instead of struct device. Signed-off-by: Heikki Krogerus Signed-off-by: Chunfeng Yun Tested-by: Biju Das --- v10: revert chang

[PATCH next v10 11/11] usb: mtu3: register a USB Role Switch for dual role mode

2019-08-23 Thread Chunfeng Yun
Because extcon is not allowed for new bindings, and the dual role switch is supported by USB Role Switch, especially for Type-C drivers, so register a USB Role Switch to support the new way Signed-off-by: Chunfeng Yun --- v5~v10 no changes v4 changes: 1. assign fwnode member of usb_role_switch

[PATCH next v10 09/11] usb: common: create Kconfig file

2019-08-23 Thread Chunfeng Yun
Create Kconfig file for USB common core, and move USB_LED_TRIG and USB_ULPI_BUS configs into the new file from the parent Kconfig, it will help to add new configs later. Signed-off-by: Chunfeng Yun --- v9~v10: no changes v8: new patch --- drivers/usb/Kconfig| 35 +-

[PATCH next v10 00/11] add USB GPIO based connection detection driver

2019-08-23 Thread Chunfeng Yun
Because the USB Connector is introduced and the requirement of usb-connector.txt binding, the old way using extcon to support USB Dual-Role switch is now deprecated, meanwhile there is no available common driver when use Type-B connector, typically using an input GPIO to detect USB ID pin. This pat

[PATCH next v10 02/11] dt-bindings: connector: add optional properties for Type-B

2019-08-23 Thread Chunfeng Yun
Add id-gpios, vbus-gpios, vbus-supply and pinctrl properties for usb-b-connector Signed-off-by: Chunfeng Yun Reviewed-by: Rob Herring --- v6~v10 no changes v5 changes: 1. add reviewed by Rob v4 no changes v3 changes: 1. add GPIO direction, and use fixed-regulator for GPIO controlled VBU

[PATCH next v10 06/11] device connection: Add fwnode_connection_find_match()

2019-08-23 Thread Chunfeng Yun
From: Heikki Krogerus The fwnode_connection_find_match() function is exactly the same as device_connection_find_match(), except it takes struct fwnode_handle as parameter instead of struct device. That allows locating device connections before the device entries have been created. Signed-off-by:

[PATCH next v10 01/11] dt-binding: usb: add usb-role-switch property

2019-08-23 Thread Chunfeng Yun
Add a property usb-role-switch to tell the driver that use USB Role Switch framework to handle the role switch, it's useful when the driver has already supported other ways, such as extcon framework etc. Cc: Biju Das Cc: Yu Chen Signed-off-by: Chunfeng Yun Reviewed-by: Rob Herring Reviewed-by:

[PATCH next v10 08/11] usb: roles: get usb-role-switch from parent

2019-08-23 Thread Chunfeng Yun
when the USB host controller is the parent of the connector, usually type-B, sometimes don't need the graph, so we should check whether it's parent registers usb-role-switch or not firstly, and get it if exists. Suggested-by: Heikki Krogerus Signed-off-by: Chunfeng Yun --- v10: no changes v9:

[PATCH next v10 03/11] dt-bindings: usb: add binding for USB GPIO based connection detection driver

2019-08-23 Thread Chunfeng Yun
It's used to support dual role switch via GPIO when use Type-B receptacle, typically the USB ID pin is connected to an input GPIO, and also used to enable/disable device when the USB Vbus pin is connected to an input GPIO. Signed-off-by: Chunfeng Yun --- v9~v10 no changes v8 changes: 1. rename

[PATCH next v10 05/11] usb: roles: Introduce stubs for the exiting functions in role.h

2019-08-23 Thread Chunfeng Yun
From: Yu Chen This patch adds stubs for the exiting functions while CONFIG_USB_ROLE_SWITCH does not enabled. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: Hans de Goede Cc: Andy Shevchenko Cc: John Stultz Reviewed-by: Heikki Krogerus Signed-off-by: Yu Chen Signed-off-by: Chunfeng Yun --

Re: [PATCH 1/3] dt-bindings: pinctrl: qcom-pmic-gpio: Add pm8150 support

2019-08-23 Thread Linus Walleij
On Wed, Aug 14, 2019 at 2:36 PM Vinod Koul wrote: > Add support for the PM8150 GPIO support to the Qualcomm PMIC GPIO > binding. > > Signed-off-by: Vinod Koul Patch applied as lightweight and uncontroversial. Yours, Linus Walleij

Re: [PATCH 2/3] dt-bindings: pinctrl: qcom-pmic-gpio: Add pm8150b support

2019-08-23 Thread Linus Walleij
On Wed, Aug 14, 2019 at 2:36 PM Vinod Koul wrote: > Add support for the PM8150b GPIO support to the Qualcomm PMIC GPIO > binding. > > Signed-off-by: Vinod Koul Patch applied. Yours, Linus Walleij

Re: [PATCH] x86/retpoline: Don't clobber RFLAGS during CALL_NOSPEC on i386

2019-08-23 Thread Peter Zijlstra
On Thu, Aug 22, 2019 at 02:11:22PM -0700, Sean Christopherson wrote: > Use 'lea' instead of 'add' when adjusting %rsp in CALL_NOSPEC so as to > avoid clobbering flags. > > KVM's emulator makes indirect calls into a jump table of sorts, where > the destination of the CALL_NOSPEC is a small blob of

Re: [PATCH 3/3] dt-bindings: pinctrl: qcom-pmic-gpio: Add pm8150l support

2019-08-23 Thread Linus Walleij
On Wed, Aug 14, 2019 at 2:36 PM Vinod Koul wrote: > Add support for the PM8150l GPIO support to the Qualcomm PMIC GPIO > binding. > > Signed-off-by: Vinod Koul Patch applied. Yours, Linus Walleij

Re: [PATCH 4.9 000/103] 4.9.190-stable review

2019-08-23 Thread Naresh Kamboju
On Thu, 22 Aug 2019 at 22:53, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.190 release. > There are 103 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 know. > > Re

Re: [PATCH 4.14 00/71] 4.14.140-stable review

2019-08-23 Thread Naresh Kamboju
On Thu, 22 Aug 2019 at 22:55, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.140 release. > There are 71 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 know. > > Re

Re: [PATCH v5 18/20] RISC-V: KVM: Add SBI v0.1 support

2019-08-23 Thread Alexander Graf
On 22.08.19 10:46, Anup Patel wrote: From: Atish Patra The KVM host kernel running in HS-mode needs to handle SBI calls coming from guest kernel running in VS-mode. This patch adds SBI v0.1 support in KVM RISC-V. All the SBI calls are implemented correctly except remote tlb flushes. For remote

Re: [PATCH] perf/x86/intel: restrict period on Nehalem

2019-08-23 Thread Peter Zijlstra
On Mon, Aug 19, 2019 at 07:13:31PM -0400, Josh Hunt wrote: > We see our Nehalem machines reporting 'perfevents: irq loop stuck!' in > some cases when using perf: > > perfevents: irq loop stuck! > I found that a period limit of 32 was the lowest I could set it to without > the problem reoccurring.

Re: [PATCH 4.19 00/85] 4.19.68-stable review

2019-08-23 Thread Naresh Kamboju
On Thu, 22 Aug 2019 at 22:57, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.68 release. > There are 85 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 know. > > Res

Re: [PATCH v5 00/20] KVM RISC-V Support

2019-08-23 Thread Alexander Graf
On 22.08.19 10:42, Anup Patel wrote: This series adds initial KVM RISC-V support. Currently, we are able to boot RISC-V 64bit Linux Guests with multiple VCPUs. Few key aspects of KVM RISC-V added by this series are: 1. Minimal possible KVM world-switch which touches only GPRs and few CSRs. 2. Fu

Re: [PATCH 5.2 000/135] 5.2.10-stable review

2019-08-23 Thread Naresh Kamboju
On Thu, 22 Aug 2019 at 22:38, Sasha Levin wrote: > > > This is the start of the stable review cycle for the 5.2.10 release. > There are 135 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 know. > > Response

Re: [PATCH v2] i2c: mediatek: disable zero-length transfers for mt8183

2019-08-23 Thread Qii Wang
On Thu, 2019-08-22 at 17:45 +0800, Hsin-Yi Wang wrote: > When doing i2cdetect quick write mode, we would get transfer > error ENOMEM, and i2cdetect shows there's no device at the address. > Quoting from mt8183 datasheet, the number of transfers to be > transferred in one transaction should be set t

Re: [PATCH 2/2 v2] mm/zsmalloc.c: Fix race condition in zs_destroy_pool

2019-08-23 Thread Henry Burns
On Thu, Aug 22, 2019 at 7:23 PM Andrew Morton wrote: > > On Tue, 20 Aug 2019 11:59:39 +0900 Sergey Senozhatsky > wrote: > > > On (08/09/19 11:17), Henry Burns wrote: > > > In zs_destroy_pool() we call flush_work(&pool->free_work). However, we > > > have no guarantee that migration isn't happenin

Re: [PATCH v2 -next] soundwire: Fix -Wunused-function warning

2019-08-23 Thread Yuehaibing
On 2019/8/23 14:44, Vinod Koul wrote: > On 22-08-19, 22:54, YueHaibing wrote: >> If CONFIG_ACPI is not set, gcc warning this: >> >> drivers/soundwire/slave.c:16:12: warning: >> 'sdw_slave_add' defined but not used [-Wunused-function] >> >> Now all code in slave.c is only used on ACPI enabled, >> s

Re: [PATCH 00/11 v3] Cleanup IOMMU passthrough setting (and disable IOMMU Passthrough when SME is active)

2019-08-23 Thread Joerg Roedel
On Mon, Aug 19, 2019 at 03:22:45PM +0200, Joerg Roedel wrote: > Joerg Roedel (11): > iommu: Remember when default domain type was set on kernel command line > iommu: Add helpers to set/get default domain type > iommu: Use Functions to set default domain type in > iommu_set_def_domain_type()

Re: [PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-23 Thread Jiri Pirko
Thu, Aug 22, 2019 at 03:33:30PM CEST, pa...@mellanox.com wrote: > > >> -Original Message- >> From: Jiri Pirko >> Sent: Thursday, August 22, 2019 5:50 PM >> To: Parav Pandit >> Cc: Alex Williamson ; Jiri Pirko >> ; David S . Miller ; Kirti >> Wankhede ; Cornelia Huck ; >> k...@vger.kernel.

Re: [RFC PATCH 2/2] livepatch: Clear relocation targets on a module removal

2019-08-23 Thread Petr Mladek
On Thu 2019-08-22 17:36:49, Josh Poimboeuf wrote: > On Fri, Aug 16, 2019 at 11:46:08AM +0200, Petr Mladek wrote: > > On Wed 2019-08-14 10:12:44, Josh Poimboeuf wrote: > > > On Wed, Aug 14, 2019 at 01:06:09PM +0200, Miroslav Benes wrote: > > > > > Really, we should be going in the opposite direction

Re: [PATCH 0/5] Further sanitize INTEL_FAM6 naming

2019-08-23 Thread Peter Zijlstra
On Thu, Aug 22, 2019 at 01:53:12PM -0700, Luck, Tony wrote: > On Thu, Aug 22, 2019 at 12:23:06PM +0200, Peter Zijlstra wrote: > > Lots of variation has crept in; time to collapse the lot again. > > Conceptually good. But I applied the series on top of tip/master > and got a build error: > > Loo

[PATCH v2 3/4] drm/vmwgfx: Update the backdoor call with support for new instructions

2019-08-23 Thread VMware
From: Thomas Hellstrom Use the definition provided by include/asm/vmware.h Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Cc: Signed-off-by: Thomas Hellstrom Reviewed-by: Doug Covelli --- drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 21 + drive

[PATCH 2/3] amlogic: arm: add Amlogic SM1 based Khadas VIM3 variant bindings

2019-08-23 Thread Neil Armstrong
The Khadas VIM3 is also available with the Pin-to-pin compatible Amlogic SM1 SoC in the S905D3 variant package. Change the description to match the S905X3/D3/Y3 variants like the G12A description, and add the vim3 compatible. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/a

[PATCH v2 2/4] x86/vmware: Add a header file for hypercall definitions

2019-08-23 Thread VMware
From: Thomas Hellstrom The new header is intended to be used by drivers using the backdoor. Follow the kvm example using alternatives self-patching to choose between vmcall, vmmcall and io instructions. Also define two new CPU feature flags to indicate hypervisor support for vmcall- and vmmcall

  1   2   3   4   5   6   7   8   9   >