[PATCH v2 4/4] rtc: mediatek: update MAINTAINERS entry with MediaTek RTC driver

2017-10-17 Thread sean.wang
From: Sean Wang I work for MediaTek on maintaining the MediaTek SoC based RTC driver for the existing SoCs and keep adding support for the following SoCs in the future. Cc: Eddie Huang Signed-off-by: Sean Wang --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS

[PATCH v2 1/4] dt-bindings: rtc: mediatek: add bindings for MediaTek SoC based RTC

2017-10-17 Thread sean.wang
From: Sean Wang Add device-tree binding for MediaTek SoC based RTC Cc: devicet...@vger.kernel.org Signed-off-by: Sean Wang Acked-by: Rob Herring --- .../devicetree/bindings/rtc/rtc-mediatek.txt| 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentati

[PATCH v2 2/4] rtc: mediatek: add driver for RTC on MT7622 SoC

2017-10-17 Thread sean.wang
From: Sean Wang This patch introduces the driver for the RTC on MT7622 SoC. Signed-off-by: Sean Wang --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-mt7622.c | 418 +++ 3 files changed, 429 insertions(+) crea

[PATCH v2 3/4] rtc: mediatek: enhance the description for MediaTek PMIC based RTC

2017-10-17 Thread sean.wang
From: Sean Wang Give a better description for original MediaTek RTC driver as PMIC based RTC in order to distinguish SoC based RTC. Also turning all words with Mediatek to MediaTek here. Cc: Eddie Huang Signed-off-by: Sean Wang Acked-by: Eddie Huang --- drivers/rtc/Kconfig | 8 1 fi

Re: [PATCH] usb: isp1301-omap: Convert timers to use timer_setup()

2017-10-17 Thread Felipe Balbi
Hi, Greg Kroah-Hartman writes: >> Kees Cook writes: >> > In preparation for unconditionally passing the struct timer_list pointer to >> > all timer callbacks, switch to using the new timer_setup() and from_timer() >> > to pass the timer pointer explicitly. >> > >> > Cc: Felipe Balbi >> > Cc: G

Re: [PATCH V8 5/5] libata: Align DMA buffer to dma_get_cache_alignment()

2017-10-17 Thread Sergei Shtylyov
On 10/17/2017 11:05 AM, Huacai Chen wrote: In non-coherent DMA mode, kernel uses cache flushing operations to maintain I/O coherency, so in ata_do_dev_read_id() the DMA buffer should be aligned to ARCH_DMA_MINALIGN. Otherwise, If a DMA buffer and a kernel structure share a same cache line, and i

Re: [PATCH] writeback: Convert timers to use timer_setup()

2017-10-17 Thread Jan Kara
On Mon 16-10-17 15:59:13, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Andrew Morton > Cc: Jan Kara > Cc: Johannes Weine

Re: [PATCH 0/4] char-TPM: Adjustments for ten function implementations

2017-10-17 Thread Dan Carpenter
On Tue, Oct 17, 2017 at 10:56:42AM +0200, Julia Lawall wrote: > > > On Tue, 17 Oct 2017, Dan Carpenter wrote: > > > On Mon, Oct 16, 2017 at 09:35:12PM +0300, Jarkko Sakkinen wrote: > > > > > > A minor complaint: all commits are missing "Fixes:" tag. > > > > > > > Fixes is only for bug fixes. Th

Re: [PATCH -mm] mm, pagemap: Fix soft dirty marking for PMD migration entry

2017-10-17 Thread Anshuman Khandual
On 10/17/2017 01:48 PM, Huang, Ying wrote: > From: Huang Ying > > Now, when the page table is walked in the implementation of > /proc//pagemap, pmd_soft_dirty() is used for both the PMD huge > page map and the PMD migration entries. That is wrong, > pmd_swp_soft_dirty() should be used for the PM

Re: [PATCH v5 6/7] soc: mediatek: pwrap: add support for MT7622 SoC

2017-10-17 Thread Sean Wang
On Mon, 2017-10-16 at 17:00 +0200, Matthias Brugger wrote: > > On 10/16/2017 09:07 AM, sean.w...@mediatek.com wrote: > > From: Chenglin Xu > > > > Add the registers, callbacks and data structures required to make the > > PMIC wrapper work on MT7622. > > > > Signed-off-by: Chenglin Xu > > Signe

Re: [PATCH 6/7] ARM: dts: imx6ul: add support for TXUL modules on TXUL-Mainboard

2017-10-17 Thread Lothar Waßmann
Hi, On Mon, 16 Oct 2017 18:33:17 -0200 Fabio Estevam wrote: > Hi Lothar, > > On Fri, Oct 13, 2017 at 7:43 AM, Lothar Waßmann > wrote: > > > +/ { > > + aliases { > > + lcdif_24bit_pins_a = &pinctrl_disp0_3; > > + mmc0 = &usdhc1; > > Is this mmc0 alias really n

Re: [PATCH v2] usb: wusbcore: Use put_unaligned_le32

2017-10-17 Thread Greg KH
On Fri, Oct 06, 2017 at 08:38:07PM +0530, Himanshu Jha wrote: > Use put_unaligned_le32 rather than using byte ordering function and > memcpy which makes code clear. > Also, add the header file where it is declared. > > Done using Coccinelle and semantic patch used is : > > @ rule1 @ > identifier

Re: [PATCH] f2fs: use extra parenthesis around assignment/condition

2017-10-17 Thread Jan Kara
On Tue 17-10-17 11:07:12, Arnd Bergmann wrote: > gcc warns that writing a while() loop with an assignment as the condition > looks suspiciously like a comparison, and suggests a workaround: > > fs/f2fs/checkpoint.c: In function 'sync_meta_pages': > fs/f2fs/checkpoint.c:321:9: error: suggest parent

Re: [PATCH 1/2] change spaces into tabs in defines

2017-10-17 Thread Krzysztof Kozlowski
On Mon, Oct 16, 2017 at 7:43 PM, Kamil Konieczny wrote: > Change spaces into tabs in defines. > > Signed-off-by: Kamil Konieczny > --- > drivers/crypto/s5p-sss.c | 190 > +++ > 1 file changed, 95 insertions(+), 95 deletions(-) > Reviewed-by: Krzyszto

Re: [PATCH] ASoC: sgtl5000: add support for a fixed sysclk frequency

2017-10-17 Thread Fabio Estevam
Hi Jakob, On Tue, Oct 17, 2017 at 7:01 AM, Jakob Unterwurzacher wrote: > Hi Fabio, I think I found a way to get our use-case working with just DTS > configuration > for simple-audio-card. > > When you define the “clocks” property for the "simple-audio-card,cpu” > sub-node, > set_sysclk is call

Re: ARM64: Regression with commit e3067861ba66 ("arm64: add basic VMAP_STACK support")

2017-10-17 Thread Mark Rutland
On Tue, Oct 17, 2017 at 05:36:58PM +0800, Leo Yan wrote: > On Tue, Oct 17, 2017 at 10:32:21AM +0100, Ard Biesheuvel wrote: > > [...] > > > > AFAICT, erratum 836870 results in livelock rather than memory > > > corruption, so I think we can ignore that. > > > > > > I'm a little worried by erratum 8

Re: [PATCH 06/23] drm/sun4i: tcon: Don't rely on encoders to set the TCON mode

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > Just like we did for the TCON enable and disable, for historical reasons we > used to rely on the encoders calling the TCON mode_set function, while the > CRTC has a callback for that. > > Let's implement it in order to reduce the boilerplate

Re: ARM64: Regression with commit e3067861ba66 ("arm64: add basic VMAP_STACK support")

2017-10-17 Thread Ard Biesheuvel
On 17 October 2017 at 10:36, Leo Yan wrote: > On Tue, Oct 17, 2017 at 10:32:21AM +0100, Ard Biesheuvel wrote: > > [...] > >> > AFAICT, erratum 836870 results in livelock rather than memory >> > corruption, so I think we can ignore that. >> > >> > I'm a little worried by erratum 843419. The VMAP_ST

Re: [PATCH 07/23] drm/sun4i: tcon: Move out the tcon0 common setup

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > Some channel0 setup has to be done, no matter what the output interface is > (RGB, CPU, LVDS). Move that code into a common function in order to avoid > duplication. > > Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai

Re: [PATCH 08/23] dt-bindings: panel: lvds: Document power-supply property

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The power-supply property is used be a vast majority of panels, including ^^^ typo ChenYu

Re: [PATCH 2/4] arm64: prevent instrumentation of LL/SC atomics

2017-10-17 Thread Will Deacon
On Mon, Oct 16, 2017 at 02:24:38PM +0100, Mark Rutland wrote: > While we build the LL/SC atomics as a C object file, this does not > follow the AAPCS. This does not interoperate with other C code, and can > only be called from special wrapper assembly. > > Bulding a kernel with CONFIG_KCOV and CON

Re: [PATCH 09/23] drm/panel: lvds: Add support for the power-supply property

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > A significant number of panels need to power up a regulator in order to > operate properly. Add support for the power-supply property to enable and > disable such a regulator whenever needed. > > Signed-off-by: Maxime Ripard Reviewed-by: Ch

Re: [PATCH 10/23] clk: sunxi-ng: Add A83T display clocks

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > Unfortunately, the A83t display clocks are not children of the de clock, > since that clocks doesn't exist at all on the A83t. > > For now, they are orphans, so let's move them to their true, existing, > parent. > > Fixes: 763c5bd045b1 ("clk:

Re: [PATCH] kobject: record and send PREV_SEQNUM with uevents

2017-10-17 Thread Peter Rajnoha
On 10/16/2017 04:49 PM, Greg KH wrote: > On Mon, Oct 16, 2017 at 04:00:26PM +0200, Peter Rajnoha wrote: >> On 10/16/2017 03:55 PM, Greg KH wrote: >>> On Mon, Oct 16, 2017 at 02:35:44PM +0200, Peter Rajnoha wrote: Record last uevent seqnum that was used with kobject's uevent and send it wi

Re: [PATCH 2/2] Add HASH support for Exynos

2017-10-17 Thread Krzysztof Kozlowski
On Mon, Oct 16, 2017 at 7:43 PM, Kamil Konieczny wrote: > Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. > It uses the crypto framework asynchronous hash api. > It is based on omap-sham.c driver. > S5P has some HW differencies and is not implemented. > > Modifications in s5p-sss:

Re: [PATCH] reset: meson: add level reset support for GX SoC family

2017-10-17 Thread Philipp Zabel
Hi Neil, On Mon, 2017-10-16 at 17:26 +0200, Neil Armstrong wrote: > The Amlogic GX SoC family embeds alternate registers to drive the reset > levels next to the pulse registers. > > This patch adds support for level reset handling on the GX family only. > > The Meson8 family has an alternate way

Re: [PATCH 11/23] drm/sun4i: Rename layers to UI planes

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The currently supported planes for DE2 are actually only UI planes, and the > VI planes will differ both in terms of code and features. > > It will make sense to support them in a separate file, so let's make sure > we don't create a confusin

Re: [PATCH] reset: meson: add level reset support for GX SoC family

2017-10-17 Thread Neil Armstrong
On 17/10/2017 12:08, Philipp Zabel wrote: > Hi Neil, > > On Mon, 2017-10-16 at 17:26 +0200, Neil Armstrong wrote: >> The Amlogic GX SoC family embeds alternate registers to drive the reset >> levels next to the pulse registers. >> >> This patch adds support for level reset handling on the GX famil

[PATCH] net: export netdev_txq_to_tc to allow sch_mqprio to compile as module

2017-10-17 Thread Henrik Austad
In commit 32302902ff09 ("mqprio: Reserve last 32 classid values for HW traffic classes and misc IDs") sch_mqprio started using netdev_txq_to_tc to find the correct tc instead of dev->tc_to_txq[] However, when mqprio is compiled as a module, it cannot resolve the symbol, leading to this error:

Re: [PATCH 0/4] char-TPM: Adjustments for ten function implementations

2017-10-17 Thread Julia Lawall
On Tue, 17 Oct 2017, Dan Carpenter wrote: > On Tue, Oct 17, 2017 at 10:56:42AM +0200, Julia Lawall wrote: > > > > > > On Tue, 17 Oct 2017, Dan Carpenter wrote: > > > > > On Mon, Oct 16, 2017 at 09:35:12PM +0300, Jarkko Sakkinen wrote: > > > > > > > > A minor complaint: all commits are missing "F

Re: [PATCH v2 00/15] make structure field, function arguments and structures const

2017-10-17 Thread Greg KH
On Mon, Oct 16, 2017 at 05:18:39PM +0200, Bhumika Goyal wrote: > Make the ci_type field and some function arguments as const. After this > change, make config_item_type structures as const. > > * Changes in v2- Combine all the followup patches and the constification > patches into a series. Who d

Re: [PATCH] media: vb2: unify calling of set_page_dirty_lock

2017-10-17 Thread Sakari Ailus
On Sun, Oct 15, 2017 at 07:09:24PM -0400, Nicolas Dufresne wrote: > Le dimanche 15 octobre 2017 à 23:40 +0300, Sakari Ailus a écrit : > > Hi Nicolas, > > > > On Tue, Oct 10, 2017 at 11:40:10AM -0400, Nicolas Dufresne wrote: > > > Le mardi 29 août 2017 à 14:26 +0300, Stanimir Varbanov a écrit : > >

linux-next: net/sched/cls_flower.c

2017-10-17 Thread Mark Brown
Hi all, After merging the net-next tree, today's linux-next build (x86_allmodconfig) failed like this: /home/broonie/tmpfs/next/net/sched/cls_flower.c: In function 'fl_hw_destroy_filter': /home/broonie/tmpfs/next/net/sched/cls_flower.c:208:12: error: 'struct tc_cls_flower_offload' has no member

Re: [PATCH 14/23] drm/sun4i: Create minimal multipliers and dividers

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The various outputs the TCON can provide have different constraints on the > dotclock divider. Let's make them configurable by the various mode_set > functions. > > Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai

Re: [PATCH] zram: make function zram_page_end_io static

2017-10-17 Thread Sergey Senozhatsky
(Ccing Andrew, message id: 20171016173336.20320-1-colin.k...@canonical.com ) On (10/16/17 18:33), Colin King wrote: > The function zram_page_end_io is local to the source and > does not need to be in global scope, so make it static. > > Cleans up sparse warning: > symbol 'zram_page_end_io' was no

Re: [PATCH v2 00/15] make structure field, function arguments and structures const

2017-10-17 Thread Julia Lawall
On Tue, 17 Oct 2017, Greg KH wrote: > On Mon, Oct 16, 2017 at 05:18:39PM +0200, Bhumika Goyal wrote: > > Make the ci_type field and some function arguments as const. After this > > change, make config_item_type structures as const. > > > > * Changes in v2- Combine all the followup patches and th

[RFC PATCH v4 3/8] drm/rockchip: dw-mipi-dsi: Fix error handling path

2017-10-17 Thread Jeffy Chen
Add missing pm_runtime_disable() in bind()'s error handling path. Also cleanup encoder & connector in unbind(). Fixes: 80a9a059d4e4 ("drm/rockchip/dsi: add dw-mipi power domain support") Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/gpu/drm/

[RFC PATCH v4 5/8] drm/rockchip: inno_hdmi: Fix error handling path

2017-10-17 Thread Jeffy Chen
Add missing error handling in bind(). Fixes: 412d4ae6b7a5 ("drm/rockchip: hdmi: add Innosilicon HDMI support") Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/gpu/drm/rockchip/inno_hdmi.c | 20 1 file changed, 16 insertions

[RFC PATCH v4 0/8] rockchip: kevin: Enable edp display

2017-10-17 Thread Jeffy Chen
Make edp display works on chromebook kevin(at least for boot animation). Also solve some issues i meet during the bringup. Changes in v4: Fix compile warning. Changes in v3: Assign orphan pwms to dummy pwmchip instead of adding device link in the customer driver. Changes in v2: Use device link

[RFC PATCH v4 2/8] drm/rockchip: analogix_dp: Fix error handling path

2017-10-17 Thread Jeffy Chen
Add missing error handling in rockchip_dp_bind(). Fixes: 9e32e16e9e98 ("drm: rockchip: dp: add rockchip platform dp driver") Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 14 -- 1 file cha

[RFC PATCH v4 7/8] pwm: Add dummy pwmchip for orphan pwms

2017-10-17 Thread Jeffy Chen
When the pwm driver is unbound while the pwm is still requested, the pwm core would not actually remove the pwmchip(return -EBUSY instead). So it would hold some references to the invalid resources(e.g. pwmchip). And the customer who requested the pwm would have those references too, and may cras

[RFC PATCH v4 6/8] drm/bridge/analogix: Do not use device's drvdata

2017-10-17 Thread Jeffy Chen
From: Tomasz Figa The driver that instantiates the bridge should own the drvdata, as all driver model callbacks (probe, remove, shutdown, PM ops, etc.) are also owned by its driver struct. Moreover, storing two different pointer types in driver data depending on driver initialization status is ba

[RFC PATCH v4 8/8] drm/rockchip: Add device links for master and components

2017-10-17 Thread Jeffy Chen
Since we are trying to access components' resources in the master's suspend/resume PM callbacks(e.g. panel), add device links to correct the suspend/resume and shutdown ordering. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None Changes in v2: Use device link to correct the s

[RFC PATCH v4 4/8] drm/rockchip: dw_hdmi: Fix error handling path

2017-10-17 Thread Jeffy Chen
Add missing clk_disable_unprepare() in bind()'s error handling path. Fixes: 12b9f204e804 ("drm: bridge/dw_hdmi: add rockchip rk3288 support") Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 4 +++- 1 file c

[PATCH v2] reset: meson: add level reset support for GX SoC family

2017-10-17 Thread Neil Armstrong
The Amlogic GX SoC family embeds alternate registers to drive the reset levels next to the pulse registers. This patch adds support for level reset handling on the GX family only. The Meson8 family has an alternate way to handle level reset. Signed-off-by: Neil Armstrong --- drivers/reset/rese

Re: [PATCH v2 08/15] nvmet: make config_item_type const

2017-10-17 Thread Sagi Grimberg
Acked-by: Sagi Grimberg

[RFC PATCH v4 1/8] arm64: dts: rockchip: Enable edp disaplay on kevin

2017-10-17 Thread Jeffy Chen
Add edp panel and enable related nodes on kevin. Signed-off-by: Jeffy Chen Reviewed-by: Mark Yao --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 29 +++ arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi |

[PATCH] reset: meson: remove unneeded check in meson_reset_reset

2017-10-17 Thread Neil Armstrong
The if (bank >= REG_COUNT) is not need since already checked by the default rcdev->of_xlate implementation which guarantees that id < rcdev->nr_resets. Suggested-by: Philipp Zabel Signed-off-by: Neil Armstrong --- drivers/reset/reset-meson.c | 3 --- 1 file changed, 3 deletions(-) diff --git a

Re: [PATCH v2 7/9] usb: host: modify description for MTK xHCI config

2017-10-17 Thread Greg Kroah-Hartman
On Fri, Oct 13, 2017 at 01:32:14PM +0300, Mathias Nyman wrote: > On 13.10.2017 11:26, Chunfeng Yun wrote: > > Due to all MediaTek SoCs with xHCI host controller use this > > driver, remove limitation for specific SoCs > > > > Signed-off-by: Chunfeng Yun > > --- > > xHCI parts of series look good

Re: [PATCH 1/2] mm, thp: introduce dedicated transparent huge page allocation interfaces

2017-10-17 Thread Michal Hocko
[CC Kirill] On Mon 16-10-17 17:19:16, changbin...@intel.com wrote: > From: Changbin Du > > This patch introduced 4 new interfaces to allocate a prepared > transparent huge page. > - alloc_transhuge_page_vma > - alloc_transhuge_page_nodemask > - alloc_transhuge_page_node > - alloc_transhu

Re: linux-next: net/sched/cls_flower.c

2017-10-17 Thread Jiri Pirko
Tue, Oct 17, 2017 at 12:15:09PM CEST, broo...@kernel.org wrote: >Hi all, > >After merging the net-next tree, today's linux-next build >(x86_allmodconfig) failed like this: > >/home/broonie/tmpfs/next/net/sched/cls_flower.c: In function >'fl_hw_destroy_filter': >/home/broonie/tmpfs/next/net/sched/c

Re: [PATCH v4 2/2] acpi: apei: Add SEI notification type support for ARMv8

2017-10-17 Thread kbuild test robot
-dead-code-for-SEA-NMI-notification-type/20171017-141237 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next config: x86_64-kexec (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree

Re: [PATCH 1/2] mm, thp: introduce dedicated transparent huge page allocation interfaces

2017-10-17 Thread Michal Hocko
On Tue 17-10-17 12:20:52, Michal Hocko wrote: > [CC Kirill] now for real > On Mon 16-10-17 17:19:16, changbin...@intel.com wrote: > > From: Changbin Du > > > > This patch introduced 4 new interfaces to allocate a prepared > > transparent huge page. > > - alloc_transhuge_page_vma > > - alloc

Re: [PATCH 2/2] mm: rename page dtor functions to {compound,huge,transhuge}_page__dtor

2017-10-17 Thread Michal Hocko
On Mon 16-10-17 17:19:17, changbin...@intel.com wrote: > From: Changbin Du > > The current name free_{huge,transhuge}_page are paired with > alloc_{huge,transhuge}_page functions, but the actual page free > function is still free_page() which will indirectly call > free_{huge,transhuge}_page. So

Re: [PATCH v2 00/15] make structure field, function arguments and structures const

2017-10-17 Thread Greg KH
On Tue, Oct 17, 2017 at 12:16:18PM +0200, Julia Lawall wrote: > > > On Tue, 17 Oct 2017, Greg KH wrote: > > > On Mon, Oct 16, 2017 at 05:18:39PM +0200, Bhumika Goyal wrote: > > > Make the ci_type field and some function arguments as const. After this > > > change, make config_item_type structure

Re: [PATCH v2 01/15] configfs: make ci_type field, some pointers and function arguments const

2017-10-17 Thread Greg KH
On Mon, Oct 16, 2017 at 05:18:40PM +0200, Bhumika Goyal wrote: > The ci_type field of the config_item structure do not modify the fields > of the config_item_type structure it points to. And the other pointers > initialized with ci_type do not modify the fields as well. > So, make the ci_type field

[PATCH, net-next] i40e: avoid 64-bit division where possible

2017-10-17 Thread Arnd Bergmann
The new bandwidth calculation causes a link error on 32-bit architectures, like ERROR: "__aeabi_uldivmod" [drivers/net/ethernet/intel/i40e/i40e.ko] undefined! The problem is the max_tx_rate calculation that uses 64-bit integers. This is not really necessary since the numbers are in MBit/s so they

Re: [PATCH v2 11/15] stm class: make config_item_type const

2017-10-17 Thread Greg KH
On Mon, Oct 16, 2017 at 05:18:50PM +0200, Bhumika Goyal wrote: > Make config_item_type structures const as they are either passed to a > function having the argument as const or used inside a if statement or > stored in the const "ci_type" field of a config_item structure. > > Done using Coccinell

Re: linux-next: net/sched/cls_flower.c

2017-10-17 Thread Mark Brown
On Tue, Oct 17, 2017 at 11:15:09AM +0100, Mark Brown wrote: > Caused by commit > > 7578d7b45ed870b13a8ace57e32feaed623c2a94 ("net/sched: cls_flower: Set > egress_dev mark when calling into the HW driver") Cut'n'paste error, this should be c019b5166e11faaf9ed3b64316ed338eaa19de60 Sorry abou

Re: linux-next: net/sched/cls_flower.c

2017-10-17 Thread Mark Brown
On Tue, Oct 17, 2017 at 12:21:07PM +0200, Jiri Pirko wrote: > Tue, Oct 17, 2017 at 12:15:09PM CEST, broo...@kernel.org wrote: > >/home/broonie/tmpfs/next/net/sched/cls_flower.c:270:27: error: 'struct > >cls_fl_filter' has no member named 'hw_dev' > > cls_flower.egress_dev = f->hw_dev != tp->q->d

Re: [PATCH] can: check for null sk before deferencing it via the call to sock_net

2017-10-17 Thread Marc Kleine-Budde
On 09/08/2017 05:02 PM, Colin King wrote: > From: Colin Ian King > > The assignment of net via call sock_net will dereference sk. This > is performed before a sanity null check on sk, so there could be > a potential null dereference on the sock_net call if sk is null. > Fix this by assigning net

Re: [PATCH] bpf: devmap: Check attr->max_entries more carefully

2017-10-17 Thread Mark Rutland
On Mon, Oct 16, 2017 at 08:52:13PM +0200, Daniel Borkmann wrote: > [ +Tejun, Mark, John ] > > On 10/16/2017 12:00 AM, Richard Weinberger wrote: > > max_entries is user controlled and used as input for __alloc_percpu(). > > This function expects that the allocation size is a power of two and > > le

Re: [PATCH 2/2] Add HASH support for Exynos

2017-10-17 Thread Kamil Konieczny
On 17.10.2017 12:07, Krzysztof Kozlowski wrote: > On Mon, Oct 16, 2017 at 7:43 PM, Kamil Konieczny > wrote: >> Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. >>[...] >> +#if IS_ENABLED(CONFIG_CRYPTO_DEV_EXYNOS_HASH) > > I missed that in v5 because you wrote it is fixed... but

Re: [PATCH] bpf: devmap: Check attr->max_entries more carefully

2017-10-17 Thread Daniel Borkmann
On 10/17/2017 12:29 PM, Mark Rutland wrote: On Mon, Oct 16, 2017 at 08:52:13PM +0200, Daniel Borkmann wrote: [ +Tejun, Mark, John ] On 10/16/2017 12:00 AM, Richard Weinberger wrote: max_entries is user controlled and used as input for __alloc_percpu(). This function expects that the allocation

Re: [PATCH 07/58] net/usb/usbnet: Convert timers to use timer_setup()

2017-10-17 Thread Oliver Neukum
Am Montag, den 16.10.2017, 17:28 -0700 schrieb Kees Cook: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. Since the callback is called from > both a ti

Re: [PATCH v5 6/7] soc: mediatek: pwrap: add support for MT7622 SoC

2017-10-17 Thread Matthias Brugger
On 10/17/2017 11:49 AM, Sean Wang wrote: On Mon, 2017-10-16 at 17:00 +0200, Matthias Brugger wrote: On 10/16/2017 09:07 AM, sean.w...@mediatek.com wrote: From: Chenglin Xu Add the registers, callbacks and data structures required to make the PMIC wrapper work on MT7622. Signed-off-by: Che

Re: [PATCH v4 2/2] acpi: apei: Add SEI notification type support for ARMv8

2017-10-17 Thread gengdongjiu
improve the system] > > url: > https://github.com/0day-ci/linux/commits/Dongjiu-Geng/acpi-apei-remove-the-unused-dead-code-for-SEA-NMI-notification-type/20171017-141237 > base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > linux-next > config: x86_64-ke

Re: [PATCH 16/23] drm/sun4i: Add A83T support

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > Add support for the A83T display pipeline. > > Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai

Re: [PATCH 5/8] video: fbdev: au1200fb: Fix error handling path

2017-10-17 Thread walter harms
Am 16.10.2017 21:04, schrieb Christophe JAILLET: > Rewrite the exit path based on 'au1200fb_drv_remove()'. > We can safely iterate for all already handled planes. Even if not > completely initialized, the functions that are called will silently accept > the 'fb_info' structure that is passed. >

Re: [RFC PATCH for 4.15 14/14] Restartable sequences: Provide self-tests

2017-10-17 Thread Michael Ellerman
Mathieu Desnoyers writes: > Hi Michael, > > With your changes integrated, both rseq and cpu-opv selftests fail to > build if I pass e.g. -j32 to make. > > cd tools/testing/selftests/cpu-opv > > efficios@compudjdev:~/git/linux-percpu-dev/tools/testing/selftests/cpu-opv$ > make clean; make > rm -f

Re: [PATCH 1/4] kbuild: allow global override of CC instrumentation

2017-10-17 Thread Will Deacon
On Mon, Oct 16, 2017 at 02:24:37PM +0100, Mark Rutland wrote: > Currently, we have a number of compiler instrumentation features, each > with its own overrides to disable instrumentation of a file or > directory. > > In a few cases, there are files with special ABI requirements, for which > we nee

Re: [PATCH 2/4] clk: tegra: check BPMP response return code

2017-10-17 Thread Thierry Reding
On Thu, Sep 07, 2017 at 12:31:02PM +0300, Timo Alho wrote: > Check return code in BPMP response message(s). The typical error case > is when clock operation is attempted with invalid clock identifier. > > Also remove error print from call to clk_get_info() as the > implementation loops through ran

Re: [RFC PATCH for 4.15 14/14] Restartable sequences: Provide self-tests

2017-10-17 Thread Michael Ellerman
Mathieu Desnoyers writes: > - On Oct 15, 2017, at 10:51 PM, Michael Ellerman m...@ellerman.id.au > wrote: > >> Mathieu Desnoyers writes: >> >>> Implements two basic tests of RSEQ functionality, and one more >>> exhaustive parameterizable test. >>> >>> The first, "basic_test" only asserts t

Re: [PATCH v2 7/9] usb: host: modify description for MTK xHCI config

2017-10-17 Thread Mathias Nyman
On 17.10.2017 13:20, Greg Kroah-Hartman wrote: On Fri, Oct 13, 2017 at 01:32:14PM +0300, Mathias Nyman wrote: On 13.10.2017 11:26, Chunfeng Yun wrote: Due to all MediaTek SoCs with xHCI host controller use this driver, remove limitation for specific SoCs Signed-off-by: Chunfeng Yun --- xHCI

Re: [PATCH 3/4] reset: tegra: check BPMP response return code

2017-10-17 Thread Thierry Reding
On Thu, Sep 07, 2017 at 12:31:03PM +0300, Timo Alho wrote: > Add checks for return code in BPMP response message. > > Signed-off-by: Timo Alho > --- > drivers/reset/tegra/reset-bpmp.c | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) Hi Philipp, Would you provide an Acked-by on t

Re: [PATCH 4/4] soc/tegra: bpmp: check BPMP response return code

2017-10-17 Thread Thierry Reding
On Thu, Sep 07, 2017 at 12:31:04PM +0300, Timo Alho wrote: > Add checks for return code in BPMP response message. > > Signed-off-by: Timo Alho > --- > drivers/soc/tegra/powergate-bpmp.c | 15 +-- > 1 file changed, 13 insertions(+), 2 deletions(-) Applied, thanks. Thierry signatur

Re: [PATCH 1/4] firmware: tegra: propagate error code to caller

2017-10-17 Thread Thierry Reding
On Thu, Sep 07, 2017 at 12:31:01PM +0300, Timo Alho wrote: > Response messages from Tegra BPMP firmware contain an error return > code as the first word of payload. The error code is used to indicate > incorrectly formatted request message or use of non-existing resource > (clk, reset, powergate) i

linux-next: net/sched/sch_mqprio.c

2017-10-17 Thread Mark Brown
Hi all, After merging the net-next tree, today's linux-next build (KCONFIG_NAME) failed like this: ERROR: "netdev_txq_to_tc" [net/sched/sch_mqprio.ko] undefined! /home/broonie/tmpfs/next/scripts/Makefile.modpost:91: recipe for target '__modpo st' failed Caused by commit 32302902ff093 ("mqprio

Re: [PATCH]Support new Alps HID Touchpad device

2017-10-17 Thread Jiri Kosina
On Fri, 6 Oct 2017, Masaki Ota wrote: > Sorry, I have fixed the build warning error, and send the patch again. Hi, I have now applied the series. Please note that I've modified both the changelogs and shortlogs to really match the kernel (and HID susbsytem) style. Please look at them, and make

Re: [PATCH V2] firmware: tegra: add BPMP debugfs support

2017-10-17 Thread Thierry Reding
On Tue, Oct 03, 2017 at 09:12:13AM +0300, Timo Alho wrote: > Tegra power management firmware running on co-processor (BPMP) > implements a simple pseudo file system akin to debugfs. The file > system can be used for debugging purposes to examine and change the > status of selected resources control

[PATCH] spi: fix bogus SPI bus number

2017-10-17 Thread Arnd Bergmann
lkft found a boot time regression on the Hikey board that has no aliases entry for spi buses. of_alias_get_highest_id() here returns -ENODEV, which is then used as the initial number for the IDR allocation, and that in turn triggers a WARN_ON: WARNING: CPU: 3 PID: 53 at include/linux/idr.h:113 sp

Re: [PATCH 17/23] arm: dts: sun8i: a83t: Add display pipeline

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The display pipeline on the A83T is mainly composed of the mixers and > TCONs, plus various encoders. > > Let's add the mixers and TCONs to the DTSI. You are only adding half of them, i.e. only the first pipeline. Please mention why. > > Si

[PATCH 1/4] drm/msm/dsi: convert to msm_clk_get()

2017-10-17 Thread Rob Clark
We already have, as a result of upstreaming the gpu bindings, msm_clk_get() which will try to get the clock both without and with a "_clk" suffix. Use this in DSI code so we can drop the "_clk" suffix in bindings while maintaing backwards compatibility. Signed-off-by: Rob Clark --- drivers/gpu/

RE: [RFC PATCH 3/3] mm/map_contig: Add mmap(MAP_CONTIG) support

2017-10-17 Thread Guy Shattah
> > On 16/10/2017 11:24, Michal Hocko wrote: > > > On Sun 15-10-17 10:50:29, Guy Shattah wrote: > > > > > > > > On 13/10/2017 19:17, Michal Hocko wrote: > > > > > On Fri 13-10-17 10:56:13, Cristopher Lameter wrote: > > > > > > On Fri, 13 Oct 2017, Michal Hocko wrote: > > > > > > > > There are num

[PATCH 3/4] drm/msm/hdmi: convert to msm_clk_get()

2017-10-17 Thread Rob Clark
We already have, as a result of upstreaming the gpu bindings, msm_clk_get() which will try to get the clock both without and with a "_clk" suffix. Use this in HDMI code so we can drop the "_clk" suffix in bindings while maintaing backwards compatibility. Signed-off-by: Rob Clark --- drivers/gpu

[PATCH 4/4] dt-bindings: display: msm: update clk names

2017-10-17 Thread Rob Clark
Now that drm/msm is converted over to use msm_get_clk() everywhere (that matters), which handles falling back to looking for a clock with the "_clk" suffix, we can remove "_clk" from the documentation so that new dts files added do not include "_clk" in the name. Previously we were doing this for

[PATCH 2/4] drm/msm/edp: convert to msm_clk_get()

2017-10-17 Thread Rob Clark
We already have, as a result of upstreaming the gpu bindings, msm_clk_get() which will try to get the clock both without and with a "_clk" suffix. Use this in eDP code so we can drop the "_clk" suffix in bindings while maintaing backwards compatibility. Signed-off-by: Rob Clark --- drivers/gpu/

Re: [PATCH 20/23] arm: dts: sun8i: a83t: Add the PWM pin group

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The A83T has a PWM that can be output from the SoC. Let's add a pinctrl > group for it. > > Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai

Re: [PATCH 19/23] arm: dts: sun8i: a83t: Add LVDS pins group

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The A83T has an LVDS bus that can be connected to a panel or a bridge. Add > the pinctrl group for it. > > Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai

Re: [PATCH v9 17/20] crypto: talitos: move to generic async completion

2017-10-17 Thread Christophe LEROY
Le 15/10/2017 à 11:20, Gilad Ben-Yossef a écrit : The talitos driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Tested-by: Christophe Leroy --- drivers/crypto/talitos.c | 38 +-

Re: [PATCH 3/4] reset: tegra: check BPMP response return code

2017-10-17 Thread Philipp Zabel
Hi Thierry, On Tue, 2017-10-17 at 12:40 +0200, Thierry Reding wrote: > On Thu, Sep 07, 2017 at 12:31:03PM +0300, Timo Alho wrote: > > Add checks for return code in BPMP response message. > > > > Signed-off-by: Timo Alho > > --- > > drivers/reset/tegra/reset-bpmp.c | 9 - > > 1 file chan

Re: [PATCH 22/23] arm: dts: sun8i: a711: Enable USB OTG

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: No description? > Signed-off-by: Maxime Ripard Changes look good, though unrelated to the rest of the series. ChenYu

Re: [PATCH 2/4] arm64: prevent instrumentation of LL/SC atomics

2017-10-17 Thread Mark Rutland
On Tue, Oct 17, 2017 at 11:03:15AM +0100, Will Deacon wrote: > On Mon, Oct 16, 2017 at 02:24:38PM +0100, Mark Rutland wrote: > > While we build the LL/SC atomics as a C object file, this does not > > follow the AAPCS. This does not interoperate with other C code, and can > > only be called from spe

Re: [PATCH v2 12/15] RDMA/cma: make config_item_type const

2017-10-17 Thread Leon Romanovsky
On Mon, Oct 16, 2017 at 05:18:51PM +0200, Bhumika Goyal wrote: > Make these structures const as they are either passed to the functions > having the argument as const or stored as a reference in the "ci_type" > const field of a config_item structure. > > Signed-off-by: Bhumika Goyal > --- > * Chan

Re: [PATCH 2/4] arm64: prevent instrumentation of LL/SC atomics

2017-10-17 Thread Will Deacon
On Tue, Oct 17, 2017 at 11:54:54AM +0100, Mark Rutland wrote: > On Tue, Oct 17, 2017 at 11:03:15AM +0100, Will Deacon wrote: > > On Mon, Oct 16, 2017 at 02:24:38PM +0100, Mark Rutland wrote: > > > While we build the LL/SC atomics as a C object file, this does not > > > follow the AAPCS. This does n

Re: [RFC PATCH 3/3] mm/map_contig: Add mmap(MAP_CONTIG) support

2017-10-17 Thread Michal Hocko
On Tue 17-10-17 10:50:02, Guy Shattah wrote: [...] > > Well, we can provide a generic library functions for your driver to use so > > that > > you do not have to care about implementation details but I do not think > > exposing this API to the userspace in a generic fashion is a good idea. > > Esp

more build problems with "Makefile: move stackprotector availability out of Kconfig"

2017-10-17 Thread Arnd Bergmann
Hi Kees, On my test box, current linux-next kernels fail to build due to the patch that introduces CONFIG_CC_STACKPROTECTOR_AUTO, with my mainline gcc builds up to gcc-5.5.0. gcc-6 and higher work fine, as scripts/gcc-x86_64-has-stack-protector.sh returns 'y' for those. Using the compilers provid

Re: 【BUG】The kernel start fail when enable CONFIG_ARM64_LSE_ATOMICS and KCOV_INSTRUMENT_ALL

2017-10-17 Thread Mark Rutland
On Tue, Oct 17, 2017 at 01:54:35PM +0800, Bixuan Cui wrote: > Hi, Hi, > I try to start the kernel(v4.14.0-rc4) by qemu while enable > CONFIG_ARM64_LSE_ATOMICS and KCOV_INSTRUMENT_ALL(use > arch/arm64/configs/defconfig) at the same time. Then > it hang: > qemu-system-aarch64 -kernel Image -m 204

Re: [PATCH v2] reset: meson: add level reset support for GX SoC family

2017-10-17 Thread Philipp Zabel
On Tue, 2017-10-17 at 12:19 +0200, Neil Armstrong wrote: > The Amlogic GX SoC family embeds alternate registers to drive the reset > levels next to the pulse registers. > > This patch adds support for level reset handling on the GX family only. > > The Meson8 family has an alternate way to handle

Re: [PATCH 3/4] char/tpm: Improve a size determination in nine functions

2017-10-17 Thread Andy Shevchenko
On Mon, 2017-10-16 at 19:33 +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 16 Oct 2017 18:28:17 +0200 > > Replace the specification of data structures by pointer dereferences > as the parameter for the operator "sizeof" to make the corresponding > size > determination a bit s

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