Re: [v3, 1/2] hwmon: (it87) Split out chip registers setting code on probe path

2017-08-09 Thread Maciej S. Szmigiero
On 09.08.2017 06:27, Guenter Roeck wrote: On Wed, Aug 02, 2017 at 01:06:23AM +0200, Maciej S. Szmigiero wrote: This commit splits out chip registers setting code on probe path to separate functions so they can be reused for setting the device properly again when system resumes from suspend. Whi

[PATCH v3 2/2] Input: axp20x-pek: add support for AXP221 PEK

2017-08-09 Thread Quentin Schulz
The AXP221 has different values for startup time bits from the AXP20X. Signed-off-by: Quentin Schulz Reviewed-by: Chen-Yu Tsai --- drivers/input/misc/axp20x-pek.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-p

[PATCH v3 1/2] Input: axp20x-pek: use driver_data of platform_device_id instead of extended attributes

2017-08-09 Thread Quentin Schulz
To prepare an upcoming patch adding support for another PMIC that has different startup and shutdown time, use driver_data of platform_device_id instead of a fixed extended device attribute. By doing so, we also remove a lot of nested structures that aren't useful. With this patch, a new PMIC can

[PATCH v3 0/2] add support for AXP22X/AXP288/AXP8XX PEK

2017-08-09 Thread Quentin Schulz
According to their datasheets, the AXP221, AXP223, AXP288, AXP803, AXP809 and AXP813 PEK have different values for startup time bits from the AXP20X PEK (which are currently used for all the aforementioned PMICs). This patch series adds support for platform_device_id to axp20x-pek driver to suppor

[PATCH v4 1/2] hwmon: (it87) Split out chip registers setting code on probe path

2017-08-09 Thread Maciej S. Szmigiero
This commit splits out chip registers setting code on probe path to separate functions so they can be reused for setting the device properly again when system resumes from suspend. While we are at it let's also make clear that on IT8720 and IT8782 it's the VCCH5V line that is (possibly) routed to

Re: [PATCH v8 09/14] lockdep: Apply crossrelease to completions

2017-08-09 Thread Peter Zijlstra
On Mon, Aug 07, 2017 at 04:12:56PM +0900, Byungchul Park wrote: > +static inline void wait_for_completion(struct completion *x) > +{ > + complete_acquire(x); > + __wait_for_completion(x); > + complete_release(x); > +} > + > +static inline void wait_for_completion_io(struct completion *x

Re: [PATCH 1/3] autofs - fix AT_NO_AUTOMOUNT not being honored

2017-08-09 Thread Ian Kent
On 09/08/17 16:39, David Howells wrote: > Ian Kent wrote: > >> In order to handle the AT_NO_AUTOMOUNT for both system calls the >> negative dentry case in follow_automount() needs to be changed to >> return ENOENT when the LOOKUP_AUTOMOUNT flag is clear (and the other >> required flags are clear)

[PATCH v4 2/2] hwmon: (it87) Reapply probe path chip registers settings after resume

2017-08-09 Thread Maciej S. Szmigiero
After a suspend / resume cycle we possibly need to reapply chip registers settings that we had set or fixed in a probe path, since they might have been reset to default values or set incorrectly by a BIOS again. Tested on a Gigabyte M720-US3 board, which requires routing internal VCCH5V to in7 (a

Re: [PATCH v4 1/2] x86/unwind: add ORC unwinder

2017-08-09 Thread Juergen Gross
On 09/08/17 11:35, Peter Zijlstra wrote: > On Wed, Aug 09, 2017 at 11:24:07AM +0200, Juergen Gross wrote: >> On 09/08/17 11:16, Peter Zijlstra wrote: >>> On Wed, Aug 09, 2017 at 10:49:43AM +0200, Juergen Gross wrote: > ALTERNATIVE "pushfq; popq %rax", "callq *pv_irq_ops.save_fl", > X86_FEAT

Re: f_hid.c conversion to the new function interface and crash due to race

2017-08-09 Thread Felipe Balbi
Hi, noman pouigt writes: > Hello, > > I am currently using 3.18 linux kernel and getting below return -EKERNELTOOOLD; Sorry, you're on your own. You should ask for support from whoever forces you to use 3.18 kernel. -- balbi signature.asc Description: PGP signature

Re: [PATCH v2 17/18] cpufreq: add support for CPU DVFS based on SCMI message protocol

2017-08-09 Thread Sudeep Holla
On 09/08/17 05:18, Viresh Kumar wrote: > On 04-08-17, 15:31, Sudeep Holla wrote: > > I don't think its the Microsoft exchange server which screwed up tabs and > spaces, but you. > Indeed, copy paste to blame ;) >> diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm >> index

Re: [PATCH v2 0/2] mm,fork,security: introduce MADV_WIPEONFORK

2017-08-09 Thread Kirill A. Shutemov
On Mon, Aug 07, 2017 at 10:59:51AM -0400, Rik van Riel wrote: > On Mon, 2017-08-07 at 15:46 +0200, Michal Hocko wrote: > > On Mon 07-08-17 15:22:57, Michal Hocko wrote: > > > This is an user visible API so make sure you CC linux-api (added) > > > > > > On Sun 06-08-17 10:04:23, Rik van Riel wrote:

Re: [PATCH 3/3] net: rxrpc: Replace time_t type with time64_t type

2017-08-09 Thread Arnd Bergmann
On Wed, Aug 9, 2017 at 11:33 AM, David Howells wrote: > Arnd Bergmann wrote: > >> > @@ -533,8 +536,9 @@ static int rxrpc_preparse_xdr_rxk5(struct >> > key_preparsed_payload *prep, >> > pptoken = &(*pptoken)->next) >> > continue; >> > *pptoken = token; >> > -

[PATCH 0/3] drm/rockchip: lvds: add support Rockchip Soc LVDS

2017-08-09 Thread Sandy Huang
This patches add support Rockchip RK3288 LVDS support, based on patches from Mark yao[0] and Heiko Stuebner[1]. [0]: https://github.com/RockchipOpensourceCommunity/popmetal-kernel-3.14 [1]: http://lists.infradead.org/pipermail/linux-rockchip/2015-April/002830.html Changes: - Update rockchip_lvds_

[PATCH 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-09 Thread Sandy Huang
This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- drivers/gpu/drm/rockchip/Kconfig | 9 + drivers/gpu/drm/rockchip/Makefile| 1 +

[PATCH 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-09 Thread Sandy Huang
This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- .../bindings/display/rockchip/rockchip-lvds.txt| 104 + 1 file changed,

[PATCH 2/3] ARM: dts: Add LVDS info for rk3288

2017-08-09 Thread Sandy Huang
add LVDS info in rk3288.dtsi for LVDS driver This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- arch/arm/boot/dts/rk3288.dtsi | 52 +++ 1 file changed, 52 inser

[PATCH v9 04/12] mfd: rk808: Add RK805 support

2017-08-09 Thread Joseph Chen
From: Elaine Zhang The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clocking Both RK808 and RK805 chips are using a similar register map, so we can reuse the RTC and Clocking functionality.

[PATCH v9 01/12] mfd: rk808: fix up the chip id get failed

2017-08-09 Thread Joseph Chen
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6 deletions(-

[PATCH v9 00/12] rk808: Add RK805 support

2017-08-09 Thread Joseph Chen
change in v9: PATCH V9 1/12: (1) fix spelling issue: s/Chip/chip/ (2) apply tag: Acked-for-MFD-by: Lee Jones PATCH V9 2/12: apply tag: Acked-for-MFD-by: Lee Jones PATCH V9 3/12: None PATCH V9 4/12: apply tag: Acked-for-MFD-by: Lee Jones PATCH V9 5/12: None PATCH V9 6/12: None PATC

[PATCH v9 02/12] mfd: rk808: add rk805 regs addr and ID

2017-08-09 Thread Joseph Chen
From: Elaine Zhang Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- include/linux/mfd/rk808.h | 120 ++ 1 file changed, 120 insertions(+) diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index

[PATCH v5 1/2] hwmon: (it87) Split out chip registers setting code on probe path

2017-08-09 Thread Maciej S. Szmigiero
This commit splits out chip registers setting code on probe path to separate functions so they can be reused for setting the device properly again when system resumes from suspend. While we are at it let's also make clear that on IT8720 and IT8782 it's the VCCH5V line that is (possibly) routed to

[PATCH v9 03/12] regulator: rk808: Add regulator driver for RK805

2017-08-09 Thread Joseph Chen
From: Elaine Zhang Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Mark Brown

[PATCH v9 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808

2017-08-09 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the clk driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertio

Re: [PATCH v2 2/5] usb: xhci: Fix potential memory leak in xhci_disable_slot()

2017-08-09 Thread Mathias Nyman
On 27.07.2017 05:21, Lu Baolu wrote: xhci_disable_slot() allows the invoker to pass a command pointer as paramenter. Otherwise, it will allocate one. This will cause memory leak when a command structure was allocated inside of this function while queuing command trb fails. Another problem comes u

Re: [PATCH v2 17/18] cpufreq: add support for CPU DVFS based on SCMI message protocol

2017-08-09 Thread Viresh Kumar
On 09-08-17, 10:59, Sudeep Holla wrote: > On 09/08/17 05:18, Viresh Kumar wrote: > > This stores the same handle pointer which is stored in the global variable > > below. Right? Why keep a local variable here at all ? > > Yes, you are right. Initially, started with just private pointers and > the

[PATCH v9 07/12] mfd: dt-bindings: Add RK805 device tree bindings document

2017-08-09 Thread Joseph Chen
From: Elaine Zhang Add device tree bindings documentation for Rockchip's RK805 PMIC. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/rk808.txt | 22 +- 1 file changed, 21 i

[PATCH v9 08/12] pinctrl: Add pinctrl driver for the RK805 PMIC

2017-08-09 Thread Joseph Chen
RK805 is one of Rockchip PMICs family, it has 2 output only GPIOs. This driver is also designed for other Rockchip PMICs to expend. Different PMIC maybe have different pin features, for example, RK816 has one pin which can be used for TS or GPIO(input/out). The mainly difference between PMICs pins

[PATCH v9 10/12] mfd: rk808: Add RK805 pinctrl support

2017-08-09 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-by: Linus Walleij Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 18329c8..c803d2d 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -97,6 +97,7 @

[PATCH v9 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-08-09 Thread Joseph Chen
This driver provides a input driver for the power key on the Rockchip RK805 PMIC. Signed-off-by: Joseph Chen --- drivers/input/misc/Kconfig| 6 +++ drivers/input/misc/Makefile | 1 + drivers/input/misc/rk805-pwrkey.c | 111 ++ 3 files changed

[PATCH v9 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808

2017-08-09 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the rtc driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertio

[PATCH v9 11/12] mfd: rk808: Add RK805 power key support

2017-08-09 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index c803d2d..216fbf6 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -94,6 +94,19 @@ sta

[PATCH v9 12/12] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC

2017-08-09 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-by: Linus Walleij --- .../devicetree/bindings/pinctrl/pinctrl-rk805.txt | 63 ++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-rk805.txt diff --git a/Documentation/devicetree/bindings/

[PATCH v5 2/2] hwmon: (it87) Reapply probe path chip registers settings after resume

2017-08-09 Thread Maciej S. Szmigiero
After a suspend / resume cycle we possibly need to reapply chip registers settings that we had set or fixed in a probe path, since they might have been reset to default values or set incorrectly by a BIOS again. Tested on a Gigabyte M720-US3 board, which requires routing internal VCCH5V to in7 (an

Re: [PATCH 02/16] mm: Prepare for FAULT_FLAG_SPECULATIVE

2017-08-09 Thread Kirill A. Shutemov
On Tue, Aug 08, 2017 at 04:35:35PM +0200, Laurent Dufour wrote: > @@ -2295,7 +2302,11 @@ static int wp_page_copy(struct vm_fault *vmf) > /* >* Re-check the pte - we dropped the lock >*/ > - vmf->pte = pte_offset_map_lock(mm, vmf->pmd, vmf->address, &vmf->ptl); > + if (

Re: [PATCH v2 18/18] cpufreq: scmi: add support for fast frequency switching

2017-08-09 Thread Sudeep Holla
On 09/08/17 05:28, Viresh Kumar wrote: > On 04-08-17, 15:31, Sudeep Holla wrote: >> The cpufreq core provides option for drivers to implement fast_switch >> callback which is invoked for frequency switching from interrupt context. >> >> This patch adds support for fast_switch callback in SCMI cpu

[PATCH] f2fs: fix potential overflow in build_sit_info

2017-08-09 Thread Chao Yu
On a 32-bit system, below calculation may overflow the 32-bit unsigned integer, allocating a buffer size that smaller than needed. A write on the buffer will then trigger an out of boundary write. 1. MAIN_SEGS(sbi) * sizeof(struct seg_entry) 2. MAIN_SECS(sbi) * sizeof(struct sec_entry) Fixes this

[PATCH 1/2] net-next: mediatek: fix typos inside the header file

2017-08-09 Thread John Crispin
Trivial patch fixing 2 typos. Signed-off-by: John Crispin --- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h index 4594862e5a9b..940517a

Re: [PATCH] MAINTAINERS: greybus: Fix typo s/LOOBACK/LOOPBACK

2017-08-09 Thread Viresh Kumar
On Tue, Aug 8, 2017 at 7:14 PM, Sedat Dilek wrote: > Is this patch OK so far? > Did I miss a CC? commit a1ffc2d25ae9 ("MAINTAINERS: greybus: Fix typo s/LOOBACK/LOOPBACK")

[PATCH 2/2] net-next: mediatek: bring up QDMA RX ring 0

2017-08-09 Thread John Crispin
This patch is in preparation for adding HW flow and QoS offloading. For those features to work, the driver needs to bring up the first QDMA RX ring. This ring is used by the PPE offloading HW. Signed-off-by: John Crisp in --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 36 +

[PATCH 0/2] net-next: mediatek: bring up QDMA RX ring 0

2017-08-09 Thread John Crispin
The MT7623 has several DMA rings. Inside the SW path, the core will use the PDMA when receiving traffic. While bringing up the HW path we noticed that the PPE requires the QDMA RX to also be brought up as it uses this ring internally for its flow scheduling. John Crispin (2): net-next: mediatek:

Re: [PATCH] arm64/vdso: Support mremap() for vDSO

2017-08-09 Thread Catalin Marinas
On Wed, Jul 26, 2017 at 08:07:37PM +0300, Dmitry Safonov wrote: > vDSO VMA address is saved in mm_context for the purpose of using > restorer from vDSO page to return to userspace after signal handling. > > In Checkpoint Restore in Userspace (CRIU) project we place vDSO VMA > on restore back to th

[PATCH 0/2] add cpufreq support to MT7622

2017-08-09 Thread sean.wang
From: Sean Wang Add cpufreq support to MT7622 SoC and also include some cleanups with the generic naming to explicitly support all MediaTek SoCs. Sean Wang (2): cpufreq: mediatek: add cleanups with the more generic naming cpufreq: mediatek: add support of cpufreq to MT7622 SoC drivers/cpuf

Re: [PATCH v2 18/18] cpufreq: scmi: add support for fast frequency switching

2017-08-09 Thread Viresh Kumar
On 09-08-17, 11:09, Sudeep Holla wrote: > Firmware needs to serialize or override based on the timing of the two > consecutive requests. Maybe add a comment over that routine and detail its working a bit? Like its not synchronous, etc. I expect that you would also add a callback with SCMI, so that

[PATCH] i2c: slave-eeprom: Add an OF device ID table

2017-08-09 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees as shown in the following DT binding doc: Documentation/devicetree/bindings/i2c/i2c-designware.txt But this works on the assumption that a I2C device registered via OF will always match a leg

[PATCH 2/2] cpufreq: mediatek: add support of cpufreq to MT7622 SoC

2017-08-09 Thread sean.wang
From: Sean Wang MT7622 is a 64-bit ARMv8 based dual-core SoC (2 * Cortex-A53) with a single cluster. The hardware is also compatible with the current driver, so add MT7622 as one of the compatible string list. Signed-off-by: Sean Wang --- drivers/cpufreq/mediatek-cpufreq.c | 1 + 1 file change

Re: [PATCH 05/16] mm: Protect VMA modifications using VMA sequence count

2017-08-09 Thread Kirill A. Shutemov
On Tue, Aug 08, 2017 at 04:35:38PM +0200, Laurent Dufour wrote: > The VMA sequence count has been introduced to allow fast detection of > VMA modification when running a page fault handler without holding > the mmap_sem. > > This patch provides protection agains the VMA modification done in : >

[PATCH 1/2] cpufreq: mediatek: add cleanups with the more generic naming

2017-08-09 Thread sean.wang
From: Sean Wang Since more MediaTek SoCs can be supported with the cpufreq driver and not limited to MT8173, a couple of cleanups are done here with renaming those functions and related structures with "mtk" instead of "mt8173". Signed-off-by: Sean Wang --- drivers/cpufreq/mediatek-cpufreq.c |

Re: [PATCH v2 17/18] cpufreq: add support for CPU DVFS based on SCMI message protocol

2017-08-09 Thread Sudeep Holla
On 09/08/17 11:06, Viresh Kumar wrote: > On 09-08-17, 10:59, Sudeep Holla wrote: >> On 09/08/17 05:18, Viresh Kumar wrote: > >>> This stores the same handle pointer which is stored in the global variable >>> below. Right? Why keep a local variable here at all ? >> >> Yes, you are right. Initiall

[PATCH] scsi: dpt_i2o: remove redundant null check on array device

2017-08-09 Thread Colin King
From: Colin Ian King The null check on pHba->channel[chan].device is redundant because device is an array and hence can never be null. Remove the check. Detected by CoverityScan, CID#115362 ("Array compared against 0") Signed-off-by: Colin Ian King --- drivers/scsi/dpt_i2o.c | 5 - 1 file

Re: [PATCH v2 18/18] cpufreq: scmi: add support for fast frequency switching

2017-08-09 Thread Sudeep Holla
On 09/08/17 11:13, Viresh Kumar wrote: > On 09-08-17, 11:09, Sudeep Holla wrote: >> Firmware needs to serialize or override based on the timing of the two >> consecutive requests. > > Maybe add a comment over that routine and detail its working a bit? Like its > not > synchronous, etc. I expect

Re: [PATCH] f2fs: fix potential overflow in build_sit_info

2017-08-09 Thread Chao Yu
Sorry, please ignore this patch. :( Thanks, On 2017/8/9 18:09, Chao Yu wrote: > On a 32-bit system, below calculation may overflow the 32-bit unsigned > integer, allocating a buffer size that smaller than needed. A write on > the buffer will then trigger an out of boundary write. > 1. MAIN_SEGS(s

Re: [PATCH] sched/fair: Make PELT signal more accurate

2017-08-09 Thread Vincent Guittot
On 9 August 2017 at 01:11, Joel Fernandes wrote: > Hi Vincent, > > On Mon, Aug 7, 2017 at 6:24 AM, Vincent Guittot > wrote: >> Hi Joel, >> >> On 4 August 2017 at 17:40, Joel Fernandes wrote: >>> The PELT signal (sa->load_avg and sa->util_avg) are not updated if the >>> amount >>> accumulated du

Re: [PATCH v8 09/14] lockdep: Apply crossrelease to completions

2017-08-09 Thread Peter Zijlstra
On Wed, Aug 09, 2017 at 11:51:07AM +0200, Peter Zijlstra wrote: > On Mon, Aug 07, 2017 at 04:12:56PM +0900, Byungchul Park wrote: > > +static inline void wait_for_completion(struct completion *x) > > +{ > > + complete_acquire(x); > > + __wait_for_completion(x); > > + complete_release(x); > >

[PATCH] cgroup: remove unneeded checks

2017-08-09 Thread Dan Carpenter
"descendants" and "depth" are declared as int, so they can't be larger than INT_MAX. Static checkers complain and it's slightly confusing for humans as well so let's just remove these conditions. Signed-off-by: Dan Carpenter diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index bf8

[PATCH v3] iommu/s390: Add support for iommu_device handling

2017-08-09 Thread Joerg Roedel
From: Joerg Roedel Add support for the iommu_device_register interface to make the s390 hardware iommus visible to the iommu core and in sysfs. Signed-off-by: Joerg Roedel --- arch/s390/include/asm/pci.h | 7 +++ arch/s390/pci/pci.c | 9 - drivers/iommu/s390-iommu.c | 35

Re: [PATCH] mm/rmap/mmu_notifier: restore mmu_notifier_invalidate_page() semantic

2017-08-09 Thread Kirill A. Shutemov
On Tue, Aug 08, 2017 at 06:08:20PM -0400, jgli...@redhat.com wrote: > From: Jérôme Glisse > > Commit c7ab0d2fdc840266b39db94538f74207ec2afbf6 silently modified > semantic of mmu_notifier_invalidate_page() this patch restore it > to its previous semantic ie allowing to sleep inside invalidate_page

Re: [PATCH] media: i2c: adv748x: Export I2C device table entries as module aliases

2017-08-09 Thread Kieran Bingham
Hi Javier, Thankyou for the patch On 09/08/17 10:37, Javier Martinez Canillas wrote: > The I2C core always reports a MODALIAS of the form i2c: even if the > device was registered via OF, and the driver is only exporting the OF ID > table entries as module aliases. > > So if the driver is built a

Re: [PATCH 0/3] drm: make drm_connector_funcs structures const

2017-08-09 Thread Archit Taneja
On 08/08/2017 04:58 PM, Bhumika Goyal wrote: Declare drm_connector_funcs structures as const. Could you rebase this series over the latest drm-misc-next? The recently merged patch "drm: Nuke drm_atomic_helper_connector_dpms" causes conflicts with these. drm-misc-next: https://cgit.freedeskt

[PATCH] drm/rockchip: Fix suspend crash when drm is not bound

2017-08-09 Thread Jeffy Chen
Currently we are allocating drm_device in rockchip_drm_bind, so if the suspend/resume code access it when drm is not bound, we would hit this crash: [ 253.402836] Unable to handle kernel NULL pointer dereference at virtual address 0028 [ 253.402837] pgd = ffc06c9b [ 253.402841] [00

[PATCH RFC net-next] net: Allow name change of IFF_UP interfaces

2017-08-09 Thread Vitaly Kuznetsov
Recent 'transparenf VF' changes to netvsc driver made VF interfaces register as netvsc interface slaves upon appearance. This led to udev not being able to rename the interface according to the 'predictable interface names' scheme: kernel: mlx4_core 0002:00:02.0 eth2: joined to eth1 kernel: hv_n

Re: [PATCH 05/16] mm: Protect VMA modifications using VMA sequence count

2017-08-09 Thread Laurent Dufour
On 09/08/2017 12:12, Kirill A. Shutemov wrote: > On Tue, Aug 08, 2017 at 04:35:38PM +0200, Laurent Dufour wrote: >> The VMA sequence count has been introduced to allow fast detection of >> VMA modification when running a page fault handler without holding >> the mmap_sem. >> >> This patch provides

Re: [PATCH net-next v2] wan: dscc4: add checks for dma mapping errors

2017-08-09 Thread Andy Shevchenko
On Tue, Aug 8, 2017 at 10:28 PM, Alexey Khoroshilov wrote: > The driver does not check if mapping dma memory succeed. > The patch adds the checks and failure handling. > > Found by Linux Driver Verification project (linuxtesting.org). Since it is going to be v3, just to mention that IIRC we bette

Re: [PATCH v1 2/6] phy: qcom-qmp: Power-on PHY before initialization

2017-08-09 Thread Manu Gautam
On 7/21/2017 4:31 PM, Manu Gautam wrote: > } > @@ -729,19 +771,17 @@ static int qcom_qmp_phy_init(struct phy *phy) > void __iomem *pcs = qphy->pcs; > void __iomem *status; > unsigned int mask, val; > - int ret, i; > + int ret; > > dev_vdbg(qmp->dev, "Initializin

Re: [PATCH 02/16] mm: Prepare for FAULT_FLAG_SPECULATIVE

2017-08-09 Thread Laurent Dufour
On 09/08/2017 12:08, Kirill A. Shutemov wrote: > On Tue, Aug 08, 2017 at 04:35:35PM +0200, Laurent Dufour wrote: >> @@ -2295,7 +2302,11 @@ static int wp_page_copy(struct vm_fault *vmf) >> /* >> * Re-check the pte - we dropped the lock >> */ >> -vmf->pte = pte_offset_map_lock(mm

Re: [PATCH] media: i2c: adv748x: Export I2C device table entries as module aliases

2017-08-09 Thread Javier Martinez Canillas
Hi Kieran, On 08/09/2017 12:29 PM, Kieran Bingham wrote: > Hi Javier, > > Thankyou for the patch > You are welcome. > On 09/08/17 10:37, Javier Martinez Canillas wrote: >> The I2C core always reports a MODALIAS of the form i2c: even if the >> device was registered via OF, and the driver is onl

[V2] firmware: vpd: use memunmap instead of iounmap

2017-08-09 Thread Pan Bian
In functions vpd_sections_init() and vpd_section_init(), iounmap() is used to unmap memory. However, in these cases, memunmap() should be used. Signed-off-by: Pan Bian --- drivers/firmware/google/vpd.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/firmwar

Re: [PATCH] media: i2c: adv748x: Export I2C device table entries as module aliases

2017-08-09 Thread Kieran Bingham
On 09/08/17 11:58, Javier Martinez Canillas wrote: > Hi Kieran, > > On 08/09/2017 12:29 PM, Kieran Bingham wrote: >> Hi Javier, >> >> Thankyou for the patch > > You are welcome. > >> On 09/08/17 10:37, Javier Martinez Canillas wrote: >>> The I2C core always reports a MODALIAS of the form i2c: e

[PATCH] ibmvnic: Fix unused variable warning

2017-08-09 Thread Michal Suchanek
Fixes: a248878d7a1d ("ibmvnic: Check for transport event on driver resume") Signed-off-by: Michal Suchanek --- drivers/net/ethernet/ibm/ibmvnic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 99576ba4187f..09c20d

Re: [PATCH] media: i2c: adv748x: Export I2C device table entries as module aliases

2017-08-09 Thread Javier Martinez Canillas
On 08/09/2017 01:05 PM, Kieran Bingham wrote: > On 09/08/17 11:58, Javier Martinez Canillas wrote: >> Hi Kieran, >> >> On 08/09/2017 12:29 PM, Kieran Bingham wrote: >>> Hi Javier, >>> >>> Thankyou for the patch >> >> You are welcome. >> >>> On 09/08/17 10:37, Javier Martinez Canillas wrote:

Re: [PATCH 0/2] iommu/omap: Rework cache functionality with DMA Streaming API

2017-08-09 Thread Laurent Pinchart
Hi Josue, Thank you for the patches. On Friday 28 Jul 2017 15:49:12 Josue Albarran wrote: > Hi Joerg, > > This series adapts the OMAP IOMMU driver to use the DMA API to flush > the page table/directory table entries from the CPU caches instead of > the ARM assembly calls. The patches are baselin

[V2] kexec_file: use crypto_free_shash to free memory

2017-08-09 Thread Pan Bian
In function kexec_calculate_store_digests(), kfree() is used to free memory allocated by crypto_alloc_shash(). It is better to use function crypto_free_shash(), which frees up tfm and any resources associated with it. And then, the refcount of the algorithm used in crypto_alloc_shash() is also drop

Re: system hung up when offlining CPUs

2017-08-09 Thread Marc Zyngier
On Tue, 8 Aug 2017 15:25:35 -0400 YASUAKI ISHIMATSU wrote: > Hi Thomas, > > When offlining all CPUs except cpu0, system hung up with the following > message. > > [...] INFO: task kworker/u384:1:1234 blocked for more than 120 seconds. > [...] Not tainted 4.12.0-rc6+ #19 > [...] "echo 0 >

Re: [PATCH v9 03/12] regulator: rk808: Add regulator driver for RK805

2017-08-09 Thread Mark Brown
On Wed, Aug 09, 2017 at 06:04:11PM +0800, Joseph Chen wrote: > From: Elaine Zhang > > Add support for the rk805 regulator. The regulator module consists > of 4 DCDCs, 3 LDOs. > > The output voltages are configurable and are meant to supply power > to the main processor and other components. > >

[no subject]

2017-08-09 Thread системы администратор
внимания; Ваши сообщения превысил лимит памяти, который составляет 5 Гб, определенных администратором, который в настоящее время работает на 10.9GB, Вы не сможете отправить или получить новую почту, пока вы повторно не проверить ваш почтовый ящик почты. Чтобы восстановить работоспособность Ваше

RE: [PATCH] usb: gadget: udc: renesas_usb3: fix error return code in renesas_usb3_probe()

2017-08-09 Thread Yoshihiro Shimoda
Hi Gustavo, Thank you for the patch! > -Original Message- > From: Gustavo A. R. Silva > Sent: Wednesday, August 9, 2017 7:35 AM > > platform_get_irq() returns an error code, but the renesas_usb3 driver > ignores it and always returns -ENODEV. This is not correct and, > prevents -EPROBE_D

Re: [PATCHv4 13/14] x86/xen: Allow XEN_PV and XEN_PVH to be enabled with X86_5LEVEL

2017-08-09 Thread Juergen Gross
On 08/08/17 14:54, Kirill A. Shutemov wrote: > With boot-time switching between paging modes, XEN_PV and XEN_PVH can be > boot into 4-level paging mode. > > Signed-off-by: Kirill A. Shutemov > Cc: Juergen Gross Reviewed-by: Juergen Gross Tested-by: Juergen Gross Thanks, Juergen

Re: [PATCHv4 05/14] x86/xen: Drop 5-level paging support code from XEN_PV code

2017-08-09 Thread Juergen Gross
On 08/08/17 14:54, Kirill A. Shutemov wrote: > It was decided 5-level paging is not going to be supported in XEN_PV. > > Let's drop the dead code from XEN_PV code. > > Signed-off-by: Kirill A. Shutemov > Cc: Juergen Gross Reviewed-by: Juergen Gross Tested-by: Juergen Gross Thanks, Juergen

Re: [PATCH 1/2] mfd: intel_soc_pmic_chtwc: Remove unneeded I2C device ID table

2017-08-09 Thread Hans de Goede
Hi, On 09-08-17 10:44, Javier Martinez Canillas wrote: The driver has an empty I2C device table as a workaround for a previous bug in the I2C core that was returning -ENODEV in i2c_device_probe() if the driver didn't have an I2C device ID table. Even when is for an ACPI only device and so the dr

Re: [PATCH 2/2] mfd: intel_soc_pmic_chtwc: Fix module autoload

2017-08-09 Thread Hans de Goede
Hi, On 09-08-17 10:44, Javier Martinez Canillas wrote: The driver has a tristate Kconfig symbol so it can be built as a module, but it doesn't export the device aliases in the module. So if the driver is built as module, autoload won't work since udev/kmod won't be able to match the registered A

[PATCH v4 04/12] net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()

2017-08-09 Thread David Wu
This is wrong setting for rk3328_set_to_rmii(), so remove it. Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c index f0

[PATCH v4 03/12] arm64: defconfig: Enable CONFIG_ROCKCHIP_PHY

2017-08-09 Thread David Wu
Make the rockchip phy driver built into the kernel. Signed-off-by: David Wu --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6c7d147..925bd478 100644 --- a/arch/arm64/configs/defconfig +++ b/arc

[PATCH v4 00/12] Add the internal phy support

2017-08-09 Thread David Wu
The rk3228 and rk3328 support internal phy inside, let's enable it to work. And the internal phy need to do some special setting, so register the rockchip internal phy driver. David Wu (12): net: phy: Add rockchip phy driver support multi_v7_defconfig: Make rockchip phy built-in arm64: defco

[PATCH v4 01/12] net: phy: Add rockchip phy driver support

2017-08-09 Thread David Wu
Support internal ethernet phy currently. Signed-off-by: David Wu --- changes in v4: - Remove SUPPORTED_[Asym_]Pause flag - Some minor fix like defines drivers/net/phy/Kconfig| 5 + drivers/net/phy/Makefile | 1 + drivers/net/phy/rockchip.c | 233 +

Crypto Fixes for 4.13

2017-08-09 Thread Herbert Xu
Hi Linus: This push fixes two regressions in the inside-secure driver with respect to hmac(sha1). Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus Antoine Tenart (2): crypto: inside-secure - fix invalidation check in hmac_sha1_setkey cry

[PATCH v4 02/12] multi_v7_defconfig: Make rockchip phy built-in

2017-08-09 Thread David Wu
Enable the rockchip phy for multi_v7_defconfig builds. Signed-off-by: David Wu --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 4d19c1b..94d7e71 100644 --- a/arch/arm/confi

[patch-rt] locking, rwlock-rt: do not save state multiple times in __write_rt_lock()

2017-08-09 Thread Mike Galbraith
Save state prior to entering the acquisition loop, otherwise we may initially see readers, but upon releasing ->wait_lock see none, loop back around, and having not slept, save TASK_UNINTERRUPTIBLE. Signed-off-by_ Mike Galbraith --- kernel/locking/rwlock-rt.c | 37

[PATCH v4 05/12] Documentation: net: phy: Add phy-is-internal binding

2017-08-09 Thread David Wu
Add the documentation for internal phy. A boolean property indicates that a internal phy will be used. Signed-off-by: David Wu --- Documentation/devicetree/bindings/net/phy.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/phy.txt b/Documentation/d

[PATCH v4 06/12] net: stmmac: dwmac-rk: Add internal phy support

2017-08-09 Thread David Wu
To make internal phy work, need to configure the phy_clock, phy cru_reset and related registers. Signed-off-by: David Wu --- change in v4: - PHY is internal or not base on the phy-is-internal property via phy node. .../devicetree/bindings/net/rockchip-dwmac.txt | 4 +- drivers/net/etherne

[PATCH v4 07/12] net: stmmac: dwmac-rk: Add internal phy support for rk3228

2017-08-09 Thread David Wu
There is only one mac controller in rk3228, which could connect to external phy or internal phy, use the grf_com_mux bit15 to route external/internal phy. Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 12 1 file changed, 12 insertions(+) diff --git a/

[PATCH v4 08/12] net: stmmac: dwmac-rk: Add internal phy supprot for rk3328

2017-08-09 Thread David Wu
There are two mac controllers in the rk3328, the one connects to external phy, and the other one connects to internal phy. Like the mac of external phy, the internal phy's mac also needs to configure the related mac registers at GRF. Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmma

[PATCH v4 09/12] ARM: dts: rk322x: Add support internal phy for gmac

2017-08-09 Thread David Wu
This patch adds internal mac phy clock and internal mac phy reset for rk gmac using. Signed-off-by: David Wu --- arch/arm/boot/dts/rk322x.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index f3e4ffd..

[PATCH v4 10/12] ARM: dts: rk3228-evb: Enable the internal phy for gmac

2017-08-09 Thread David Wu
This patch enables the internal phy for rk3228 evb board by default. To use the external 1000M phy on evb board, need to make some switch of evb board to be on. Signed-off-by: David Wu --- arch/arm/boot/dts/rk3228-evb.dts | 32 1 file changed, 32 insertions(+) d

[PATCH v4 11/12] ARM64: dts: rockchip: Add gmac2phy node support for rk3328

2017-08-09 Thread David Wu
The gmac2phy controller of rk3328 is connected to internal phy directly inside, add the node for the internal phy support. Signed-off-by: David Wu --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 37 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dt

[PATCH v4 12/12] ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb

2017-08-09 Thread David Wu
Enable the gmac2phy, make the gmac2phy work on the rk3328-evb board. Signed-off-by: David Wu --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts b/arch/arm64/boot/dts/rockchip/rk3328-e

Re: [PATCH v9 1/4] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-08-09 Thread Ding Tianhong
On 2017/8/9 11:02, Bjorn Helgaas wrote: > On Wed, Aug 09, 2017 at 01:40:01AM +, Casey Leedom wrote: >> | From: Bjorn Helgaas >> | Sent: Tuesday, August 8, 2017 4:22 PM >> | >> | This needs to include a link to the Intel spec >> | >> (https://software.intel.com/sites/default/files/managed/9

[PATCH 0/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
Currently we are using a fixed list of dai links in the driver. This serial of patches would let the driver parse dai links from dts, so that we can reorder/disable them in the dts. Tested on my chromebook bob(with cros 4.4 kernel), it still works after disabled rt5514 codec in the dts. Jeffy

[PATCH 2/3] arm64: dts: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add rockchip,codec-names property for codecs. Signed-off-by: Jeffy Chen --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index d48e98b..c8f7f0c 100644

[PATCH 3/3] dt-bindings: ASoC: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add a new rockchip,codec-names property, so that the driver can parse the codecs by name. Signed-off-by: Jeffy Chen --- Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/rockchip,r

[PATCH 1/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
Refactor rockchip_sound_probe, parse dai links from dts instead of hard coding them. Signed-off-by: Jeffy Chen --- sound/soc/rockchip/rk3399_gru_sound.c | 129 ++ 1 file changed, 86 insertions(+), 43 deletions(-) diff --git a/sound/soc/rockchip/rk3399_gru_sound.

<    4   5   6   7   8   9   10   11   12   >