Re: [PATCH 2/2] Revert "mfd: cros_ec: Use devm_kzalloc for private data"

2018-07-04 Thread Lee Jones
On Wed, 20 Jun 2018, Dmitry Torokhov wrote: > This reverts commit 3aa2177e47878f7e7616da8a2050c44f22301b6e. > > Linux device objects are refcounted and thus should not be allocated > with devm API as they may outlive the timeframe of another device being > bound to a driver. > --- > drivers/mfd/

Re: [PATCH] dma: add support for reporting pause and resume separately

2018-07-04 Thread Vinod
Hi Marek, On 02-07-18, 15:08, Marek Szyprowski wrote: > 'cmd_pause' DMA channel capability means that respective DMA engine > supports both pausing and resuming given DMA channel. However, in some > cases it is important to know if DMA channel can be paused without the > need to resume it. This is

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Mike Rapoport
On Tue, Jul 03, 2018 at 12:57:22PM -0700, Andrew Morton wrote: > On Tue, 3 Jul 2018 20:05:06 +0300 Mike Rapoport > wrote: > > > Most functions in memblock already use phys_addr_t to represent a physical > > address with __memblock_free_late() being an exception. > > > > This patch replaces u64

linux-kernel@vger.kernel.org

2018-07-04 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: 32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f ("[PATCH] perf tests: Fix regex for record+probe_libc_inet_pton.sh") url: https://github.com/0day-ci/linux/commits/Sandipan-Das/perf-tests-Fix-regex-for-record-probe_libc_inet_pton-sh/20180

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Mike Rapoport
On Tue, Jul 03, 2018 at 01:24:07PM -0700, Joe Perches wrote: > On Tue, 2018-07-03 at 12:57 -0700, Andrew Morton wrote: > > Did you see all this checkpatch noise? > > > > : WARNING: Deprecated vsprintf pointer extension '%pF' - use %pS instead > > : #54: FILE: mm/memblock.c:1348: > > : + memblock_d

Re: [PATCH 1/4] i2c: imx: Fix reinit_completion() use

2018-07-04 Thread Uwe Kleine-König
Cc += Yuan Yao who authored DMA support and the NXP team. On Wed, May 23, 2018 at 11:56:20AM +0200, Esben Haabendal wrote: > From: Esben Haabendal > > Make sure to call reinit_completion() before dma is started to avoid race > condition where reinit_compleition() is called after complete() and b

Re: [PATCH v1] ARM: dts: imx6sl-evk: keep sw4 always on

2018-07-04 Thread Lothar Waßmann
Hi, On Wed, 4 Jul 2018 01:42:54 + Robin Gong wrote: > On 二, 2018-07-03 at 08:10 -0300, Fabio Estevam wrote: > > Hi Anson, > > > > On Tue, Jul 3, 2018 at 4:44 AM, Anson Huang > > wrote: > > > > > > > > It is NOT easy to identify which switch is critical or NOT, and > > > different platforms

Offerte

2018-07-04 Thread Firma
Sehr geehrte Damen und Herren, ich habe bemerkt, dass Sie Ihr Angebot zum größten Teil an Firmen richten und deswegen möchte ich Ihnen ein Produkt anbieten, welches zur Erhöhung der Anzahl Ihrer Kunden erheblich beitragen wird. Die Datenbanken der Firmen sind in für Sie interessante und releva

Re: [PATCH v2 01/32] mtd: rawnand: add hooks that may be called during nand_scan()

2018-07-04 Thread Boris Brezillon
Hi Miquel, On Tue, 3 Jul 2018 23:59:58 +0200 Miquel Raynal wrote: > In order to remove the limitation that forbids dynamic allocation in > nand_scan_ident(), we must create a path that will be the same for all > controller drivers. The idea is to use nand_scan() instead of the widely > implemen

Re: [PATCH v4 08/18] net: davinci_emac: potentially get the MAC address from MTD

2018-07-04 Thread Ladislav Michl
On Tue, Jul 03, 2018 at 09:39:51AM -0700, Florian Fainelli wrote: > > > On 06/29/2018 02:40 AM, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > On da850-evm board we can read the MAC address from MTD. It's currently > > done in the relevant board file, but we want to get rid of

Re: [PATCH v2 02/32] mtd: rawnand: brcmnand: convert driver to nand_scan()

2018-07-04 Thread Boris Brezillon
On Tue, 3 Jul 2018 23:59:59 +0200 Miquel Raynal wrote: > Two helpers have been added to the core to make ECC-related > configuration between the detection phase and the final NAND scan. Use > these hooks and convert the driver to just use nand_scan() instead of > both nand_scan_ident() and nand_

Re: [PATCH v2] gpiolib: Defer on non-DT find_chip_by_name() failure

2018-07-04 Thread Boris Brezillon
On Wed, 4 Jul 2018 00:18:19 +0200 Janusz Krzysztofik wrote: > Avoid replication of error code conversion in non-DT GPIO consumers' > code by returning -EPROBE_DEFER from gpiod_find() in case a chip > identified by its label in a registered lookup table is not ready. > > See https://lkml.org/lkm

Re: [PATCH 3/3] clk: meson: add sub EMMC clock controller driver

2018-07-04 Thread Yixun Lan
Hi Martin On 07/04/18 02:58, Martin Blumenstingl wrote: > Hi Yixun, > > apart from what Jerome found this looks good to me. > one small "issue" and a question are inline below > > On Tue, Jul 3, 2018 at 9:00 AM Yixun Lan wrote: >> >> This patch will add a EMMC clock controller driver support,

Re: [RFC PATCH 3/4] misc: Add bmc-misc-ctrl

2018-07-04 Thread Andrew Jeffery
On Tue, 3 Jul 2018, at 17:24, Greg KH wrote: > On Tue, Jul 03, 2018 at 05:04:12PM +1000, Andrew Jeffery wrote: > > bmc-misc-ctrl is used to expose miscellaneous Baseboard > > Management Controller (BMC) hardware features described in the devicetree > > to userspace. > > > > Signed-off-by: Andrew J

[rcu:dev 119/161] ERROR: "rcu_barrier" [net/sctp/sctp.ko] undefined!

2018-07-04 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev head: 472755d5ff3ee21ad16e0a0a06e087b7569eaffe commit: 16bf6b3b61864e444bae5e4a7cf121f777893a8c [119/161] rcu: Express Tiny RCU updates in terms of RCU rather than RCU-sched config: m68k-sun3_defconfig (attached a

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Sergey Senozhatsky
On (07/04/18 10:03), Mike Rapoport wrote: > > %p[Ff] got deprecated by commit 04b8eb7a4ccd9ef9343e2720ccf2a5db8cfe2f67 > > > > I think it'd be simplest to just convert > > all the %pF and %pf uses all at once. > > > > $ git grep --name-only "%p[Ff]" | \ > > xargs sed -i -e 's/%pF/%pS/' -e 's/%p

Re: [PATCH v8 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support

2018-07-04 Thread Stefan Agner
Hi Thierry, Hi Miquel, On 25.06.2018 14:34, Miquel Raynal wrote: > Hi Stefan, > > On Sun, 24 Jun 2018 23:27:21 +0200, Stefan Agner > wrote: > >> Eigth and hopefully final revision gets rid of nand_release() as >> suggested by Boris. >> >> -- >> Stefan >> >> Changes since v1: >> - Split controll

Re: [PATCH v1] mfd: intel-lpss: Add Ice Lake PCI IDs

2018-07-04 Thread Lee Jones
On Wed, 27 Jun 2018, Andy Shevchenko wrote: > From: Mika Westerberg > > Intel Ice Lake has the same LPSS than Intel Cannon Lake. Add the new IDs > to the list of supported devices. > > Signed-off-by: Mika Westerberg > Signed-off-by: Andy Shevchenko > --- > drivers/mfd/intel-lpss-pci.c | 13 +

Re: [PATCH v2] leds: ledtrig-morse: send out morse code

2018-07-04 Thread Willy Tarreau
Hi Pavel, On Wed, Jul 04, 2018 at 08:53:05AM +0200, Pavel Machek wrote: > As I stated before, I don't think morse encoder belongs in kernel. On the opposite, I think that the kernel needs to be a bit more autonomous when it comes to reporting its own issues. Being able to report a panic when user

Re: [PATCH v3 4/4] arm64: dts: mediatek: add mt6765 support

2018-07-04 Thread Marc Zyngier
On 04/07/18 02:52, Mars Cheng wrote: > This adds basic chip support for MT6765 SoC. > > Signed-off-by: Mars Cheng > --- > arch/arm64/boot/dts/mediatek/Makefile |1 + > arch/arm64/boot/dts/mediatek/mt6765-evb.dts | 33 ++ > arch/arm64/boot/dts/mediatek/mt6765.dtsi| 155 > +++

Re: [PATCH 2/3] perf arm64: Generate system call table from asm/unistd.h

2018-07-04 Thread Hendrik Brueckner
Hi Kim, On Tue, Jul 03, 2018 at 12:32:28PM -0500, Kim Phillips wrote: > This should speed up accessing new system calls introduced with the > kernel rather than waiting for libaudit updates to include them. > > Using the existing other arch scripts resulted in this error: > > tools/perf/arch/arm

Re: [PATCH v3] mfd: arizona: Don't use regmap_read_poll_timeout

2018-07-04 Thread Lee Jones
On Thu, 28 Jun 2018, Charles Keepax wrote: > Some Arizona CODECs have a small timing window where they will > NAK an I2C transaction if it happens before the boot done bit is > set. This can cause the read of the register containing the boot > done bit to fail until it is set. Since regmap_read_po

Re: [PATCH 1/5] mfd: ti_am335x_tscadc: Don't mark TSCADC MFD as wakeup capable

2018-07-04 Thread Lee Jones
On Sat, 30 Jun 2018, Vignesh R wrote: > Currently tscadc MFD is marked as wakeup capable which incorrect > because, its actually touch event by child TSC device that wakes up the > system. Therefore, remove device_init_wakeup() call that marks TSCADC > device as wakeup capable in favor of moving t

Re: [PATCH 3/3] perf trace arm64: Use generated syscall table

2018-07-04 Thread Hendrik Brueckner
On Tue, Jul 03, 2018 at 12:32:38PM -0500, Kim Phillips wrote: > This should speed up accessing new system calls introduced with the > kernel rather than waiting for libaudit updates to include them. > > It also enables users to specify wildcards, for example, perf trace -e > 'open*', just like was

Re: [PATCH 3/5] mfd: ti_am335x_tscadc: Keep ADC interface on if child is wakeup capable

2018-07-04 Thread Lee Jones
On Sat, 30 Jun 2018, Vignesh R wrote: > If a child device like touchscreen is wakeup capable, then keep ADC > interface on, so that a touching resistive screen will generate wakeup > event to the system. > > Signed-off-by: Vignesh R > --- > drivers/mfd/ti_am335x_tscadc.c | 13 + > 1

Re: [PATCH] x86/mm: fix cpu stuck issue in __change_page_attr_set_clr

2018-07-04 Thread Thomas Gleixner
On Wed, 4 Jul 2018, Yang, Bin wrote: > thanks for reviewing my patch. I will update a new patch version based > on your feedback soon Take your time. > On Tue, 2018-07-03 at 15:57 +0200, Thomas Gleixner wrote: > Below is the new commit comment I will use in new patch version soon > > Please do n

Re: [PATCH] rtc: OMAP: Add support for rtc-only mode

2018-07-04 Thread Alexandre Belloni
Hi, On 04/07/2018 12:03:45+0530, Keerthy wrote: > Prepare rtc driver for rtc-only mode. This involes splitting the power-off > function so that an external driver can initiate the programming of > setting the power_off to be triggered in the next second. > I'm sorry, I don't see the point, can't

Re: [PATCH v2 1/1] mmc: sunxi: Disable irq during pm_suspend

2018-07-04 Thread Maxime Ripard
On Wed, Jul 04, 2018 at 09:28:59AM +0300, Stefan Mavrodiev wrote: > When mmc host controller enters suspend state, the clocks are > disabled, but irqs are not. For some reason the irqchip emits > false interrupts, which causes system lock loop. > > Debug log is: > ... > sunxi-mmc 1c11000.mmc:

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Geert Uytterhoeven
Hi Mike, On Wed, Jul 4, 2018 at 8:28 AM Mike Rapoport wrote: > In m68k the physical memory is described by [memory_start, memory_end] for > !MMU variant and by m68k_memory array of memory ranges for the MMU version. > This information is directly use to register the physical memory with > membloc

Re: [PATCH v8 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support

2018-07-04 Thread Miquel Raynal
Hi Stefan, Stefan Agner wrote on Wed, 04 Jul 2018 09:33:44 +0200: > Hi Thierry, Hi Miquel, > > On 25.06.2018 14:34, Miquel Raynal wrote: > > Hi Stefan, > > > > On Sun, 24 Jun 2018 23:27:21 +0200, Stefan Agner > > wrote: > > > >> Eigth and hopefully final revision gets rid of nand_release()

Re: [PATCH v2] leds: ledtrig-morse: send out morse code

2018-07-04 Thread Geert Uytterhoeven
Hi Willy, On Wed, Jul 4, 2018 at 4:41 AM Willy Tarreau wrote: > On Tue, Jul 03, 2018 at 09:43:06PM +0300, Andy Shevchenko wrote: > > > + {'a', ".-"}, > > > + {'b', "-..."}, > > > > Do you expect this to be changed somehow? > > Otherwise we might just to keep two char arrays of alphas

Re: [PATCH v3 4/4] arm64: dts: mediatek: add mt6765 support

2018-07-04 Thread Mars Cheng
Hi Marc On Wed, 2018-07-04 at 08:35 +0100, Marc Zyngier wrote: > On 04/07/18 02:52, Mars Cheng wrote: > > This adds basic chip support for MT6765 SoC. > > > > Signed-off-by: Mars Cheng > > --- > > arch/arm64/boot/dts/mediatek/Makefile |1 + > > arch/arm64/boot/dts/mediatek/mt6765-evb.

Re: [RFC][PATCH] selftest: timers: Tweak raw_skew to SKIP when ADJ_OFFSET is in progress

2018-07-04 Thread Miroslav Lichvar
On Tue, Jul 03, 2018 at 12:36:27PM -0700, John Stultz wrote: > In the past we've warned when ADJ_OFFSET was in progress, usually > caused by ntpd or some other time adjusting daemon running in non > steady sate, which can cause the skew calculations to be incorrect Good idea. > Thus, this patch s

Re: [PATCH 1/3] clk: tegra: refactor 7.1 div calculation

2018-07-04 Thread Aapo Vienamo
On Tue, 3 Jul 2018 11:10:21 -0400 Peter Geis wrote: > Good Morning, > > Just a heads up. > During compilation with your patches, I get the following warning: > > In file included from ./arch/arm/include/asm/div64.h:127:0, > from ./include/linux/kernel.h:174, >

Re: [PATCH v2] mfd: as3722: disable auto power on when AC OK

2018-07-04 Thread Lee Jones
On Tue, 03 Jul 2018, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > On ams AS3722, power on when AC OK is enabled by default. > Making this option as disable by default and enable only > when platform need this explicitly. > > Signed-off-by: Laxman Dewangan > Reviewed-by: Bibek Basu > Tes

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Michal Hocko
On Wed 04-07-18 09:44:14, Geert Uytterhoeven wrote: [...] > [ cut here ] > WARNING: CPU: 0 PID: 0 at mm/memblock.c:230 > memblock_find_in_range_node+0x11c/0x1be > memblock: bottom-up allocation failed, memory hotunplug may be affected This only means that hotplugable memory

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Sergey Senozhatsky
On (07/04/18 10:03), Mike Rapoport wrote: > arch/alpha/kernel/pci_iommu.c | 20 ++-- > arch/arm/mm/alignment.c | 2 +- > arch/arm/nwfpe/fpmodule.c | 2 +- > arch/microblaze/mm/pgtable.c | 2 +- > arch/sparc/kernel/ds.c

Re: [PATCH] mfd: ti_am335x_tscadc: Fix struct clk memory leak

2018-07-04 Thread Lee Jones
On Wed, 04 Jul 2018, Zumeng Chen wrote: > Use devm_elk_get() to let Linux manage struct clk memory to avoid the > following > memory leakage report: > > unreferenced object 0xdd75efc0 (size 64): > comm "systemd-udevd", pid 186, jiffies 4294945126 (age 1195.750s) > hex dump (first 32 bytes):

Re: [PATCH v5 12/12] mfd: cros_ec: Add throttler sub-device

2018-07-04 Thread Lee Jones
On Tue, 03 Jul 2018, Matthias Kaehlcke wrote: > Instantiate the CrOS EC throttler if it is enabled in the kernel > configuration. > > Signed-off-by: Matthias Kaehlcke > Reviewed-by: Brian Norris > --- > Changes in v5: > - added 'Reviewed-by: Brian Norris ' tag > > Changes in v4: > - register t

Re: [PATCH v3 4/4] arm64: dts: mediatek: add mt6765 support

2018-07-04 Thread Marc Zyngier
On 04/07/18 08:47, Mars Cheng wrote: > Hi Marc > > On Wed, 2018-07-04 at 08:35 +0100, Marc Zyngier wrote: >> On 04/07/18 02:52, Mars Cheng wrote: >>> This adds basic chip support for MT6765 SoC. >>> >>> Signed-off-by: Mars Cheng >>> --- >>> arch/arm64/boot/dts/mediatek/Makefile |1 + >>

Re: [PATCH v6] Add udmabuf misc device

2018-07-04 Thread Gerd Hoffmann
On Wed, Jul 04, 2018 at 09:26:39AM +0200, Tomeu Vizoso wrote: > On 07/04/2018 07:53 AM, Gerd Hoffmann wrote: > > On Tue, Jul 03, 2018 at 10:37:57AM +0200, Daniel Vetter wrote: > > > On Tue, Jul 03, 2018 at 09:53:58AM +0200, Gerd Hoffmann wrote: > > > > A driver to let userspace turn memfd regions i

Re: [PATCH v2 0/8] add support for relative references in jump tables

2018-07-04 Thread Heiko Carstens
On Mon, Jul 02, 2018 at 08:11:37PM +0200, Ard Biesheuvel wrote: > This series implements support for emitting the data structures associated > with jump tables as 32-bit relative references instead of absolute > references, which take up more space on builds that target 64-bit > architectures, or i

Re: [PATCH 3/3] clk: meson: add sub EMMC clock controller driver

2018-07-04 Thread Jerome Brunet
On Wed, 2018-07-04 at 15:17 +0800, Yixun Lan wrote: > > you are describing the mux and the divider here > > however, meson-gx-mmc.c has a few more clock related bits: > > - CLK_CORE_PHASE_MASK > > - CLK_TX_PHASE_MASK > > - CLK_RX_PHASE_MASK > > - CLK_V2_TX_DELAY_MASK / CLK_V3_TX_DELAY_MASK > > - CL

Re: [RFC v3 PATCH 4/5] mm: mmap: zap pages with read mmap_sem for large mapping

2018-07-04 Thread Michal Hocko
On Tue 03-07-18 11:22:17, Yang Shi wrote: > > > On 7/2/18 11:09 PM, Michal Hocko wrote: > > On Mon 02-07-18 13:48:45, Andrew Morton wrote: > > > On Mon, 2 Jul 2018 16:05:02 +0200 Michal Hocko wrote: > > > > > > > On Fri 29-06-18 20:15:47, Andrew Morton wrote: > > > > [...] > > > > > Would one o

Re: [PATCH v11 1/2] Refactor part of the oom report in dump_header

2018-07-04 Thread Michal Hocko
On Wed 04-07-18 10:25:30, 禹舟键 wrote: > Hi Andy > The const char array need to be used by the new func > mem_cgroup_print_oom_context and some funcs in oom_kill.c in the > second patch. Just declare it in oom.h and define in oom.c -- Michal Hocko SUSE Labs

Re: [PATCH v4] PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.

2018-07-04 Thread Enric Balletbo i Serra
Hi Chanwoo, On 04/07/18 03:06, Chanwoo Choi wrote: > Hi Enric, > > On 2018년 07월 03일 22:29, Enric Balletbo i Serra wrote: >> When the devfreq driver and the governor driver are built as modules, >> the call to devfreq_add_device() or governor_store() fails because the >> governor driver is not loa

Re: [PATCH 03/12] drm/dp: add helpers for drm_dp_set_adjust_request_pre_emphasis and drm_dp_set_adjust_request_voltage

2018-07-04 Thread Daniel Vetter
On Tue, Jul 03, 2018 at 11:02:14AM +0100, Damian Kos wrote: > From: Quentin Schulz > > We already have functions to get the adjust request voltage and > pre-emphasis for a lane so it makes also sense to be able to set them so > that we can then easily update them via a DPCD write. > > Add helper

Re: [PATCH 0/2] Allwinner A64 timer workaround

2018-07-04 Thread Marc Zyngier
On 03/07/18 19:42, Samuel Holland wrote: > On 07/03/18 10:09, Marc Zyngier wrote: >> On 11/05/18 03:27, Samuel Holland wrote: >>> Hello, >>> >>> Several people (including me) have experienced extremely large system >>> clock jumps on their A64-based devices, apparently due to the architectural >>>

[PATCH -next] mtd: spinand: Fix missing unlock on error path

2018-07-04 Thread Wei Yongjun
Add the missing unlock before return from function spinand_mtd_(read|write) in the error handling case. Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI NANDs") Signed-off-by: Wei Yongjun --- drivers/mtd/nand/spi/core.c | 12 1 file changed, 8 insertions(+), 4

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Geert Uytterhoeven
Hi Michael, On Wed, Jul 4, 2018 at 9:54 AM Michal Hocko wrote: > On Wed 04-07-18 09:44:14, Geert Uytterhoeven wrote: > [...] > > [ cut here ] > > WARNING: CPU: 0 PID: 0 at mm/memblock.c:230 > > memblock_find_in_range_node+0x11c/0x1be > > memblock: bottom-up allocation fail

Re: [PATCH -next] mtd: spinand: Fix missing unlock on error path

2018-07-04 Thread Boris Brezillon
On Wed, 4 Jul 2018 08:29:39 + Wei Yongjun wrote: > Add the missing unlock before return from function > spinand_mtd_(read|write) in the error handling case. > > Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI > NANDs") > Signed-off-by: Wei Yongjun > --- > drivers/m

[PATCH -next] mtd: spinand: Fix error return code in spinand_init()

2018-07-04 Thread Wei Yongjun
Fix to return error code -ENOMEM from the kzalloc() error handling case instead of 0, as done elsewhere in this function. Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI NANDs") Signed-off-by: Wei Yongjun --- drivers/mtd/nand/spi/core.c | 4 +++- 1 file changed, 3 inserti

Re: [PATCH v4] PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.

2018-07-04 Thread Chanwoo Choi
Hi Enric, On 2018년 07월 04일 17:16, Enric Balletbo i Serra wrote: > Hi Chanwoo, > > On 04/07/18 03:06, Chanwoo Choi wrote: >> Hi Enric, >> >> On 2018년 07월 03일 22:29, Enric Balletbo i Serra wrote: >>> When the devfreq driver and the governor driver are built as modules, >>> the call to devfreq_add_d

Re: [PATCH -next] mtd: spinand: Fix error return code in spinand_init()

2018-07-04 Thread Boris Brezillon
On Wed, 4 Jul 2018 08:34:58 + Wei Yongjun wrote: > Fix to return error code -ENOMEM from the kzalloc() error handling > case instead of 0, as done elsewhere in this function. > > Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI > NANDs") > Signed-off-by: Wei Yongjun

Re: [PATCH] rtc: OMAP: Add support for rtc-only mode

2018-07-04 Thread Keerthy
On Wednesday 04 July 2018 01:11 PM, Alexandre Belloni wrote: > Hi, > > On 04/07/2018 12:03:45+0530, Keerthy wrote: >> Prepare rtc driver for rtc-only mode. This involes splitting the power-off >> function so that an external driver can initiate the programming of >> setting the power_off to be

Re: [PATCH v6 21/21] s390: doc: detailed specifications for AP virtualization

2018-07-04 Thread Harald Freudenberger
On 03.07.2018 16:56, Tony Krowiak wrote: > On 07/03/2018 03:46 AM, Harald Freudenberger wrote: >> On 02.07.2018 18:28, Halil Pasic wrote: >>> >>> On 06/29/2018 11:11 PM, Tony Krowiak wrote: This patch provides documentation describing the AP architecture and design concepts behind the vir

Re: [PATCH v4] PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.

2018-07-04 Thread Chanwoo Choi
Hi Enric, Please send this patch to stable-kernel mailing list. Regards, Chanwoo Choi On 2018년 07월 04일 17:26, Chanwoo Choi wrote: > Hi Enric, > > On 2018년 07월 04일 17:16, Enric Balletbo i Serra wrote: >> Hi Chanwoo, >> >> On 04/07/18 03:06, Chanwoo Choi wrote: >>> Hi Enric, >>> >>> On 2018년 07월

Re: [PATCH v8 1/2] mfd: bd71837: mfd driver for ROHM BD71837 PMIC

2018-07-04 Thread Matti Vaittinen
Hello Enric, Lee and others. Thanks again for taking the time to review the patch! I do appreciate the effort. Especially because I find reviewing to be quite hard work. You spotted some obvious things to change but additionally commented on things which I would rather not change. (Namely the pla

Re: [PATCH 1/3] soc: amlogic: Add Meson GX Clock Measure driver

2018-07-04 Thread Neil Armstrong
Hi Martin, On 03/07/2018 21:18, Martin Blumenstingl wrote: > Hi Neil, > > On Tue, Jul 3, 2018 at 3:23 PM Neil Armstrong wrote: >> >> The Amlogic Meson GX SoCs embeds a clock measurer IP to measure the internal >> clock paths frequencies. >> The precision is in the order of the MHz. >> >> Signed-

RE: [PATCH] net: ethernet: gianfar_ethtool: remove redundant variable last_rule_idx

2018-07-04 Thread Claudiu Manoil
>-Original Message- >From: Colin King [mailto:colin.k...@canonical.com] >Sent: Wednesday, July 4, 2018 10:55 AM >To: Claudiu Manoil ; David S . Miller >; net...@vger.kernel.org >Cc: kernel-janit...@vger.kernel.org; linux-kernel@vger.kernel.org >Subject: [PATCH] net: ethernet: gianfar_ethtoo

Re: [PATCH v2] mtd: atmel-quadspi: add suspend/resume hooks

2018-07-04 Thread Tudor Ambarus
Hi, Claudiu, On 06/04/2018 11:46 AM, Claudiu Beznea wrote: > Implement suspend/resume hooks. > > Signed-off-by: Claudiu Beznea > --- > > Changes in v2: > - use __maybe_unused instead of #ifdef CONFIG_PM_SLEEP > > drivers/mtd/spi-nor/atmel-quadspi.c | 21 + > 1 file changed

[PATCH v5] PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.

2018-07-04 Thread Enric Balletbo i Serra
When the devfreq driver and the governor driver are built as modules, the call to devfreq_add_device() or governor_store() fails because the governor driver is not loaded at the time the devfreq driver loads. The devfreq driver has a build dependency on the governor but also should have a runtime d

Re: [V9fs-developer] [PATCH] fs: 9p: Adding new return type vm_fault_t

2018-07-04 Thread piaojun
LGTM On 2018/7/2 23:49, Souptick Joarder wrote: > Use new return type vm_fault_t for page_mkwrite > handler. > > see commit 1c8f422059ae ("mm: change return type to > vm_fault_t") for reference. > > Signed-off-by: Souptick Joarder > Reviewed-by: Matthew Wilcox Acked-by: Jun Piao > --- > fs/9

Re: [REGRESSION] "Locked" and "Pss" in /proc/*/smaps are the same

2018-07-04 Thread Vlastimil Babka
On 07/03/2018 06:20 PM, Daniel Colascione wrote: > On Tue, Jul 3, 2018 at 12:36 AM, Vlastimil Babka wrote: >> +CC >> >> On 07/01/2018 08:31 PM, Thomas Lindroth wrote: >>> While looking around in /proc on my v4.14.52 system I noticed that >>> all processes got a lot of "Locked" memory in /proc/*/sm

Re: [PATCH] refcount: always allow checked forms

2018-07-04 Thread David Sterba
On Tue, Jul 03, 2018 at 11:01:02AM +0100, Mark Rutland wrote: > In many cases, it would be useful to be able to use the full > sanity-checked refcount helpers regardless of CONFIG_REFCOUNT_FULL, as > this would help to avoid duplicate warnings where callers try to > sanity-check refcount manipulati

Re: [PATCH v7 0/4] mfd/regulator/clk/input: bd71837: ROHM BD71837 PMIC driver

2018-07-04 Thread Matti Vaittinen
On Tue, Jul 03, 2018 at 08:02:00AM +0100, Lee Jones wrote: > On Thu, 21 Jun 2018, Matti Vaittinen wrote: > > > On Tue, Jun 19, 2018 at 01:55:31PM +0300, Matti Vaittinen wrote: > > > Patch series adding support for ROHM BD71837 PMIC. > > > > > What is the preferred way when I send updated patches:

Re: [PATCH v11 1/2] Refactor part of the oom report in dump_header

2018-07-04 Thread Andy Shevchenko
On Wed, Jul 4, 2018 at 5:25 AM, 禹舟键 wrote: > Hi Andy > The const char array need to be used by the new func > mem_cgroup_print_oom_context and some funcs in oom_kill.c in the > second patch. Did I understand correctly that the array is added by you in this solely patch? Did I understand correctly

Re: [PATCH v2 0/8] add support for relative references in jump tables

2018-07-04 Thread Ard Biesheuvel
On 4 July 2018 at 09:59, Heiko Carstens wrote: > On Mon, Jul 02, 2018 at 08:11:37PM +0200, Ard Biesheuvel wrote: >> This series implements support for emitting the data structures associated >> with jump tables as 32-bit relative references instead of absolute >> references, which take up more spa

[BUG] Serial/dma stall/failure after "dmaengine: fsl-edma: extract common fsl-edma code (no changes in behavior intended)"

2018-07-04 Thread Krzysztof Kozlowski
tart # bad: [bce40927669338cc4a361fc97d46bf650573ce5c] Add linux-next specific files for 20180704 git bisect bad bce40927669338cc4a361fc97d46bf650573ce5c # good: [410da1e12ffed61129d61df5b7adce4d08c7f17c] net/smc: fix up merge error with poll changes git bisect good 410da1e12ffed61129d61df5b7adce4d08c7f

[tip:x86/urgent] x86/hyper-v: Fix the circular dependency in IPI enlightenment

2018-07-04 Thread tip-bot for K. Y. Srinivasan
Commit-ID: 5e6f19db2deca9e7eaa378447c77616b35693399 Gitweb: https://git.kernel.org/tip/5e6f19db2deca9e7eaa378447c77616b35693399 Author: K. Y. Srinivasan AuthorDate: Tue, 3 Jul 2018 16:01:55 -0700 Committer: Ingo Molnar CommitDate: Wed, 4 Jul 2018 10:50:03 +0200 x86/hyper-v: Fix the cir

Re: [PATCH v2] mtd: atmel-quadspi: add suspend/resume hooks

2018-07-04 Thread Alexandre Belloni
On 04/07/2018 11:42:25+0300, Tudor Ambarus wrote: > Hi, Claudiu, > > On 06/04/2018 11:46 AM, Claudiu Beznea wrote: > > Implement suspend/resume hooks. > > > > Signed-off-by: Claudiu Beznea > > --- > > > > Changes in v2: > > - use __maybe_unused instead of #ifdef CONFIG_PM_SLEEP > > > > driver

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Andy Shevchenko
On Wed, Jul 4, 2018 at 9:37 AM, Nikolaus Voss wrote: > On Wed, 4 Jul 2018, Andy Shevchenko wrote: >> >> On Tue, Jul 3, 2018 at 9:06 AM, Nikolaus Voss >> wrote: >>> >>> struct i2c_device_id argument of probe() is not used, so use probe_new() >>> instead. >>> >> >> This makes... >> >>> MODULE_DEVI

[PATCH v2 1/2] f2fs: fix to avoid broken of dnode block list

2018-07-04 Thread Chao Yu
f2fs recovery flow is relying on dnode block link list, it means fsynced file recovery depends on previous dnode's persistence in the list, so during fsync() we should wait on all regular inode's dnode writebacked before issuing flush. By this way, we can avoid dnode block list being broken by out

Re: [PATCH v6] Add udmabuf misc device

2018-07-04 Thread Gerd Hoffmann
Hi, > > Hmm, does MAINTAINERS need an update then? Maintainer and mailing lists > > listed in the "DMA BUFFER SHARING FRAMEWORK" entry are on Cc. > > Yeah, maintainers entry with you as maintainer plus dri-devel as mailing > list plus drm-misc as repo would be good. Just grep for drm-misc.git

Re: [PATCH v2 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-04 Thread Andy Shevchenko
On Wed, Jul 4, 2018 at 9:56 AM, Nikolaus Voss wrote: > On Wed, 4 Jul 2018, Andy Shevchenko wrote: >> >> On Tue, Jul 3, 2018 at 8:41 AM, Nikolaus Voss >> wrote: >>> >>> Use device_get_match_data API to simplify access to driver data. >> >> >> ..._data() >> >> But. You actually don't use it below.

[PATCH v2 0/3] serial: 8250_dw: add fractional divisor support

2018-07-04 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. patch1 lets serial8250_get_divisor() get uart_port * as param patch2 introduces necessary hooks to 8250 core. patch3 implements the fractional d

[PATCH v2 1/3] serial: 8250: let serial8250_get_divisor() get uart_port * as param

2018-07-04 Thread Jisheng Zhang
Align serial8250_get_divisor() with serial8250_set_divisor() to accept uart_port pointer as the first parameter. No functionality changes. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_port.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/

Re: [PATCH v22 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2018-07-04 Thread CK Hu
Hi, Houlong: On Wed, 2018-07-04 at 08:10 +0800, houlong wei wrote: > On Fri, 2018-06-29 at 15:08 +0800, CK Hu wrote: > > Hi, Houlong: > > > > Some inline comment. > > > > On Wed, 2018-06-27 at 19:16 +0800, Houlong Wei wrote: > > > This patch is first version of Mediatek Command Queue(CMDQ) drive

[PATCH v2 2/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-04 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux/serial_core.h | 7 +++ 3 files

[PATCH] tpm: Fix NULL pointer dereference in tpm_transmit()

2018-07-04 Thread Shirish S
During system shutdown, tpm_class_shutdown() when called with TPM_CHIP_FLAG_TPM2 flag set, makes chip->ops NULL. However tpm_chip_unregister() called later in shutdown sequence tries to access chip->ops in tpm_try_transmit() leading the NULL pointer dereference. This patch fixes this issue. Below

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Joe Perches
On Wed, 2018-07-04 at 16:23 +0900, Sergey Senozhatsky wrote: > On (07/04/18 10:03), Mike Rapoport wrote: > > > %p[Ff] got deprecated by commit 04b8eb7a4ccd9ef9343e2720ccf2a5db8cfe2f67 > > > > > > I think it'd be simplest to just convert > > > all the %pF and %pf uses all at once. > > > > > > $ gi

[PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-04 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. Now the preparation is done, it's easy to add the feature support. This patch firstly checks the component version during probe, if version >= 4

[PATCH 0/4] rtc: omap: fixes and clean ups

2018-07-04 Thread Johan Hovold
Here are a couple of fixes for issues discovered through inspection along with some clean ups. Johan Johan Hovold (4): rtc: omap: fix potential crash on power off rtc: omap: fix resource leak in registration error path rtc: omap: add missing register lock in error path rtc: omap: drop un

Re: [PATCH 0/2] Allwinner A64 timer workaround

2018-07-04 Thread Maxime Ripard
On Wed, Jul 04, 2018 at 09:16:32AM +0100, Marc Zyngier wrote: > On 03/07/18 19:42, Samuel Holland wrote: > > On 07/03/18 10:09, Marc Zyngier wrote: > >> On 11/05/18 03:27, Samuel Holland wrote: > >>> Hello, > >>> > >>> Several people (including me) have experienced extremely large system > >>> cloc

[PATCH 3/4] rtc: omap: add missing register lock in error path

2018-07-04 Thread Johan Hovold
For completeness re-lock the registers also in the power-off error path. Signed-off-by: Johan Hovold --- drivers/rtc/rtc-omap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index 6a7b804c3074..7f9ee559dd99 100644 --- a/drivers/rtc/rtc-omap.c

[PATCH 4/4] rtc: omap: drop unnecessary register unlock around reads

2018-07-04 Thread Johan Hovold
Drop unnecessary register write-unlock around two read accesses. Signed-off-by: Johan Hovold --- drivers/rtc/rtc-omap.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index 7f9ee559dd99..323ff55cc165 100644 --- a/drivers/rtc/rtc-omap.c +++

[PATCH 1/4] rtc: omap: fix potential crash on power off

2018-07-04 Thread Johan Hovold
Do not set the system power-off callback and omap power-off rtc pointer until we're done setting up our device to avoid leaving stale pointers around after a late probe error. Fixes: 97ea1906b3c2 ("rtc: omap: Support ext_wakeup configuration") Cc: stable # 4.9 Cc: Marcin Niestroj Cc: Tony Li

[PATCH 2/4] rtc: omap: fix resource leak in registration error path

2018-07-04 Thread Johan Hovold
Make sure to deregister the pin controller in case rtc registration fails. Fixes: 57072758623f ("rtc: omap: switch to rtc_register_device") Cc: stable # 4.14 Cc: Alexandre Belloni Signed-off-by: Johan Hovold --- drivers/rtc/rtc-omap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 9:37 AM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:06 AM, Nikolaus Voss wrote: struct i2c_device_id argument of probe() is not used, so use probe_new() instead. This makes...

[PATCH -next v2] mtd: spinand: fix missing unlock on error

2018-07-04 Thread Wei Yongjun
Add the missing unlock before return from function spinand_mtd_(read|write) in the error handling case. Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI NANDs") Signed-off-by: Wei Yongjun --- v1 -> v2: using break instead of return --- drivers/mtd/nand/spi/core.c | 9 +

[PATCH] mtd: rawnand: tegra: check bounds of die_nr properly

2018-07-04 Thread Stefan Agner
The Tegra driver currently only support a single chip select, hence check boundaries accordingly. This fixes a off by one issue catched with Smatch: drivers/mtd/nand/raw/tegra_nand.c:476 tegra_nand_select_chip() warn: array off by one? 'nand->cs[die_nr]' Also warn in case the stack asks fo

Re: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment.

2018-07-04 Thread Vitaly Kuznetsov
k...@linuxonhyperv.com writes: > From: "K. Y. Srinivasan" > > The IPI hypercalls depend on being able to map the Linux notion of CPU ID > to the hypervisor's notion of the CPU ID. The array hv_vp_index[] provides > this mapping. Code for populating this array depends on the IPI functionality. > B

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Andy Shevchenko
On Wed, Jul 4, 2018 at 12:09 PM, Nikolaus Voss wrote: > On Wed, 4 Jul 2018, Andy Shevchenko wrote: >> >> On Wed, Jul 4, 2018 at 9:37 AM, Nikolaus Voss >> wrote: >>> >>> On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:06 AM, Nikolaus Voss wrote: > >

Re: [PATCH] x86/mm: fix cpu stuck issue in __change_page_attr_set_clr

2018-07-04 Thread Yang, Bin
You are completely right. After considering, I think my patch is like a workaround but not real fix. I am trying to re-write a new patch without cache implementation. Please give me one or two days to re-write this patch and discribe it more clearly in commit comment. thanks, Bin On Wed, 2018-0

[PATCH v2 1/2] powernv:opal-sensor-groups: Add support to enable sensor groups

2018-07-04 Thread Shilpasri G Bhat
Adds support to enable/disable a sensor group at runtime. This can be used to select the sensor groups that needs to be copied to main memory by OCC. Sensor groups like power, temperature, current, voltage, frequency, utilization can be enabled/disabled at runtime. Signed-off-by: Shilpasri G Bhat

Re: [PATCH] ARM: dts: berlin: switch to earlycon

2018-07-04 Thread Jisheng Zhang
Hi Thomas, On Tue, 29 May 2018 11:41:42 -0400 Thomas Hebb wrote: > The Synopsys DesignWare 8250 UART in Berlin SoCs is now supported by > 8250_early, so we can use earlycon for early console output instead > of earlyprintk, which requires an SoC-specific kernel. IIRC, earlyprintk still works dur

[PATCH v2 0/2] hwmon: Add attributes to enable/disable sensors

2018-07-04 Thread Shilpasri G Bhat
This patch series adds new attribute to enable or disable a sensor in runtime. v1 : https://lkml.org/lkml/2018/3/22/214 Shilpasri G Bhat (2): powernv:opal-sensor-groups: Add support to enable sensor groups hwmon: ibmpowernv: Add attributes to enable/disable sensor groups Documentation/hwmon

Re: ipc/msg: zalloc struct msg_queue when creating a new msq

2018-07-04 Thread Manfred Spraul
Hello together, On 06/25/2018 11:21 AM, Dmitry Vyukov wrote: On Sun, Jun 24, 2018 at 4:56 AM, Davidlohr Bueso wrote: The following splat was reported around the msg_queue structure which can have uninitialized fields left over after newque(). Future syscalls which make use of the msq id (now v

Re: [PATCH] x86/mm: fix cpu stuck issue in __change_page_attr_set_clr

2018-07-04 Thread Thomas Gleixner
On Wed, 4 Jul 2018, Yang, Bin wrote: > You are completely right. After considering, I think my patch is like a > workaround but not real fix. I am trying to re-write a new patch > without cache implementation. Care to explain the actual problem coherently _before_ writing yet another patch? Than

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Sergey Senozhatsky
On (07/04/18 02:04), Joe Perches wrote: > > Sorry, NACK on lib/vsprintf.c part > > > > I definitely didn't want to do this tree-wide pf->ps conversion when > > I introduced my patch set. pf/pF should have never existed, true, > > but I think we must support pf/pF in vsprintf(). Simply because it >

  1   2   3   4   5   6   7   >