Re: [PATCH] MIPS: Loongson64: Drop 32-bit support for Loongson 2E/2F devices

2018-01-02 Thread James Hogan
On Tue, Jan 02, 2018 at 09:29:46PM +0800, Jiaxun Yang wrote: > On 2018-01-02 Tue 08:48 +,James Hogan Wrote: > > On Tue, Dec 26, 2017 at 12:21:38PM +0800, Jiaxun Yang wrote: > > > Make loongson64 a pure 64-bit mach. > > > > Please expand to provide some rationale behind the change. Was 32-bit >

Re: [PATCH V4 23/26] video: fbdev: nvidia: deprecate pci_get_bus_and_slot()

2018-01-02 Thread Sinan Kaya
On 12/19/2017 12:37 AM, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting ready to remove pci_get_bus_and_slot() function in favor of > p

Re: [PATCH V4 22/26] video: fbdev: intelfb: deprecate pci_get_bus_and_slot()

2018-01-02 Thread Sinan Kaya
On 12/19/2017 12:37 AM, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting ready to remove pci_get_bus_and_slot() function in favor of > p

Re: [PATCH V4 24/26] video: fbdev: riva: deprecate pci_get_bus_and_slot()

2018-01-02 Thread Sinan Kaya
On 12/19/2017 12:38 AM, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting ready to remove pci_get_bus_and_slot() function in favor of > p

Re: [PATCH V4 25/26] i7300_idle: remove unused file

2018-01-02 Thread Sinan Kaya
Hi Greg, On 12/19/2017 12:38 AM, Sinan Kaya wrote: > i7300_idle.h is not being called by any source file and contains calls to > pci_get_bus_and_slot() that we are trying to deprecate. Remove unused file. > > Signed-off-by: Sinan Kaya Do you think you can pick this up? I'll start pinging all t

Linux 3.2.97

2018-01-02 Thread Ben Hutchings
I'm announcing the release of the 3.2.97 kernel. All users of the 3.2 kernel series should upgrade. The updated 3.2.y git tree can be found at: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH v6 4/6] can: m_can: Support higher speed CAN-FD bitrates

2018-01-02 Thread Marc Kleine-Budde
On 12/22/2017 02:31 PM, Faiz Abbas wrote: > From: Franklin S Cooper Jr > > During test transmitting using CAN-FD at high bitrates (> 2 Mbps) > would fail. Scoping the signals I noticed that only a single bit > was being transmitted and with a bit more investigation realized the actual > MCAN IP w

Re: [net-next: PATCH v2 5/5] net: mvpp2: enable ACPI support in the driver

2018-01-02 Thread Andrew Lunn
> Apart from the phylink's SFP support that may require in-band > management, it's an alternative to the normal PHY handling. Once MDIO > bus + PHYs are supported for ACPI, phylib support will be used instead > of the IRQs, so there should be no problem here. Hi Marcin However, phylib and phylink

Re: [PATCH v3 0/6] cpufreq: schedutil: fixes for flags updates

2018-01-02 Thread Claudio Scordino
Hi Peter, Il 31/12/2017 10:43, Claudio Scordino ha scritto: Hi all, Il 20/12/2017 16:56, Peter Zijlstra ha scritto: On Wed, Dec 20, 2017 at 04:30:29PM +0100, Peter Zijlstra wrote: So I ended up with the below (on top of Juri's cpufreq-dl patches). It compiles, but that's about all the testi

Re: [PATCH] MIPS: Loongson64: Drop 32-bit support for Loongson 2E/2F devices

2018-01-02 Thread Jiaxun Yang
On 2018-01-02 Tue 08:48 +,James Hogan Wrote: > On Tue, Dec 26, 2017 at 12:21:38PM +0800, Jiaxun Yang wrote: > > Make loongson64 a pure 64-bit mach. > > Please expand to provide some rationale behind the change. Was 32-bit > support broken at runtime, or broken at build time, or are we simply >

Re: [PATCH -V4 -mm] mm, swap: Fix race between swapoff and some swap operations

2018-01-02 Thread Mel Gorman
On Tue, Jan 02, 2018 at 12:29:55PM +0100, Jan Kara wrote: > On Tue 02-01-18 10:21:03, Mel Gorman wrote: > > On Sat, Dec 23, 2017 at 10:36:53AM +0900, Minchan Kim wrote: > > > > code path. It appears that similar situation is possible for them too. > > > > > > > > The file cache pages will be dele

Re: [PATCH v2 1/3] phy: core: Move runtime PM reference counting to the parent device

2018-01-02 Thread Ulf Hansson
On 24 December 2017 at 13:00, Rafael J. Wysocki wrote: > On Saturday, December 23, 2017 4:09:33 PM CET Ulf Hansson wrote: >> [...] >> >> > >> > So IMO the changes you are proposing make sense regardless of the >> > genpd issue, because they generally simplify the phy code, but the >> > additional

Re: [PATCH 0/4] PM / core: Direct handling of DPM_FLAG_SMART_SUSPEND and DPM_FLAG_LEAVE_SUSPENDED

2018-01-02 Thread Greg Kroah-Hartman
On Tue, Jan 02, 2018 at 12:32:55PM +0100, Rafael J. Wysocki wrote: > On Sunday, December 10, 2017 12:55:23 AM CET Rafael J. Wysocki wrote: > > Hi All, > > > > This series is a follow-up for > > > > https://marc.info/?l=linux-doc&m=151101644105835&w=2 > > > > Patches[1-3/6] from the above have be

Re: [PATCH v2 2/4] PCI/DPC/AER: Address Concurrency between AER and DPC

2018-01-02 Thread Sinan Kaya
Hi Keith, On 12/29/2017 12:23 PM, Keith Busch wrote: > On Fri, Dec 29, 2017 at 12:54:17PM +0530, Oza Pawandeep wrote: >> This patch addresses the race condition between AER and DPC for recovery. >> >> Current DPC driver does not do recovery, e.g. calling end-point's driver's >> callbacks, which sa

[PATCH v3] drm/ttm: check the return value of kzalloc

2018-01-02 Thread Xiongwei Song
In the function ttm_page_alloc_init, kzalloc call is made for variable _manager, we need to check its return value, it may return NULL. Signed-off-by: Xiongwei Song --- v2->v3: delete goto expression v1->v2: delete kfree _manager --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 2 ++ 1 file changed, 2

Re: [PATCH v20 4/7] virtio-balloon: VIRTIO_BALLOON_F_SG

2018-01-02 Thread Matthew Wilcox
On Sun, Dec 24, 2017 at 03:42:02PM +0800, Wei Wang wrote: > On 12/24/2017 12:45 PM, Tetsuo Handa wrote: > > Matthew Wilcox wrote: > > > If you can't preload with anything better than that, I think that > > > xb_set_bit() should attempt an allocation with GFP_NOWAIT | __GFP_NOWARN, > > > and then yo

[PATCH] nokia N9: Add support for magnetometer and touchscreen

2018-01-02 Thread Pavel Machek
This adds dts support for magnetometer and touchscreen on Nokia N9. Signed-off-by: Pavel Machek diff --git a/arch/arm/boot/dts/omap3-n9.dts b/arch/arm/boot/dts/omap3-n9.dts index 39e35f8..57a6679 100644 --- a/arch/arm/boot/dts/omap3-n9.dts +++ b/arch/arm/boot/dts/omap3-n9.dts @@ -36,6 +57,22 @@

Re: [PATCH v2 16/22] mmc: tmio: fix never-detected card insertion bug

2018-01-02 Thread Wolfram Sang
Yamada-san, > The TMIO mmc cannot detect the card insertion in native_hotplug mode > if the driver is probed without a card inserted. Hmm, it works for me without your patch just fine. Iam currently researching it... Happy new year, by the way! :) Regards, Wolfram signature.asc Descripti

Re: [PATCH v6 1/6] can: dev: Add support for limiting configured bitrate

2018-01-02 Thread Marc Kleine-Budde
On 12/22/2017 02:31 PM, Faiz Abbas wrote: > From: Franklin S Cooper Jr > > Various CAN or CAN-FD IP may be able to run at a faster rate than > what the transceiver the CAN node is connected to. This can lead to > unexpected errors. However, CAN transceivers typically have fixed > limitations and

Re: misc: bh1770glc: move sysfs interace to Documentation/ABI

2018-01-02 Thread Pavel Machek
Hi! > In Documentation/misc-devices/bh1770glc.txt, there is a description of the > sysfs > interface which could be moved to Documentation/ABI. > > Would such a change be useful? Not at the moment. > The ABI documentation format looks like the following: > > What: (the full sysfs pat

Re: [alsa-devel] WARNING in snd_pcm_hw_param_first

2018-01-02 Thread Takashi Iwai
On Mon, 01 Jan 2018 17:14:25 +0100, Takashi Iwai wrote: > > On Mon, 01 Jan 2018 11:29:51 +0100, > Lars-Peter Clausen wrote: > > > > On 01/01/2018 10:03 AM, Takashi Iwai wrote: > > [...] > > >> CPU: 0 PID: 3502 Comm: syzkaller781065 Not tainted 4.15.0-rc5+ #154 > > >> Hardware name: Google Google

Re: [PATCH] PM / runtime: Rework pm_runtime_force_suspend/resume()

2018-01-02 Thread Lukas Wunner
On Tue, Jan 02, 2018 at 12:02:18PM +0100, Rafael J. Wysocki wrote: > On Tue, Jan 2, 2018 at 11:51 AM, Lukas Wunner wrote: > > On Tue, Jan 02, 2018 at 01:56:28AM +0100, Rafael J. Wysocki wrote: > >> + if (atomic_read(&dev->power.usage_count) <= 1 && > >> + atomic_read(&dev->power.child_

Re: [PATCH 0/4] KVM: nVMX: prepare_vmcs02 optimizations

2018-01-02 Thread Paolo Bonzini
On 02/01/2018 02:05, Wanpeng Li wrote: > The issue is still there after applying this to both L0 and L1, > actually, I can observe a vmentry fail just before the splatting in L0 > w/ and w/o the above code. In addition, I comment out the other > testcases in unittests.cfg except vmx_controls, then

Re: [PATCH v2 3/3] gpio: rcar: Use WAKEUP_PATH driver PM flag

2018-01-02 Thread Ulf Hansson
>>> Signed-off-by: Geert Uytterhoeven >>> [Ulf: Converted to use the WAKEUP_PATH driver PM flag] > > Ulf: + killing the DEV_PM_OPS define, increasing kernel size if PM_SUSPEND=n? Oh, yes - correct! The code looks nicer, with the penalty of one static struct declared and not used, in case CONFIG_

[PATCH] Nokia N9: add support for up/down keys in the dts

2018-01-02 Thread Pavel Machek
This adds support for volume up/down keys in the dts. Signed-off-by: Pavel Machek diff --git a/arch/arm/boot/dts/omap3-n9.dts b/arch/arm/boot/dts/omap3-n9.dts index 39e35f8..57a6679 100644 --- a/arch/arm/boot/dts/omap3-n9.dts +++ b/arch/arm/boot/dts/omap3-n9.dts @@ -11,9 +11,10 @@ /dts-v1/;

Re: [PATCH v2 10/22] mmc: tmio: support IP-builtin card detection logic

2018-01-02 Thread Wolfram Sang
On Sat, Nov 25, 2017 at 01:24:45AM +0900, Masahiro Yamada wrote: > A card detect GPIO is set up only for platforms with "cd-gpios" > DT property or TMIO_MMC_USE_GPIO_CD flag. However, the driver > core always uses mmc_gpio_get_cd, which just fails with -ENOSYS > if ctx->cd_gpio is unset. > > The

Re: [PATCH v2 09/22] mmc: tmio: use mmc_can_gpio_cd() instead of checking TMIO_MMC_USE_GPIO_CD

2018-01-02 Thread Wolfram Sang
On Sat, Nov 25, 2017 at 01:24:44AM +0900, Masahiro Yamada wrote: > To use a GPIO line for card detection, TMIO_MMC_USE_GPIO_CD is set > by a legacy board (arch/sh/boards/mach-ecovec24). > > For DT platforms, the "cd-gpios" property is a legitimate way for that > in case the IP-builtin card detecti

Re: [PATCH v2 3/3] gpio: rcar: Use WAKEUP_PATH driver PM flag

2018-01-02 Thread Ulf Hansson
On 2 January 2018 at 11:48, Rafael J. Wysocki wrote: > On Tue, Jan 2, 2018 at 11:44 AM, Geert Uytterhoeven > wrote: >> Hi Rafael, >> >> On Tue, Jan 2, 2018 at 11:32 AM, Rafael J. Wysocki wrote: >>> On Fri, Dec 29, 2017 at 2:31 PM, Ulf Hansson wrote: From: Geert Uytterhoeven Sinc

[PATCHv2] Device tree binding for Avago APDS990X light sensor

2018-01-02 Thread Pavel Machek
From: Filip Matijević This prepares binding for light sensor used in Nokia N9. Signed-off-by: Filip Matijević Signed-off-by: Pavel Machek diff --git a/Documentation/devicetree/bindings/misc/avago-apds990x.txt b/Documentation/devicetree/bindings/misc/avago-apds990x.txt new file mode 100644 in

Re: [PATCH v2] drm/ttm: check the return value of kzalloc

2018-01-02 Thread Christian König
Am 02.01.2018 um 13:35 schrieb Xiongwei Song: In the function ttm_page_alloc_init, kzalloc call is made for variable _manager, we need to check its return value, it may return NULL. Signed-off-by: Xiongwei Song --- v1->v2: delete kfree _manager --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 6 +++

[PATCH v2] drm/ttm: check the return value of kzalloc

2018-01-02 Thread Xiongwei Song
In the function ttm_page_alloc_init, kzalloc call is made for variable _manager, we need to check its return value, it may return NULL. Signed-off-by: Xiongwei Song --- v1->v2: delete kfree _manager --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH] arch: drop duplicate exports of abort()

2018-01-02 Thread Sudip Mukherjee
On Tue, Jan 02, 2018 at 11:38:29AM +, Russell King - ARM Linux wrote: > On Tue, Jan 02, 2018 at 11:34:45AM +, Sudip Mukherjee wrote: > > Hi Arnd, > > > > On Tue, Jan 02, 2018 at 11:31:12AM +0100, Arnd Bergmann wrote: > > > We now have exports in both architecture code in in common code, >

Re: [PATCH 0/4] PM / core: Direct handling of DPM_FLAG_SMART_SUSPEND and DPM_FLAG_LEAVE_SUSPENDED

2018-01-02 Thread Rafael J. Wysocki
On Tue, Jan 2, 2018 at 1:17 PM, Ulf Hansson wrote: > On 2 January 2018 at 12:32, Rafael J. Wysocki wrote: >> On Sunday, December 10, 2017 12:55:23 AM CET Rafael J. Wysocki wrote: >>> Hi All, >>> >>> This series is a follow-up for >>> >>> https://marc.info/?l=linux-doc&m=151101644105835&w=2 >>> >>

Re: [PATCH 0/4] PM / core: Direct handling of DPM_FLAG_SMART_SUSPEND and DPM_FLAG_LEAVE_SUSPENDED

2018-01-02 Thread Ulf Hansson
On 2 January 2018 at 12:32, Rafael J. Wysocki wrote: > On Sunday, December 10, 2017 12:55:23 AM CET Rafael J. Wysocki wrote: >> Hi All, >> >> This series is a follow-up for >> >> https://marc.info/?l=linux-doc&m=151101644105835&w=2 >> >> Patches[1-3/6] from the above have been reviewed and agreed

Re: [RFC PATCH 3/4] rtc: Add one offset seconds to expand RTC range

2018-01-02 Thread Baolin Wang
On 2 January 2018 at 17:50, Alexandre Belloni wrote: > On 02/01/2018 at 13:10:07 +0800, Baolin Wang wrote: >> From our investigation for all RTC drivers, 1 driver will be expired before >> year 2017, 7 drivers will be expired before year 2038, 23 drivers will be >> expired before year 2069, 72 dri

[PATCH] swiotlb: suppress warning when __GFP_NOWARN is set v2

2018-01-02 Thread Christian König
TTM tries to allocate coherent memory in chunks of 2MB first to improve TLB efficiency and falls back to allocating 4K pages if that fails. Suppress the warning when the 2MB allocations fails since there is a valid fall back path. v2: suppress warnings from swiotlb_tbl_map_single as well Signed-

Re: [RFC PATCH 1/3] mm, numa: rework do_pages_move

2018-01-02 Thread Michal Hocko
On Tue 02-01-18 16:55:46, Anshuman Khandual wrote: > On 12/08/2017 09:45 PM, Michal Hocko wrote: > > From: Michal Hocko > > > > do_pages_move is supposed to move user defined memory (an array of > > addresses) to the user defined numa nodes (an array of nodes one for > > each address). The user p

Re: [RFC PATCH 2/5] perf jevents: add support for arch recommended events

2018-01-02 Thread John Garry
On 16/12/2017 18:47, Andi Kleen wrote: Hi Andi, Won't this all potentially have a big maintainence cost? No. It's all auto generated. The only cost is slightly bigger binary size. I would hope your event files are auto generated too. No, they're not - we are just manually transcribing th

Re: [PATCH v2 1/2] nvmem: add driver for JZ4780 efuse

2018-01-02 Thread Srinivas Kandagatla
On 28/12/17 21:29, Mathieu Malaterre wrote: From: PrasannaKumar Muralidharan This patch brings support for the JZ4780 efuse. Currently it only expose a read only access to the entire 8K bits efuse memory. Tested-by: Mathieu Malaterre Signed-off-by: PrasannaKumar Muralidharan Signed-off-by:

Re: [PATCH v2 0/2] Add efuse driver for Ingenic JZ4780 SoC

2018-01-02 Thread Srinivas Kandagatla
On 28/12/17 21:29, Mathieu Malaterre wrote: This patchset bring support for read-only access to the JZ4780 efuse as found on MIPS Creator CI20. To keep the driver as simple as possible, it was not possible to re-use most of the nvmem core functionalities. This driver is not compatible with the

[PATCH] KVM: x86: do not read FS/GS base MSRs when saving them

2018-01-02 Thread Paolo Bonzini
The FS and userspace GS bases are available in current->thread, while the kernel GS base is a percpu variable. Skip the expensive rdmsr and just get the values from memory. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/desc.h | 6 ++ arch/x86/include/asm/kvm_host.h | 10 ---

[PATCH 03/12] ASoC: mediatek: cleanup audio driver for MT2701

2018-01-02 Thread Ryder Lee
Cleanup unused code such as 'i2s_num' guard, headers, indentation and some defines. Signed-off-by: Ryder Lee --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 14 +--- sound/soc/mediatek/mt2701/mt2701-afe-common.h | 20 + sound/soc/mediatek/mt2701/mt2701-afe-pcm.c| 94 -

[PATCH 04/12] ASoC: mediatek: update clock related properties of MT2701 AFE

2018-01-02 Thread Ryder Lee
Add 'assigned-clocks*' properties which are used to initialize default domain sources of audio system. we could configure different sets of input clocks through DTS now. Hence driver no longer cares about that. Also we change some 'clock-names' to make them more generic so that other chips can reu

[PATCH 2/2] microblaze: fix iounmap prototype

2018-01-02 Thread Arnd Bergmann
The missing 'volatile' keyword on the iounmap argument leads to lots of harmless warnings in an allmodconfig build: sound/pci/echoaudio/echoaudio.c:1879:10: warning: passing argument 1 of 'iounmap' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers] Signed-off-by: Ar

[PATCH 1/2] microblaze: fix endian handling

2018-01-02 Thread Arnd Bergmann
Building an allmodconfig kernel fails horribly because of endian mismatch. It turns out that the -mlittle-endian switch was not honored at all as we were using the wrong Kconfig symbol and failing to apply CPUFLAGS to the CFLAGS. Finally, the linker flags did not get set right. This addresses all

Re: [PATCH v2 2/9] include: media: Add Renesas CEU driver interface

2018-01-02 Thread Laurent Pinchart
Hi Jacopo, Thank you for the patch. On Thursday, 28 December 2017 16:01:14 EET Jacopo Mondi wrote: > Add renesas-ceu header file. > > Do not remove the existing sh_mobile_ceu.h one as long as the original > driver does not go away. > > Signed-off-by: Jacopo Mondi > --- > include/media/drv-int

[PATCH 01/12] ASoC: mediatek: fix error handling in mt2701_afe_pcm_dev_probe()

2018-01-02 Thread Ryder Lee
Fix unbalanced error handling path which will get incorrect counts if probe failed. The .remove() should be adjusted accordingly. Signed-off-by: Ryder Lee Tested-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 31 ++ 1 file changed, 14 insertions(+)

[PATCH 05/12] mfd: mtk-audsys: add MediaTek audio subsystem driver

2018-01-02 Thread Ryder Lee
Add a common driver for the top block of the MediaTek audio subsystem. This is a wrapper which manages resources for audio components. Signed-off-by: Ryder Lee --- drivers/mfd/Kconfig | 9 drivers/mfd/Makefile | 2 + drivers/mfd/mtk-audsys.c | 138 ++

[PATCH 06/12] mfd: add DT bindings for MedaiTek audio subsystem

2018-01-02 Thread Ryder Lee
This patch adds documentation of the DT bindings for the MediaTek audio subsystem wrapper. Signed-off-by: Ryder Lee --- .../devicetree/bindings/mfd/mtk-audsys.txt | 109 + 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/mtk-

[PATCH 09/12] clk: mediatek: move part of mtk_clk_register_gates() to the new function

2018-01-02 Thread Ryder Lee
In some subsystems, the regmap has already been initialized from its parent, so there is no need to map it again. To keep flexible, we move some parts to the new function - mtk_clk_register_num_gates(), and then use it for those subsystems. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-m

[PATCH 08/12] ASoC: mediatek: modify documentation to adapt subsystem wrapper

2018-01-02 Thread Ryder Lee
As the new audio subsystem wrapper is in place, modify documentation to adapt it. Signed-off-by: Ryder Lee --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 160 +++-- 1 file changed, 82 insertions(+), 78 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/m

[PATCH 10/12] clk: mediatek: switch to use dev_get_regmap() for MT7622 audsys

2018-01-02 Thread Ryder Lee
As the new audsys wrapper driver is in place, switch to use dev_get_regmap() to obtain the regmap from its parent. This patch also add missing clock data 'CLK_AUDIO_AFE_CONN'. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-mt7622-aud.c | 11 +-- include/dt-bindings/clock/mt7622-

[PATCH 12/12] dt-bindings: clock: mediatek: update audsys bindings to adapt the wrapper

2018-01-02 Thread Ryder Lee
Update the DT binding to adapt the new audio subsystem wrapper. Also add a compatible string for MT2701. Signed-off-by: Ryder Lee --- .../bindings/arm/mediatek/mediatek,audsys.txt | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Documentation/devic

[PATCH 11/12] clk: mediatek: add audsys support for MT2701

2018-01-02 Thread Ryder Lee
Add clock driver support for MT2701 audio subsystem. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/Kconfig | 6 ++ drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt2701-aud.c | 180 ++ 3 files changed, 187 insertions(+) cre

[PATCH 02/12] ASoC: mediatek: rework clock functions for MT2701

2018-01-02 Thread Ryder Lee
Reworks clock part to make it more reasonable. The current changes are: - Replace regmap operations by CCF APIs. Doing so, we just need to handle the element clocks and can also get accurate information via CCF. - Rename clocks to make them more generic so that the future revisions of the IP

[PATCH 07/12] ASoC: mediatek: modify MT2701 AFE driver to adapt subsystem wrapper

2018-01-02 Thread Ryder Lee
As the new audio subsystem wrapper is in place, modify MT2701 AFE driver to adapt it. Signed-off-by: Ryder Lee --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 42 -- sound/soc/mediatek/mt2701/mt2701-reg.h | 1 - 2 files changed, 17 insertions(+), 26 deletions(-)

[PATCH 00/12] mediatek: rework audio subsystem driver

2018-01-02 Thread Ryder Lee
Hi all, This patch series mainly adds a common driver [5][6] for the top block of the MediaTek audio subsystem, which includes clock part and audio components. This is a minimal driver that manages shared resources like shared registers, and expose a regmap to its sub-nodes. It was tested on the b

Re: [PATCH v2 02/21] nvmem: Introduce devm_nvmem_(un)register()

2018-01-02 Thread Srinivas Kandagatla
Thanks for the patch, On 01/01/18 23:22, Andrey Smirnov wrote: Introduce devm_nvmem_register()/devm_nvmem_unregister() to make .remove() unnecessary in trivial drivers. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc

Re: [PATCH v2 1/9] dt-bindings: media: Add Renesas CEU bindings

2018-01-02 Thread Laurent Pinchart
Hi Jacopo, Thank you for the patch. On Thursday, 28 December 2017 16:01:13 EET Jacopo Mondi wrote: > Add bindings documentation for Renesas Capture Engine Unit (CEU). > > Signed-off-by: Jacopo Mondi > --- > .../devicetree/bindings/media/renesas,ceu.txt | 85 +++ > 1 file c

Re: [PATCH] thermal/drivers/hisi: Remove bogus const from function return type

2018-01-02 Thread Arnd Bergmann
On Sun, Nov 19, 2017 at 12:04 PM, Geert Uytterhoeven wrote: > With gcc-4.1.2: > > drivers/thermal/hisi_thermal.c: In function ‘hisi_thermal_probe’: > drivers/thermal/hisi_thermal.c:530: warning: type qualifiers ignored on > function return type > > Remove the "const" keyword to fix this.

Re: [PATCH v2 01/21] nvmem: core: Allow specifying device name verbatim

2018-01-02 Thread Srinivas Kandagatla
Thanks for the Patch, On 01/01/18 23:22, Andrey Smirnov wrote: Add code to allow avoid having nvmem core append a numeric suffix to the end of the name by passing config->id of -1. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias

[PATCH -next] irqchip/ompic: fix return value check in ompic_of_init()

2018-01-02 Thread Wei Yongjun
In case of error, the function ioremap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: 9b54470afd83 ("irqchip: add initial support for ompic") Signed-off-by: Wei Yongjun --- drivers/irqchip/irq-ompic.c | 4 ++-- 1 file c

Re: [PATCH] arch: drop duplicate exports of abort()

2018-01-02 Thread Russell King - ARM Linux
On Tue, Jan 02, 2018 at 11:34:45AM +, Sudip Mukherjee wrote: > Hi Arnd, > > On Tue, Jan 02, 2018 at 11:31:12AM +0100, Arnd Bergmann wrote: > > We now have exports in both architecture code in in common code, > > which causes a link failure when symbol versioning is eanbled, on > > four archite

Re: [PATCH] arch: drop duplicate exports of abort()

2018-01-02 Thread Sudip Mukherjee
Hi Arnd, On Tue, Jan 02, 2018 at 11:31:12AM +0100, Arnd Bergmann wrote: > We now have exports in both architecture code in in common code, > which causes a link failure when symbol versioning is eanbled, on > four architectures: > > kernel/exit.o: In function `__crc_abort': > exit.c:(*ABS*+0xc0e2

Re: [PATCH 0/4] PM / core: Direct handling of DPM_FLAG_SMART_SUSPEND and DPM_FLAG_LEAVE_SUSPENDED

2018-01-02 Thread Rafael J. Wysocki
On Sunday, December 10, 2017 12:55:23 AM CET Rafael J. Wysocki wrote: > Hi All, > > This series is a follow-up for > > https://marc.info/?l=linux-doc&m=151101644105835&w=2 > > Patches[1-3/6] from the above have been reviewed and agreed on, so > they are in linux-next now and here's a next versio

[PATCH 2/2] MIPS: Watch: Avoid duplication of bits in mips_read_watch_registers

2018-01-02 Thread Matt Redfearn
Currently the bits to be masked when watchhi is read is defined inline for each register. To avoid this, define the bits once and mask each register with that value. Signed-off-by: Matt Redfearn --- arch/mips/kernel/watch.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) d

[PATCH 1/2] MIPS: Watch: Avoid duplication of bits in mips_install_watch_registers.

2018-01-02 Thread Matt Redfearn
Currently the bits to be set in the watchhi register in addition to that requested by the user is defined inline for each register. To avoid this, define the bits once and or that in for each register. Signed-off-by: Matt Redfearn --- arch/mips/kernel/watch.c | 17 +++-- 1 file chan

Re: [PATCH v5 7/9] arm64: Topology, rename cluster_id

2018-01-02 Thread Morten Rasmussen
On Tue, Jan 02, 2018 at 10:29:35AM +0800, Xiongfeng Wang wrote: > Hi, > > On 2017/12/18 20:42, Morten Rasmussen wrote: > > On Fri, Dec 15, 2017 at 10:36:35AM -0600, Jeremy Linton wrote: > >> Hi, > >> > >> On 12/13/2017 12:02 PM, Lorenzo Pieralisi wrote: > >>> [+Morten, Dietmar] > >>> > >>> $SUBJEC

Re: [PATCH -V4 -mm] mm, swap: Fix race between swapoff and some swap operations

2018-01-02 Thread Jan Kara
On Tue 02-01-18 10:21:03, Mel Gorman wrote: > On Sat, Dec 23, 2017 at 10:36:53AM +0900, Minchan Kim wrote: > > > code path. It appears that similar situation is possible for them too. > > > > > > The file cache pages will be delete from file cache address_space before > > > address_space (embedde

Re: [PATCH] xtensa: shut up gcc-8 warnings

2018-01-02 Thread Max Filippov
On Tue, Jan 2, 2018 at 3:00 AM, Arnd Bergmann wrote: > Many uses of strncpy() on xtensa causes a warning like > > arch/xtensa/include/asm/string.h:56:42: warning: array subscript is above > array bounds [-Warray-bounds] >: "0" (__dest), "1" (__src), "r" (__src+__n) > > This avoids the warnin

[PATCH v11 2/8] of: Add helper for mapping device node to logical CPU number

2018-01-02 Thread Suzuki K Poulose
Add a helper to map a device node to a logical CPU number to avoid duplication. Currently this is open coded in different places (e.g gic-v3, coresight). The helper tries to map device node to a "possible" logical CPU id, which may not be online yet. It is the responsibility of the user to make sur

[PATCH v11 1/8] perf: Export perf_event_update_userpage

2018-01-02 Thread Suzuki K Poulose
Export perf_event_update_userpage() so that PMU driver using them, can be built as modules. Acked-by: Peter Zilstra Signed-off-by: Suzuki K Poulose --- kernel/events/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/events/core.c b/kernel/events/core.c index 4df5b695bf0d..64ec2c

[PATCH v11 3/8] coresight: of: Use of_cpu_node_to_id helper

2018-01-02 Thread Suzuki K Poulose
Reuse the new generic helper, of_cpu_node_to_id() to map a given CPU phandle to a logical CPU number. Acked-by: Mathieu Poirier Tested-by: Leo Yan Signed-off-by: Suzuki K Poulose --- Changes since V4: - Fix a regression introduced in v4, reported by bugrobot Changes since V3: - Reflect the re

[PATCH v11 4/8] irqchip: gic-v3: Use of_cpu_node_to_id helper

2018-01-02 Thread Suzuki K Poulose
Use the new generic helper of_cpu_node_to_id() instead of using our own version to map a device node to logical CPU number. Acked-by: Marc Zyngier Signed-off-by: Suzuki K Poulose --- Changes since V3: - Reflect the change in the helper name and return value. --- drivers/irqchip/irq-gic-v3.c |

[PATCH v11 5/8] arm64: Use of_cpu_node_to_id helper for CPU topology parsing

2018-01-02 Thread Suzuki K Poulose
Make use of the new generic helper to convert an of_node of a CPU to the logical CPU id in parsing the topology. Cc: Catalin Marinas Cc: Leo Yan Cc: Will Deacon Acked-by: Mark Rutland Signed-off-by: Suzuki K Poulose --- arch/arm64/kernel/topology.c | 16 ++-- 1 file changed, 6 in

[PATCH v11 6/8] arm_pmu: Use of_cpu_node_to_id helper

2018-01-02 Thread Suzuki K Poulose
Use the new generic helper, of_cpu_node_to_id(), to map a a phandle to the logical CPU number while parsing the PMU irq affinity. Cc: Will Deacon Acked-by: Mark Rutland Signed-off-by: Suzuki K Poulose --- drivers/perf/arm_pmu_platform.c | 15 +++ 1 file changed, 3 insertions(+), 12

[PATCH v11 7/8] dt-bindings: Document devicetree binding for ARM DSU PMU

2018-01-02 Thread Suzuki K Poulose
This patch documents the devicetree bindings for ARM DSU PMU. Cc: Mark Rutland Cc: Will Deacon Cc: devicet...@vger.kernel.org Cc: frowand.l...@gmail.com Acked-by: Rob Herring Signed-off-by: Suzuki K Poulose --- Changes since V3: - Fixed node name in the example, suggested by Rob --- .../devi

[PATCH v11 8/8] perf: ARM DynamIQ Shared Unit PMU support

2018-01-02 Thread Suzuki K Poulose
Add support for the Cluster PMU part of the ARM DynamIQ Shared Unit (DSU). The DSU integrates one or more cores with an L3 memory system, control logic, and external interfaces to form a multicore cluster. The PMU allows counting the various events related to L3, SCU etc, along with providing a cyc

Re: [RFC PATCH 1/3] mm, numa: rework do_pages_move

2018-01-02 Thread Anshuman Khandual
On 12/08/2017 09:45 PM, Michal Hocko wrote: > From: Michal Hocko > > do_pages_move is supposed to move user defined memory (an array of > addresses) to the user defined numa nodes (an array of nodes one for > each address). The user provided status array then contains resulting > numa node for ea

[PATCH v11 0/8] perf: Support for ARM DynamIQ Shared Unit

2018-01-02 Thread Suzuki K Poulose
This series adds support for the PMU in ARM DynamIQ Shared Unit (DSU). The DSU integrates one or more cores with an L3 memory system, control logic, and external interfaces to form a multicore cluster. The PMU allows counting the various events related to L3, SCU etc, using 32bit independent counte

Re: [PATCH] PM / runtime: Rework pm_runtime_force_suspend/resume()

2018-01-02 Thread Rafael J. Wysocki
On Tue, Jan 2, 2018 at 12:02 PM, Rafael J. Wysocki wrote: > On Tue, Jan 2, 2018 at 11:51 AM, Lukas Wunner wrote: >> On Tue, Jan 02, 2018 at 01:56:28AM +0100, Rafael J. Wysocki wrote: [cut] > >> One addition that would be really helpful: pm_runtime_force_suspend() >> should also force-suspend a

Re: [PATCH] ACPI / sysfs: fix shift-overflow in GPE flooding quirk mechanism

2018-01-02 Thread Du, Changbin
On Tue, Jan 02, 2018 at 11:18:31AM +0100, Rafael J. Wysocki wrote: > On Tue, Jan 2, 2018 at 7:36 AM, Du, Changbin wrote: > > Hi Wysocki and Brown, > > May I know wether you have checked this? Thanks! > > There's a commit changing this queued up already, see > https://patchwork.kernel.org/patch/10

Re: [PATCH] Bluetooth: hciuart: add nvmem dependency

2018-01-02 Thread Marcel Holtmann
Hi Arnd, > When the hci support is built-in, but mvmem is a loadable module, we > get a link failure: > > drivers/bluetooth/hci_ll.o: In function `hci_ti_probe': > hci_ll.c:(.text+0x226): undefined reference to `nvmem_cell_get' > hci_ll.c:(.text+0x238): undefined reference to `nvmem_cell_read' >

Re: [PATCH] eeprom: at24: check the return value of nvmem_unregister()

2018-01-02 Thread Srinivas Kandagatla
Thanks Bartosz fo adding me in to the loop!! On 28/12/17 21:42, Bartosz Golaszewski wrote: 2017-12-28 12:28 GMT+01:00 Johan Hovold : On Wed, Dec 27, 2017 at 03:10:38PM +0100, Bartosz Golaszewski wrote: This function can fail with -EBUSY, but we don't check its return value in at24_remove(). Ba

Re: [PATCH] arch: drop duplicate exports of abort()

2018-01-02 Thread Russell King - ARM Linux
On Tue, Jan 02, 2018 at 11:31:12AM +0100, Arnd Bergmann wrote: > We now have exports in both architecture code in in common code, > which causes a link failure when symbol versioning is eanbled, on > four architectures: > > kernel/exit.o: In function `__crc_abort': > exit.c:(*ABS*+0xc0e2ec8b): mul

Re: [PATCH] ocfs: fix fall-back-to-buffer-io-when-append-dio-is-disabled-with-file-hole-existing-fix

2018-01-02 Thread alex chen
Hi Arnd, On 2018/1/2 18:34, Arnd Bergmann wrote: > Fixes: mmotm > ("ocfs2-fall-back-to-buffer-io-when-append-dio-is-disabled-with-file-hole-existing-fix") I think this patch is not fit for mainline and will not be apply to mainline in the future. Andrew can remove it from mm-tree. Thanks, Alex

[PATCH] mfd: sprd: Add one syscon cell to access PMIC global registers

2018-01-02 Thread Baolin Wang
There are some global registers in Spreadtrum sc27xx PMICs, which will be accessed by other drivers. So this patch adds one syscon cell to help to access the PMIC's global registers. Signed-off-by: Baolin Wang --- drivers/mfd/sprd-sc27xx-spi.c |3 +++ 1 file changed, 3 insertions(+) diff --

[PATCH] sched/isolation: Make CPU_ISOLATION depend on SMP or COMPILE_TEST

2018-01-02 Thread Geert Uytterhoeven
On uniprocessor systems, critical and non-critical tasks cannot be isolated, as there is only a single CPU core. Hence enabling CPU isolation by default on such systems does not make much sense. Instead of changing the default for !SMP, fix this by making the feature depend on SMP, with an overri

Re: [PATCH] netfilter: add nf_queue_entry forward declaration

2018-01-02 Thread Pablo Neira Ayuso
On Tue, Jan 02, 2018 at 11:16:23AM +0100, Arnd Bergmann wrote: > The newly added callback pointers cause a warning for some configurations: > > In file included from net/ipv6/af_inet6.c:45:0: > include/linux/netfilter_ipv6.h:38:51: error: 'struct nf_queue_entry' declared > inside parameter list w

Re: [PATCH v5 0/7] Enhance libsas hotplug feature

2018-01-02 Thread John Garry
On 08/12/2017 09:42, Jason Yan wrote: Now the libsas hotplug has some issues, Dan Williams report a similar bug here before https://www.mail-archive.com/linux-scsi@vger.kernel.org/msg39187.html Hi Martin, James, At this point we feel that we have a decent solution to the long-standing libsas

Re: [PATCH] f2fs: check segment type before recover data

2018-01-02 Thread Yunlong Song
On 2018/1/2 14:49, Chao Yu wrote: On 2017/12/30 15:42, Yunlong Song wrote: In some case, the node blocks has wrong blkaddr whose segment type is You mean *data block* has wrong blkaddr whose segment type is NODE? Yes. NODE, e.g., recover inode has missing xattr flag and the blkaddr is in

Re: [PATCH] PM / runtime: Rework pm_runtime_force_suspend/resume()

2018-01-02 Thread Rafael J. Wysocki
On Tue, Jan 2, 2018 at 11:51 AM, Lukas Wunner wrote: > On Tue, Jan 02, 2018 at 01:56:28AM +0100, Rafael J. Wysocki wrote: >> + if (atomic_read(&dev->power.usage_count) <= 1 && >> + atomic_read(&dev->power.child_count) == 0) >> + pm_runtime_set_suspended(dev); >> >> - pm

[PATCH] arc: fix iounmap prototype

2018-01-02 Thread Arnd Bergmann
The missing 'volatile' keyword on the iounmap argument leads to lots of harmless warnings in an allmodconfig build: sound/pci/echoaudio/echoaudio.c:1879:10: warning: passing argument 1 of 'iounmap' discards 'volatile' qualifier f pointer target type [-Wdiscarded-qualifiers] Signed-off-by: Arnd B

Re: [Ocfs2-devel] [PATCH v3 2/3] ocfs2: add ocfs2_overwrite_io function

2018-01-02 Thread alex chen
Hi Gang, On 2017/12/28 18:07, Gang He wrote: > Add ocfs2_overwrite_io function, which is used to judge if > overwrite allocated blocks, otherwise, the write will bring extra > block allocation overhead. > > Signed-off-by: Gang He > --- > fs/ocfs2/extent_map.c | 45 ++

[PATCH] xtensa: shut up gcc-8 warnings

2018-01-02 Thread Arnd Bergmann
Many uses of strncpy() on xtensa causes a warning like arch/xtensa/include/asm/string.h:56:42: warning: array subscript is above array bounds [-Warray-bounds] : "0" (__dest), "1" (__src), "r" (__src+__n) This avoids the warning by turning the pointer arithmetic into an integer operation that

[PATCH] sh: shut up gcc-8 warnings

2018-01-02 Thread Arnd Bergmann
Many uses of strncpy() on sh causes a warning like arch/sh/include/asm/string_32.h:50:42: warning: array subscript is above array bounds [-Warray-bounds] This avoids the warning by turning the pointer arithmetic into an integer operation that does not get checked the same way. Signed-off-by: A

[PATCH] m32r: fix readl/writel prototypes

2018-01-02 Thread Arnd Bergmann
All other architectures use 'unsigned int' as the data in readl/write, but m32r uses 'unsigned long', leading to lots of harmless build warnings like: drivers/mmc/host/dw_mmc.c: In function 'dw_mci_regs_show': drivers/mmc/host/dw_mmc.c:168:31: warning: format '%x' expects argument of type 'unsign

Re: Documentation: OMAPDSS: move sysfs documentation to ABI

2018-01-02 Thread Aishwarya Pant
On Tue, Jan 02, 2018 at 12:16:18PM +0200, Tomi Valkeinen wrote: > Hi, > > On 02/01/18 10:54, Aishwarya Pant wrote: > > Hi > > > > In Documentation/arm/OMAP/DSS, there is a description of the DSS and FB > > sysfs > > interfaces which could be moved to Documentation/ABI. > > > > Would such a chan

Re: [PATCH v5 2/2] PCI: mediatek: Set up class type and vendor ID for MT7622

2018-01-02 Thread Lorenzo Pieralisi
On Thu, Dec 28, 2017 at 09:39:12AM +0800, Honghui Zhang wrote: > On Wed, 2017-12-27 at 12:45 -0600, Bjorn Helgaas wrote: > > On Wed, Dec 27, 2017 at 08:59:54AM +0800, honghui.zh...@mediatek.com wrote: > > > From: Honghui Zhang > > > > > > The hardware default value of IDs and class type is not co

[PATCH] Bluetooth: hciuart: add nvmem dependency

2018-01-02 Thread Arnd Bergmann
When the hci support is built-in, but mvmem is a loadable module, we get a link failure: drivers/bluetooth/hci_ll.o: In function `hci_ti_probe': hci_ll.c:(.text+0x226): undefined reference to `nvmem_cell_get' hci_ll.c:(.text+0x238): undefined reference to `nvmem_cell_read' hci_ll.c:(.text+0x244):

<    2   3   4   5   6   7   8   9   >