Re: [PATCH 3/3] iio: potentiometer: merge calls to of_match_device and of_device_get_match_data

2018-08-19 Thread Peter Rosin
On 2018-05-21 11:49, Julia Lawall wrote: > Drop call to of_match_device, which is subsumed by the subsequent > call to of_device_get_match_data. The code becomes simpler, and a > temporary variable can be dropped. > > The semantic match that makes this change is as follows: >

Re: [PATCH v2] staging: mt7621-mmc: Fix debug macros in dbg.h

2018-08-19 Thread Nishad Kamdar
On Sat, Aug 18, 2018 at 01:49:23PM +0200, Greg Kroah-Hartman wrote: > On Sat, Aug 18, 2018 at 05:13:17PM +0530, Nishad Kamdar wrote: > > Fixed four debug macros by replacing printk with dev_ > > without __func__ or __LINE__ or current->comm and current->pid. > > Further removed the do {} while(0)

Re: linux-next: Signed-off-by missing for commit in the drivers-x86 tree

2018-08-19 Thread Hans de Goede
Hi, On 18-08-18 16:35, Stephen Rothwell wrote: Hi all, Commit cda5915d15d3 ("platform/x86: touchscreen_dmi: Add info for the Cube KNote i1101 tablet") For reasons which I do not know youling does not wish to use his real name. So as with the "platform/x86: touchscreen_dmi: Add info for

Re: [BUG v4.14-rt] kernel BUG at /work/rt/stable-rt.git/kernel/sched/core.c:1639!

2018-08-19 Thread Mike Galbraith
On Sat, 2018-08-18 at 15:13 +0200, Mike Galbraith wrote: > seems it has be something from the 4.17 cycle that went back to 4.14- > stable after 4.1[56]-stable trees went extinct. See ("sched/core: Require cpu_active() in select_task_rq(), for user tasks") Fix it like so? sched: Allow pinned

Re: linux-next: Signed-off-by missing for commit in the h8300 tree

2018-08-19 Thread Stephen Rothwell
Hi Yoshinori, On Sun, 19 Aug 2018 16:38:58 +0900 Yoshinori Sato wrote: > > Oh. Fixed. thanks. -- Cheers, Stephen Rothwell pgpmQgpNr4VTo.pgp Description: OpenPGP digital signature

Re: [GIT PULL] RISC-V Updates for the 4.19 Merge Window

2018-08-19 Thread Karsten Merker
On Sat, Aug 18, 2018 at 06:37:59AM -0700, Guenter Roeck wrote: > On Fri, Aug 17, 2018 at 01:28:11PM -0700, Palmer Dabbelt wrote: > [ ... ] > > > > This tag boots a Fedora root filesystem on QEMU's master branch for me, > > and before this morning's rebase (from 4.18-rc8 to 4.18) it booted on > >

Re: [PATCH] sched: idle: Avoid retaining the tick when it has been stopped

2018-08-19 Thread Rafael J. Wysocki
On Sun, Aug 19, 2018 at 2:36 AM wrote: > > On Sat, Aug 18, 2018 at 11:57:00PM +0200, Rafael J. Wysocki wrote: > > [...] > > > > > > Otherwise we can have something like this: > > > > > > > > > > diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c > > > > > index da9455a..408c985

Re: linux-next: Signed-off-by missing for commit in the drivers-x86 tree

2018-08-19 Thread Stephen Rothwell
Hi Hans, On Sun, 19 Aug 2018 10:21:40 +0200 Hans de Goede wrote: > > On 18-08-18 16:35, Stephen Rothwell wrote: > > Hi all, > > > > Commit > > > >cda5915d15d3 ("platform/x86: touchscreen_dmi: Add info for the Cube > > KNote i1101 tablet") > > For reasons which I do not know youling

Re: How delete node or property in overlayd dts?

2018-08-19 Thread Frank Rowand
On 08/18/18 03:38, Zhang Bo wrote: > > 在 2018/8/18 1:47, Rob Herring 写道: >> On Tue, Aug 14, 2018 at 7:26 PM Frank Rowand wrote: >>> On 08/14/18 07:46, 张波 wrote: /delete-node/ /delete-prop/ could be used in dtsi files without device tree overlay. but with device tree overlay, 

Re: [char-misc-next 00/12] mei: Add DMA ring

2018-08-19 Thread 'Greg Kroah-Hartman'
On Sun, Aug 19, 2018 at 05:34:35AM +, Winkler, Tomas wrote: > > > > > > On Tue, Jul 31, 2018 at 09:35:32AM +0300, Tomas Winkler wrote: > > > > This series adds an alternative method for transferring data between > > > > the mei driver and the device via a DMA ring. The DMA ring allows > > >

Re: linux-next: Signed-off-by missing for commit in the h8300 tree

2018-08-19 Thread Yoshinori Sato
On Sun, 19 Aug 2018 09:45:45 +0900, Stephen Rothwell wrote: > > [1 ] > Hi Yoshinori, > > On Sun, 19 Aug 2018 01:35:47 +0900 Yoshinori Sato > wrote: > > > > > Commit > > > > > > 85f866b60ba7 ("h8300: switch to NO_BOOTMEM") > > > > > > is missing a Signed-off-by from its committer. > > >

Re: [PATCHv2] Coccinelle: remove pci_alloc_consistent semantic to detect in zalloc-simple.cocci

2018-08-19 Thread Masahiro Yamada
2018-08-18 22:51 GMT+09:00 zhong jiang : > Because pci_alloc_consistent has been deprecated. We prefer to use > dma_alloc_coherent directly. Therefore, we should remove pci_alloc_consistent > to increase the confidence. > > Acked-by: Julia Lawall > Acked-by: Himanshu Jha > Signed-off-by: zhong

Re: [GIT PULL] Staging/IIO driver patches for 4.19-rc1

2018-08-19 Thread Greg Kroah-Hartman
On Sat, Aug 18, 2018 at 11:00:20AM -0700, Linus Torvalds wrote: > On Sat, Aug 18, 2018 at 8:57 AM Greg KH wrote: > > > > Note, you will have a merge problem with a device tree IIO file and the > > MAINTAINERS file, both resolutions are easy, just take all changed. > > Heh, no. In neither case

Re: [PATCH] gpu: Use ERR_CAST to replace ERR_PTR(PTR_ERR())

2018-08-19 Thread Laurent Pinchart
Hi Zhong Jiang, Thank you for the patch. On Saturday, 18 August 2018 13:57:12 EEST zhong jiang wrote: > We prefer to ERR_CAST rather than ERR_PTR(PTR_ERR()), So just > replace it. > > The issue is detected with the help of Coccinelle > > Signed-off-by: zhong jiang Reviewed-by: Laurent

[PATCH v2] i2c: Remove '-Wno-deprecated-declarations' compiler warning

2018-08-19 Thread Sedat Dilek
This can be dropped with commit 771c035372a036f83353eef46dbb829780330234 ("deprecate the '__deprecated' attribute warnings entirely and for good") now in upstream. Please, use the kbuild infrastruture to disable compiler warnings. This should be... CFLAGS_i2c-core-base.o := $(call

Re: [PATCH v2] i2c: Remove '-Wno-deprecated-declarations' compiler warning

2018-08-19 Thread kbuild test robot
/linux/commits/Sedat-Dilek/i2c-Remove-Wno-deprecated-declarations-compiler-warning/20180819-215230 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next config: i386-randconfig-a0-201833 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce

Re: [PATCH] iio: chemical: bme680: Add check for val2 in the write_raw function

2018-08-19 Thread Jonathan Cameron
On Sat, 11 Aug 2018 15:56:36 +0530 Himanshu Jha wrote: > val2 is responsible for the floating part of the number to be > written to the device. We don't need the floating part > while writing the oversampling ratio for BME680 since the > available oversampling ratios are pure natural numbers. >

Re: [PATCH v4 2/3] dt-bindings: iio: adc: add bindings for mcp3911

2018-08-19 Thread Jonathan Cameron
On Wed, 8 Aug 2018 10:09:16 +0200 Marcus Folkesson wrote: > MCP3911 is a dual channel Analog Front End (AFE) containing two > synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). > > Co-Developed-by: Kent Gustavsson > Signed-off-by: Kent Gustavsson > Signed-off-by: Marcus

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Stephen Rothwell
Hi all, On Mon, 20 Aug 2018 08:13:23 +1000 Stephen Rothwell wrote: > > Today's linux-next build (powerpc ppc64_defconfig) produced these > warnings: > ... > > Presumably caused by my update to gcc 8.2.0. And this from the x86_64 allmodconfig build: scripts/unifdef.c: In function 'Mpass':

[PATCH] x86/process: Export start_thread()

2018-08-19 Thread Rian Hunter
Commit e634d8fc792c ("x86-64: merge the standard and compat start_thread() functions") removed exporting for the start_thread() function in what seems like a typo. Add it back to arch/x86/kernel/process_64.c for parity with process_32.c and other arch. Signed-off-by: Rian Hunter ---

[PATCH v8 2/2] PCI: pciehp: Mask AER surprise link down error if hotplug is enabled

2018-08-19 Thread Sinan Kaya
PCIe Spec 3.0. 7.10.2. Uncorrectable Error Status Register (Offset 04h) defines link down errors as an AER error as bit 5 Surprise Down Error Status. If hotplug is supported by a particular port, we want hotplug driver to handle the link down/up conditions via Data Link Layer Active interrupt

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Theodore Y. Ts'o
On Mon, Aug 20, 2018 at 08:13:23AM +1000, Stephen Rothwell wrote: > fs/ext4/super.c: In function '__save_error_info': > fs/ext4/super.c:344:2: warning: 'strncpy' specified bound 32 equals > destination size [-Wstringop-truncation] > strncpy(es->s_last_error_func, func,

Re: [PATCH V2] arm64: dts: sdm630 SoC and Sony Pioneer (Xperia XA2) support

2018-08-19 Thread kbuild test robot
Hi Craig, Thank you for the patch! Yet something to improve: [auto build test ERROR on agross/for-next] [also build test ERROR on v4.18 next-20180817] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH v4 0/2] i2c: npcm7xx: new driver for I2C controller

2018-08-19 Thread Tali Perry
Nuvoton NPCM7XX I2C Controller NPCM7xx includes 16 I2C controllers. This driver operates the controller. This module also includes a slave mode, which will be submitted later on. --- v4 -> v3: - typo on cover letter. v3 -> v2: - fix dt binding: compatible name: omit "bus" v2 ->

[PATCH v4 2/2] i2c: npcm7xx: add i2c controller master mode only

2018-08-19 Thread Tali Perry
Nuvoton NPCM7XX I2C Controller NPCM7xx includes 16 I2C controllers. This driver operates the controller. This module also includes a slave mode, which will be submitted later on. --- v4 -> v3: - typo on cover letter. v3 -> v2: - fix dt binding: compatible name: omit "bus" v2

[PATCH v4 1/2] dt-bindings: i2c: npcm7xx: add binding for i2c controller

2018-08-19 Thread Tali Perry
Nuvoton NPCM7XX I2C Controller NPCM7xx includes 16 I2C controllers. This driver operates the controller. This module also includes a slave mode, which will be submitted later on. --- v4 -> v3: - typo on cover letter. v3 -> v2: - fix dt binding: compatible name: omit "bus" v2

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Linus Torvalds
On Sun, Aug 19, 2018 at 3:13 PM Stephen Rothwell wrote: > > Today's linux-next build (powerpc ppc64_defconfig) produced these > warnings: > > fs/cifs/cifssmb.c:605:3: warning: 'strncpy' writing 16 bytes into a region of > size 1 overflows the destination [-Wstringop-overflow=] >

[PATCH v8 1/2] PCI: pciehp: Ignore link events when there is a fatal error pending

2018-08-19 Thread Sinan Kaya
AER/DPC reset is known as warm-resets. HP link recovery is known as cold-reset via power-off and power-on command to the PCI slot. In the middle of a warm-reset operation (AER/DPC), we are: 1. turning off the slow power. Slot power needs to be kept on in order for recovery to succeed. 2.

Re: [PATCH v2] ASoC: wm9712: fix replace codec to component

2018-08-19 Thread Kuninori Morimoto
Hi # I know it is very late response Acked-by: Kuninori Morimoto > From: Marcel Ziswiler > > Since commit 143b44845d87 ("ASoC: wm9712: replace codec to component") > "wm9712-codec" got renamed to "wm9712-component", however, this change > never got propagated down to the actual

tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h

2018-08-19 Thread kbuild test robot
Hi Alexei, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2ad0d52699700a91660a406a4046017a2d7f246a commit: 819dd92b9c0bc7bce9097d8c1f14240f471bb386 bpfilter: switch to CC from HOSTCC date: 3 months ago config:

[PATCH] security/capabilities: remove check for -EINVAL

2018-08-19 Thread Christian Brauner
bprm_caps_from_vfs_caps() does not return -EINVAL anymore so remove the rc == -EINVAL check. Signed-off-by: Christian Brauner --- security/commoncap.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/security/commoncap.c b/security/commoncap.c index f4c33abd9959..6012f0cd8157 100644 ---

Re: [PATCH v6 1/2] iio: light: Add support for vishay vcnl4035

2018-08-19 Thread Jonathan Cameron
On Tue, 7 Aug 2018 12:27:03 +0200 Parthiban Nallathambi wrote: > Add support for VCNL4035, which is capable of Ambient light > sensing (ALS) and proximity function. This patch adds support > only for ALS function > > Signed-off-by: Parthiban Nallathambi > Changelog should be below the --- as

Re: [PATCH] iio: chemical: bme680: Add check for val2 in the write_raw function

2018-08-19 Thread Jonathan Cameron
On Sun, 19 Aug 2018 22:40:14 +0530 Himanshu Jha wrote: > On Sun, Aug 19, 2018 at 05:25:14PM +0100, Jonathan Cameron wrote: > > On Sat, 11 Aug 2018 15:56:36 +0530 > > Himanshu Jha wrote: > > > > > val2 is responsible for the floating part of the number to be > > > written to the device. We

Re: [PATCH v4 1/3] iio: adc: add support for mcp3911

2018-08-19 Thread Marcus Folkesson
On Sun, Aug 19, 2018 at 08:29:43PM +0100, Jonathan Cameron wrote: > On Sun, 19 Aug 2018 21:17:51 +0200 > Marcus Folkesson wrote: > > > On Sun, Aug 19, 2018 at 08:02:57PM +0100, Jonathan Cameron wrote: > > > On Wed, 8 Aug 2018 10:09:15 +0200 > > > Marcus Folkesson wrote: > > > > > > >

Re: [RFC PATCH] compiler.h: give up __compiletime_assert_fallback()

2018-08-19 Thread Nick Desaulniers
+ gbiv who wrote this cool paste (showing alternatives to _Static_assert, which is supported by both compilers in -std=gnu89, but not until gcc 4.6): https://godbolt.org/g/DuLsxu I can't help but think that BUILD_BUG_ON_MSG should use _Static_assert, then have fallbacks for gcc < 4.6. On Sun,

Re: [PATCH] Revert "Permit silencing of __deprecated warnings."

2018-08-19 Thread Jonathan Corbet
On Fri, 17 Aug 2018 20:45:06 -0600 Jason Gunthorpe wrote: > Jonathan: I'm not sure if you prefer diffs to documentation to be > minimal like this, or if should reflow the paragraph? I guess I've never really thought to develop a strong preference. But, in the end, the docs are meant to be read

Re: Build failures with gcc 4.5 and older

2018-08-19 Thread Kees Cook
On Tue, Aug 14, 2018 at 10:48 AM, Joe Perches wrote: > On Tue, 2018-08-14 at 10:09 -0700, Guenter Roeck wrote: >> Hi, >> >> Since commit c1a2f7f0c0645 ("mm: Allocate the mm_cpumask >> (mm->cpu_bitmap[]) dynamically based on nr_cpu_ids"), building >> the Linux kernel with gcc version 4.5 and older

Re: [PATCH v6 1/2] iio: light: Add support for vishay vcnl4035

2018-08-19 Thread Marcus Folkesson
Hi, On Tue, Aug 07, 2018 at 12:27:03PM +0200, Parthiban Nallathambi wrote: > Add support for VCNL4035, which is capable of Ambient light > sensing (ALS) and proximity function. This patch adds support > only for ALS function > > Signed-off-by: Parthiban Nallathambi > > Changelog since v1: > >

Re: [PATCH v4 1/3] iio: adc: add support for mcp3911

2018-08-19 Thread Jonathan Cameron
On Wed, 8 Aug 2018 10:09:15 +0200 Marcus Folkesson wrote: > MCP3911 is a dual channel Analog Front End (AFE) containing two > synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). > > Co-Developed-by: Kent Gustavsson checkpatch points out.. Co-developed-by is the 'official'

Re: [PATCH v4 1/3] iio: adc: add support for mcp3911

2018-08-19 Thread Marcus Folkesson
On Sun, Aug 19, 2018 at 08:02:57PM +0100, Jonathan Cameron wrote: > On Wed, 8 Aug 2018 10:09:15 +0200 > Marcus Folkesson wrote: > > > MCP3911 is a dual channel Analog Front End (AFE) containing two > > synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). > > > >

Re: [PATCH 3/3] iio: potentiometer: merge calls to of_match_device and of_device_get_match_data

2018-08-19 Thread Jonathan Cameron
On Sun, 19 Aug 2018 09:02:42 +0200 Peter Rosin wrote: > On 2018-05-21 11:49, Julia Lawall wrote: > > Drop call to of_match_device, which is subsumed by the subsequent > > call to of_device_get_match_data. The code becomes simpler, and a > > temporary variable can be dropped. > > > > The

Re: [PATCH v4 1/3] iio: adc: add support for mcp3911

2018-08-19 Thread Jonathan Cameron
On Sun, 19 Aug 2018 21:17:51 +0200 Marcus Folkesson wrote: > On Sun, Aug 19, 2018 at 08:02:57PM +0100, Jonathan Cameron wrote: > > On Wed, 8 Aug 2018 10:09:15 +0200 > > Marcus Folkesson wrote: > > > > > MCP3911 is a dual channel Analog Front End (AFE) containing two > > > synchronous

Re: [RFC PATCH] compiler.h: give up __compiletime_assert_fallback()

2018-08-19 Thread Linus Torvalds
On Sun, Aug 19, 2018 at 1:25 PM Nick Desaulniers wrote: > > + gbiv who wrote this cool paste (showing alternatives to > _Static_assert, which is supported by both compilers in -std=gnu89, > but not until gcc 4.6): https://godbolt.org/g/DuLsxu > > I can't help but think that BUILD_BUG_ON_MSG

linux-next: build warnings from Linus' tree

2018-08-19 Thread Stephen Rothwell
Hi Linus, Today's linux-next build (powerpc ppc64_defconfig) produced these warnings: fs/cifs/cifssmb.c: In function 'CIFSSMBNegotiate': fs/cifs/cifssmb.c:605:3: warning: 'strncpy' writing 16 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=]

cgroup aware oom killer (was Re: [PATCH 0/3] introduce memory.oom.group)

2018-08-19 Thread David Rientjes
Roman, have you had time to go through this? On Tue, 7 Aug 2018, David Rientjes wrote: > On Mon, 6 Aug 2018, Roman Gushchin wrote: > > > > In a cgroup-aware oom killer world, yes, we need the ability to specify > > > that the usage of the entire subtree should be compared as a single > > >

Re: [PATCH] gpio: 74x164: add lines-initial-states property

2018-08-19 Thread David Bauer
Hi Linus, On 8/16/18 10:11 AM, Linus Walleij wrote: > This sounds like something that should be generic, and not use > a bitmask, but offsets. It should work even if the number of > GPIOs from the chip is > 32. > > Is the usecase different from hogs? > See

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Adam Borowski
On Sun, Aug 19, 2018 at 04:21:57PM -0700, Linus Torvalds wrote: > On Sun, Aug 19, 2018 at 3:13 PM Stephen Rothwell > wrote: > > > > Today's linux-next build (powerpc ppc64_defconfig) produced these > > warnings: > > > > fs/cifs/cifssmb.c:605:3: warning: 'strncpy' writing 16 bytes into a region

Re: [PATCH 1/3] iio: dac: add support for ltc166x

2018-08-19 Thread Marcus Folkesson
Hi Jonathan, Thanks for your comments! On Sun, Aug 19, 2018 at 05:38:50PM +0100, Jonathan Cameron wrote: > On Sat, 11 Aug 2018 22:02:24 +0200 > Marcus Folkesson wrote: > > > LTC1665/LTC1660 is a 8/10-bit Digital-to-Analog Converter > > (DAC) with eight individual channels. > > > >

[PATCH] MIPS: BCM47XX: Enable USB power on Netgear WNDR3400v3

2018-08-19 Thread Tuomas Tynkkynen
Setting GPIO 21 high seems to be required to enable power to USB ports on the WNDR3400v3. As there is already similar code for WNR3500L, make the existing USB power GPIO code generic and use that. Signed-off-by: Tuomas Tynkkynen --- arch/mips/bcm47xx/workarounds.c | 8 +--- 1 file changed,

Re: [RFC PATCH] compiler.h: give up __compiletime_assert_fallback()

2018-08-19 Thread Nick Desaulniers
On Sun, Aug 19, 2018 at 1:28 PM Linus Torvalds wrote: > > On Sun, Aug 19, 2018 at 1:25 PM Nick Desaulniers > wrote: > > > > + gbiv who wrote this cool paste (showing alternatives to > > _Static_assert, which is supported by both compilers in -std=gnu89, > > but not until gcc 4.6):

Re: [RFC PATCH] compiler.h: give up __compiletime_assert_fallback()

2018-08-19 Thread Linus Torvalds
On Sun, Aug 19, 2018 at 1:36 PM Nick Desaulniers wrote: > > On Sun, Aug 19, 2018 at 1:28 PM Linus Torvalds > wrote: > > > > Well, it turns out that we effectively stopped supporting gcc < 4.6 > > during this merge window for other reasons, so.. > > For the whole kernel (or just a particular

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Stephen Rothwell
Hi all, On Mon, 20 Aug 2018 08:16:18 +1000 Stephen Rothwell wrote: > > On Mon, 20 Aug 2018 08:13:23 +1000 Stephen Rothwell > wrote: > > > > Today's linux-next build (powerpc ppc64_defconfig) produced these > > warnings: > > > ... > > > > Presumably caused by my update to gcc 8.2.0. > >

Re: [PATCH v8 2/2] PCI: pciehp: Mask AER surprise link down error if hotplug is enabled

2018-08-19 Thread Sinan Kaya
On 8/18/2018 2:51 AM, Sinan Kaya wrote: cleanup_slot(ctrl); + pciehp_control_surprise_error(ctrl, true); I think I need to move this one line up but I'd like to see some input here and also ask for some testing. I don't have any hardware to test.

Re: [PATCH v8 2/2] PCI: pciehp: Mask AER surprise link down error if hotplug is enabled

2018-08-19 Thread kbuild test robot
Hi Sinan, I love your patch! Yet something to improve: [auto build test ERROR on pci/next] [also build test ERROR on next-20180817] [cannot apply to v4.18] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [RFC PATCH] pci: Proof of concept at fixing pci_enable_device/bridge races

2018-08-19 Thread Guenter Roeck
On Thu, Aug 16, 2018 at 09:38:41AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2018-08-15 at 15:40 -0700, Guenter Roeck wrote: > > On Thu, Aug 16, 2018 at 07:50:13AM +1000, Benjamin Herrenschmidt wrote: > > > (Resent with lkml on copy) > > > > > > [Note: This isn't meant to be merged, it need

Hi, pretty

2018-08-19 Thread Larry
Hallo schön, ich bin Larry aus den Vereinigten Staaten, ich hoffe, dass diese Nachricht gut zu dir gelangt? .. Ich bin ein einzelner Mann, ich war noch nie verheiratet, bevor ich dich wirklich besser kennenlernen will, ich bin ein unbekümmerter mann, und ich suche gerade nach einem ernsten

Re: [GIT PULL] RISC-V Updates for the 4.19 Merge Window

2018-08-19 Thread Guenter Roeck
On 08/19/2018 12:26 AM, Karsten Merker wrote: [ ... ] However, the she system boots fine with the same qemu command line if I use qemu built from https://github.com/riscv/riscv-qemu.git, branch qemu-for-upstream. Hello, AFAICS the qemu patch that adds support for handling separate bbl and

[PATCH v4 01/16] x86/cpu: create Dhyana init file and register new cpu_dev to system

2018-08-19 Thread Pu Wen
Add x86 architecture support for new processor Hygon Dhyana Family 18h. Rework to create a separated file(arch/x86/kernel/cpu/hygon.c) from the AMD init one(arch/x86/kernel/cpu/amd.c) to initialize Dhyana CPU. In this way we can remove old AMD architecture support codes from Hygon code path and

[PATCH v4 03/16] x86/mtrr: get MTRR number and support TOP_MEM2

2018-08-19 Thread Pu Wen
Hygon CPU have a special magic MSR way to force WB for memory >4GB, and also support TOP_MEM2. Therefore, it is necessary to add Hygon support in amd_special_default_mtrr(). The MtrrFixDramModEn bit on Hygon platform should also be set to 1 during BIOS initialization of the fixed MTRRs, then

[PATCH v4 02/16] x86/cache: get cache size/leaves and setup cache cpumap for Dhyana

2018-08-19 Thread Pu Wen
Hygon Dhyana processor has the topology extensions bit in CPUID. With this bit kernel can get the cache info. So add support in cpuid4_cache_lookup_regs() to get the correct cache size. Dhyana also find num_cache_leaves via CPUID leaf 0x801d, so add Hygon support in find_num_cache_leaves().

[PATCH v4 05/16] x86/pmu: enable Hygon support to PMU infrastructure

2018-08-19 Thread Pu Wen
Hygon PMU arch is similar to AMD Family 17h. To support Hygon PMU, the initialization flow for it just call amd_pmu_init() and change PMU name to "HYGON". To share AMD's flow, add code check for Hygon family ID 18h to run the code path of AMD family 17h in core/uncore functions. Also it returns

[PATCH v4 04/16] x86/smpboot: smp init nodelay and no flush caches before sleep

2018-08-19 Thread Pu Wen
Dhyana use no delay in smp_quirk_init_udelay(), and return in mwait_play_dead() as AMD does. Signed-off-by: Pu Wen --- arch/x86/kernel/smpboot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index f02ecaf..5369d7f

[PATCH v4 06/16] x86/nops: init ideal_nops for Hygon

2018-08-19 Thread Pu Wen
The ideal_nops for Dhyana processors should be p6_nops. Signed-off-by: Pu Wen --- arch/x86/kernel/alternative.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index a481763..8f4925b 100644 --- a/arch/x86/kernel/alternative.c

Re: [PATCH v6 1/6] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer

2018-08-19 Thread Jonathan Cameron
On Fri, 10 Aug 2018 11:46:18 +0300 Stefan Popa wrote: > This patch adds basic support for Analog Devices ADXL372 SPI-Bus > Three-Axis Digital Accelerometer. > > The device is probed and configured the with some initial default > values. With this basic driver, it is possible to read raw

Re: [PATCH v6 4/6] iio:adxl372: Add FIFO and interrupts support

2018-08-19 Thread Jonathan Cameron
On Fri, 10 Aug 2018 11:46:21 +0300 Stefan Popa wrote: > This patch adds support for the adxl372 FIFO. In order to accomplish this, > triggered buffers were used. > > The number of FIFO samples which trigger the watermark interrupt can be > configured by using the buffer watermark. The FIFO

Re: [PATCH] iio: max44000: remove unused variable max44000_alstim_shift

2018-08-19 Thread Jonathan Cameron
On Thu, 9 Aug 2018 14:53:38 +0100 Colin King wrote: > From: Colin Ian King > > Variable max44000_alstim_shift is defined but is never used hence it is > redundant and can be removed. This variable has been like this since > the driver was added back in 2016. > > Cleans up clang warning: >

Re: [PATCH 6/7] lib/bitmap.c: fix remaining space computation in bitmap_print_to_pagebuf

2018-08-19 Thread Andy Shevchenko
On Sat, Aug 18, 2018 at 4:17 PM Rasmus Villemoes wrote: > > For various alignments of buf, the current expression computes > > 4096 ok > 4095 ok > 8190 > 8189 > ... > 4097 > > i.e., if the caller has already written two bytes into the page buffer, > len is 8190 rather than 4094, because PTR_ALIGN

Re: WARNING in __fsnotify_recalc_mask

2018-08-19 Thread syzbot
Hello, syzbot tried to test the proposed patch but build/boot failed: patch is already applied Tested on: commit: 2df79a019776 fsnotify: fix false positive warning on inode.. git tree: https://github.com/amir73il/linux.git/fsnotify-fixes compiler: gcc (GCC) 8.0.1 20180413

Re: [PATCH v1 5/5] mm/memory_hotplug: print only with DEBUG_VM in online/offline_pages()

2018-08-19 Thread Wei Yang
On Fri, Aug 17, 2018 at 10:18:53AM +0200, Oscar Salvador wrote: >> failed_addition: >> +#ifdef CONFIG_DEBUG_VM >> pr_debug("online_pages [mem %#010llx-%#010llx] failed\n", >> (unsigned long long) pfn << PAGE_SHIFT, >> (((unsigned long long) pfn + nr_pages) <<

[PATCH] i2c: Remove '-Wno-deprecated-declarations' compiler warning

2018-08-19 Thread Sedat Dilek
This can be dropped with commit 771c035372a036f83353eef46dbb829780330234 ("deprecate the '__deprecated' attribute warnings entirely and for good") now in upstream. Please, use the kbuild infrastruture to disable compiler warnings. This should be... CFLAGS_i2c-core-base.o := $(call

Re: [PATCH] iio: pressure: ms5611: remove deprecated compatible strings

2018-08-19 Thread Jonathan Cameron
On Thu, 16 Aug 2018 20:49:15 +0200 Tomasz Duszynski wrote: > Compatible strings tend to follow manufacturer,model format. > In case one wants to do a matching with manufacturer stripped > off he can still do so since SPI/I2C core will try id_table > based matching anyway. > > Signed-off-by:

Re: [PATCH] iio: accel: cros_ec_accel_legacy: Mark expected switch fall-throughs

2018-08-19 Thread Jonathan Cameron
On Sat, 18 Aug 2018 17:34:40 +0200 Marcus Folkesson wrote: > Hi Gutavo, > > Sorry for the delay. > > On Wed, Aug 15, 2018 at 12:50:10PM -0500, Gustavo A. R. Silva wrote: > > Hi Marcus, > > > > On 8/15/18 12:27 PM, Marcus Folkesson wrote: > > > Hi, > > > > > > On Wed, Aug 15, 2018 at

Re: [RESEND PATCH] iio: dac: mcp4725: avoid using CONFIG_PM_SLEEP

2018-08-19 Thread Jonathan Cameron
On Sat, 11 Aug 2018 10:47:25 +0200 Marcus Folkesson wrote: > This is already handled by SIMPLE_DEV_PM_OPS(). > > Signed-off-by: Marcus Folkesson Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. > --- > Somehow git-send-email messed up (?!)

Re: [PATCH] iio: chemical: bme680: Add check for val2 in the write_raw function

2018-08-19 Thread Himanshu Jha
On Sun, Aug 19, 2018 at 05:25:14PM +0100, Jonathan Cameron wrote: > On Sat, 11 Aug 2018 15:56:36 +0530 > Himanshu Jha wrote: > > > val2 is responsible for the floating part of the number to be > > written to the device. We don't need the floating part > > while writing the oversampling ratio for

Re: [PATCH v6 3/6] regmap: Add regmap_noinc_read API

2018-08-19 Thread Jonathan Cameron
On Fri, 10 Aug 2018 11:38:56 +0100 Mark Brown wrote: > On Fri, Aug 10, 2018 at 11:46:20AM +0300, Stefan Popa wrote: > > From: Crestez Dan Leonard > > > > The regmap API usually assumes that bulk read operations will read a > > range of registers but some I2C/SPI devices have certain registers

[PATCH v4 15/16] driver/edac: enable Hygon support to AMD64 EDAC driver

2018-08-19 Thread Pu Wen
To make AMD64 EDAC and MCE drivers working on Hygon platforms, add vendor checking for Hygon by using the code path of AMD 0x17. Add a vendor field to struct amd64_pvt and initialize it in per_family_init for vendor checking. Also Hygon PCI Device ID DF_F0/DF_F6(0x1460/0x1466) of Host bridges is

[PATCH v4 11/16] x86/kvm: enable Hygon support to KVM infrastructure

2018-08-19 Thread Pu Wen
Hygon Dhyana CPU has the SVM feature as AMD family 17h does. Add Hygon support in the KVM infrastructure. Signed-off-by: Pu Wen --- arch/x86/include/asm/kvm_emulate.h | 4 arch/x86/include/asm/virtext.h | 5 +++-- arch/x86/kvm/emulate.c | 11 ++- 3 files changed,

[PATCH v4 16/16] tools/cpupower: enable Hygon support to cpupower tool

2018-08-19 Thread Pu Wen
Tool cpupower is useful to get CPU frequency information and monitor power stats on Hygon platforms. So enable platform support to cpupower for Hygon Dhyana Family 18h processors by checking vendor ID & family and vendor string along with AMD. Signed-off-by: Pu Wen ---

[PATCH v4 14/16] driver/cpufreq: enable Hygon support to cpufreq driver

2018-08-19 Thread Pu Wen
Enable ACPI cpufreq driver support for Hygon by adding family ID check along with AMD. As Hygon platforms have SMBus device(PCI device ID 0x790b), enable Hygon support to function amd_freq_sensitivity_init(). Acked-by: Rafael J. Wysocki Signed-off-by: Pu Wen --- drivers/cpufreq/acpi-cpufreq.c

[PATCH v4 13/16] driver/acpi: enable Hygon support to ACPI driver

2018-08-19 Thread Pu Wen
For Dhyana processors have NONSTOP TSC feature, so enable the support to ACPI driver. Acked-by: Rafael J. Wysocki Signed-off-by: Pu Wen --- drivers/acpi/acpi_pad.c | 1 + drivers/acpi/processor_idle.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/acpi/acpi_pad.c

Re: [PATCH v6 1/2] iio: light: Add support for vishay vcnl4035

2018-08-19 Thread Jonathan Cameron
On Sat, 11 Aug 2018 23:25:41 +0800 kbuild test robot wrote: > Hi Parthiban, > > Thank you for the patch! Yet something to improve: The issue here is I think that you should be simply calling hweight8 rather than directly calling the fallback software version. I 'might' fix that up if it is

[PATCH v3] staging: mt7621-mmc: Fix debug macros and their usages

2018-08-19 Thread Nishad Kamdar
Fixed four debug macros and their usages. Replaced printk with dev_ without __func__ or __LINE__ or current->comm and current->pid. Further removed the do {} while(0) loop for single statement macros. Out of the four, replaced all usages of ERR_MSG and IRQ_MSG with dev_err() in the code itself and

Re: WARNING in __fsnotify_recalc_mask

2018-08-19 Thread Amir Goldstein
On Sat, Aug 18, 2018 at 7:26 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:1f7a4c73a739 Merge tag '9p-for-4.19-2' of git://github.com.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=10cccef240 > kernel config:

make *config regression: pkg-build

2018-08-19 Thread Meelis Roos
Just tried to run 'make menuconfig' on v4.18-10568-g08b5fa819970 and found a bad surprise: 'make *config' requires 'pkg-config'. Please install it. make[1]: *** [scripts/kconfig/Makefile:219: scripts/kconfig/.mconf-cfg] Error 1 This is clearly a regression - I have libncurses devele pakcage

Re: [PATCH 1/3] iio: dac: add support for ltc166x

2018-08-19 Thread Jonathan Cameron
On Sat, 11 Aug 2018 22:02:24 +0200 Marcus Folkesson wrote: > LTC1665/LTC1660 is a 8/10-bit Digital-to-Analog Converter > (DAC) with eight individual channels. > > Signed-off-by: Marcus Folkesson So first rule we try to stick to that this breaks is never use wild cards in drivers. You

Re: [PATCH] iio: adc: qcom-spmi-adc5: Add ADC5_AMUX_THM[24]_100K_PU to rev2 channel list

2018-08-19 Thread Jonathan Cameron
On Fri, 10 Aug 2018 12:47:02 -0700 Matthias Kaehlcke wrote: > Add ADC5_AMUX_THM2_100K_PU and ADC5_AMUX_THM4_100K_PU to the list of > rev2 ADC channels. > > Signed-off-by: Matthias Kaehlcke This is fine and applied to the togreg branch of iio.git. Pushed out as testing to let the autobuilders

Re: [PATCH v6 4/6] iio:adxl372: Add FIFO and interrupts support

2018-08-19 Thread Jonathan Cameron
On Sun, 19 Aug 2018 18:12:18 +0100 Jonathan Cameron wrote: > On Fri, 10 Aug 2018 11:46:21 +0300 > Stefan Popa wrote: > > > This patch adds support for the adxl372 FIFO. In order to accomplish this, > > triggered buffers were used. > > > > The number of FIFO samples which trigger the watermark

[PATCH] staging: rtl8188eu: Removed unneeded variable

2018-08-19 Thread Bhaskar Singh
This patch removed unneeded variable named ret because this variable is used only to return 0. Signed-off-by: Bhaskar Singh --- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c

Re: [PATCH] i2c: Remove '-Wno-deprecated-declarations' compiler warning

2018-08-19 Thread kbuild test robot
/linux/commits/Sedat-Dilek/i2c-Remove-Wno-deprecated-declarations-compiler-warning/20180819-55 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next config: i386-randconfig-x016-201833 (attached as .config) compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 reproduce

[GIT PULL] Char/Misc driver fix for 4.19-rc1

2018-08-19 Thread Greg KH
The following changes since commit 9d3cce1e8b8561fed5f383d22a4d6949db4eadbe: Linux 4.18-rc5 (2018-07-15 12:49:31 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git tags/char-misc-4.19-rc1 for you to fetch changes up to

Re: [PATCH] iio: health: max30102: Mark expected switch fall-throughs

2018-08-19 Thread Jonathan Cameron
On Wed, 15 Aug 2018 11:23:49 -0500 "Gustavo A. R. Silva" wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case, I placed the "fall through" > annotation at the bottom of the case, which is

[PATCH] Staging: fsl-dpaa2: ethsw: dpsw: Use correct SPDX-License-Identifier comment

2018-08-19 Thread Jannis Nawroth
Use correct comment for SPDX-License-Identifier Signed-off-by: Jannis Nawroth --- drivers/staging/fsl-dpaa2/ethsw/dpsw.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/fsl-dpaa2/ethsw/dpsw.h b/drivers/staging/fsl-dpaa2/ethsw/dpsw.h index

Re: [RESEND PATCH] iio: dac: max517: avoid using CONFIG_PM_SLEEP

2018-08-19 Thread Jonathan Cameron
On Sat, 11 Aug 2018 10:47:09 +0200 Marcus Folkesson wrote: > This is already handled by SIMPLE_DEV_PM_OPS(). > > Signed-off-by: Marcus Folkesson Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. thanks, Jonathan > --- > Somehow

Re: [RESEND PATCH] iio: dac: max5821: avoid using CONFIG_PM_SLEEP

2018-08-19 Thread Jonathan Cameron
On Sat, 11 Aug 2018 10:47:18 +0200 Marcus Folkesson wrote: > This is already handled by SIMPLE_DEV_PM_OPS(). > > Signed-off-by: Marcus Folkesson Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > Somehow

Re: [PATCH] iio: adc: max9611: explicitly cast gain_selectors

2018-08-19 Thread Jonathan Cameron
On Sat, 11 Aug 2018 11:12:19 +0200 Stefan Agner wrote: > After finding a reasonable gain, the function converts the configured > gain to a gain configuration option selector enum max9611_csa_gain. > Make the conversion clearly visible by using an explicit cast. This > also avoids a warning seen

Re: [PATCH v6 2/6] dt-bindings: iio: accel: Add docs for ADXL372

2018-08-19 Thread Jonathan Cameron
On Fri, 10 Aug 2018 11:46:19 +0300 Stefan Popa wrote: > Add the device tree binding documentation for the ADXL372 3-axis digital > accelerometer. > > Signed-off-by: Stefan Popa > Reviewed-by: Rob Herring Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to

Re: [PATCH v3] staging: mt7621-mmc: Fix debug macros and their usages

2018-08-19 Thread Greg Kroah-Hartman
On Sun, Aug 19, 2018 at 03:35:02PM +0530, Nishad Kamdar wrote: > Fixed four debug macros and their usages. Replaced printk with > dev_ without __func__ or __LINE__ or current->comm and > current->pid. Further removed the do {} while(0) loop for single > statement macros. > Out of the four,

Re: [PATCH 0/7] assorted minor bitmap patches

2018-08-19 Thread Andy Shevchenko
On Sat, Aug 18, 2018 at 4:17 PM Rasmus Villemoes wrote: > > A recent LKML thread had me look into bitmap.{h,c} again, and I > stumbled on/rediscovered a few things. > Good fixes, thanks! Reviewed-by: Andy Shevchenko P.S. Perhaps needs addressing my comment to patch 6. > Rasmus Villemoes (7):

Re: make *config regression: pkg-build

2018-08-19 Thread Randy Dunlap
On 08/19/2018 04:15 AM, Meelis Roos wrote: > Just tried to run 'make menuconfig' on v4.18-10568-g08b5fa819970 and > found a bad surprise: > > 'make *config' requires 'pkg-config'. Please install it. > make[1]: *** [scripts/kconfig/Makefile:219: scripts/kconfig/.mconf-cfg] Error > 1 > > This is

[PATCH v4 09/16] x86/bugs: add lfence mitigation to spectre v2 and no meltdown for Hygon

2018-08-19 Thread Pu Wen
To share codes between AMD and Hygon to mitigate Spectre V2 Retpoline vulnerability, rename macros SPECTRE_V2_RETPOLINE_MINIMAL_AMD to SPECTRE_V2_RETPOLINE_MINIMAL_LFENCE, and SPECTRE_V2_CMD_RETPOLINE_AMD to SPECTRE_V2_CMD_RETPOLINE_LFENCE. As Hygon processors are not affected by meltdown

  1   2   3   >