[PATCH 1/4] fscache: Fix the default for fscache_maybe_release_page()

2018-01-02 Thread David Howells
Fix the default for fscache_maybe_release_page() for when the cookie isn't valid or the page isn't cached. It mustn't return false as that indicates the page cannot yet be freed. The problem with the default is that if, say, there's no cache, but a network filesystem's pages are using up alm

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

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

Re: [PATCH] Bluetooth: btusb: Add support for 0cf3:e010

2018-01-02 Thread Marcel Holtmann
Hi AceLan, > Device 0cf3:e010 is one of the QCA ROME family. > > T: Bus=01 Lev=01 Prnt=01 Port=13 Cnt=03 Dev#= 4 Spd=12 MxCh= 0 > D: Ver= 2.01 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 > P: Vendor=0cf3 ProdID=e010 Rev=00.01 > C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA > I: If#= 0 Alt= 0 #

Re: Build regressions/improvements in v4.15-rc6

2018-01-02 Thread Geert Uytterhoeven
On Tue, Jan 2, 2018 at 11:47 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.15-rc6[1] to v4.15-rc5[3], the summaries are: > - build errors: +1/-2 + {standard input}: Error: unknown opcode: => 4554, 3363, 2025, 1819, 788, 2605, 2035, 6420, 4224, 1442, 3788, 768, 144, 3386, 2702, 6299

[PATCH] slimbus: qcom-ctrl: use normal allocation

2018-01-02 Thread Arnd Bergmann
The previous patch addressed a warning but not the cause: drivers/slimbus/qcom-ctrl.c: In function 'qcom_slim_probe': drivers/slimbus/qcom-ctrl.c:584:9: error: passing argument 3 of 'dmam_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types] There are two things wr

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

2018-01-02 Thread Rafael J. Wysocki
On Tue, Jan 2, 2018 at 11:44 AM, Geert Uytterhoeven wrote: > Hi Rafael, > > On Tue, Jan 2, 2018 at 11:32 AM, Rafael J. Wysocki wrote: >> On Fri, Dec 29, 2017 at 2:31 PM, Ulf Hansson wrote: >>> From: Geert Uytterhoeven >>> >>> Since commit ab82fa7da4dce5c7 ("gpio: rcar: Prevent module clock disa

Build regressions/improvements in v4.15-rc6

2018-01-02 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.15-rc6[1] compared to v4.14[2]. Summarized: - build errors: +2/-6 - build warnings: +1292/-796 JFYI, when comparing v4.15-rc6[1] to v4.15-rc5[3], the summaries are: - build errors: +1/-2 - build warnings: +707/-948 H

[PATCH 2/4] afs: Potential uninitialized variable in afs_extract_data()

2018-01-02 Thread David Howells
From: Dan Carpenter Smatch warns that: fs/afs/rxrpc.c:922 afs_extract_data() error: uninitialized symbol 'remote_abort'. Smatch is right that "remote_abort" might be uninitialized when we pass it to afs_set_call_complete(). I don't know if that function uses the uninitialized variable.

[PATCH 4/4] afs: Fix missing error handling in afs_write_end()

2018-01-02 Thread David Howells
afs_write_end() is missing page unlock and put if afs_fill_page() fails. Reported-by: Al Viro Signed-off-by: David Howells --- fs/afs/write.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fs/afs/write.c b/fs/afs/write.c index cb5f8a3df577..9370e2feb999 100644 -

[PATCH 3/4] afs: Fix unlink

2018-01-02 Thread David Howells
Repeating creation and deletion of a file on an afs mount will run the box out of memory, e.g.: dd if=/dev/zero of=/afs/scratch/m0 bs=$((1024*1024)) count=512 rm /afs/scratch/m0 The problem seems to be that it's not properly decrementing the nlink count so that the inode can be sc

[PATCH 0/4] afs, fscache: Fixes

2018-01-02 Thread David Howells
ux-fs.git/log/?h=afs-fixes tagged thusly: afs-fixes-20180102 David --- Dan Carpenter (1): afs: Potential uninitialized variable in afs_extract_data() David Howells (3): fscache: Fix the default for fscache_maybe_release_page() afs: Fix unlink afs: Fix missi

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

2018-01-02 Thread Geert Uytterhoeven
Hi Rafael, On Tue, Jan 2, 2018 at 11:32 AM, Rafael J. Wysocki wrote: > On Fri, Dec 29, 2017 at 2:31 PM, Ulf Hansson wrote: >> From: Geert Uytterhoeven >> >> Since commit ab82fa7da4dce5c7 ("gpio: rcar: Prevent module clock disable >> when wake-up is enabled"), when a GPIO is used for wakeup, the

[PATCH] tpm: remove unused variables

2018-01-02 Thread Arnd Bergmann
The CLKRUN fix caused a few harmless compile-time warnings: drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_pnp_remove': drivers/char/tpm/tpm_tis.c:274:23: error: unused variable 'priv' [-Werror=unused-variable] drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_plat_remove': drivers/char/tpm/tpm_

Re: [PATCH 05/67] dma-mapping: replace PCI_DMA_BUS_IS_PHYS with a flag in struct dma_map_ops

2018-01-02 Thread Geert Uytterhoeven
On Fri, Dec 29, 2017 at 9:18 AM, Christoph Hellwig wrote: > The current PCI_DMA_BUS_IS_PHYS decided if a dma implementation is bound > by the dma mask in the device because it directly maps to a physical > address range (modulo an offset in the device), or if it is virtualized > by an iommu and ca

Re: [PATCH 22/67] dma-mapping: clear harmful GFP_* flags in common code

2018-01-02 Thread Geert Uytterhoeven
On Fri, Dec 29, 2017 at 9:18 AM, Christoph Hellwig wrote: > Life the code from x86 so that we behave consistently. In the future we > should probably warn if any of these is set. > > Signed-off-by: Christoph Hellwig For m68k: Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s,

Re: [PATCH 02/67] alpha: mark jensen as broken

2018-01-02 Thread Geert Uytterhoeven
Hi Christoph, On Fri, Dec 29, 2017 at 9:18 AM, Christoph Hellwig wrote: > CONFIG_ALPHA_JENSEN has failed to compile since commit aca05038 > ("alpha/dma: use common noop dma ops"), so mark it as broken. unknown revision or path not in the working tree. Ah, you dropped the leading "6": 6aca0503847

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

2018-01-02 Thread Arnd Bergmann
The 'ret' variable is used to store the integer return value of ocfs2_get_clusters(), as shown by this warning from modern compilers: fs/ocfs2/aops.c: In function 'ocfs2_range_has_holes': fs/ocfs2/aops.c:2437:11: error: comparison of constant '0' with boolean expression is always false [-Werror=b

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

2018-01-02 Thread Arnd Bergmann
We now have exports in both architecture code in in common code, which causes a link failure when symbol versioning is eanbled, on four architectures: kernel/exit.o: In function `__crc_abort': exit.c:(*ABS*+0xc0e2ec8b): multiple definition of `__crc_abort' This removes the four architecture speci

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

2018-01-02 Thread Rafael J. Wysocki
On Fri, Dec 29, 2017 at 2:31 PM, Ulf Hansson wrote: > From: Geert Uytterhoeven > > Since commit ab82fa7da4dce5c7 ("gpio: rcar: Prevent module clock disable > when wake-up is enabled"), when a GPIO is used for wakeup, the GPIO block's > module clock (if exists) is manually kept running during syst

Re: [PATCH 29/67] dma-direct: use node local allocations for coherent memory

2018-01-02 Thread Geert Uytterhoeven
Missing patch description explaining why this change is desirable. On Fri, Dec 29, 2017 at 9:18 AM, Christoph Hellwig wrote: > --- a/lib/dma-direct.c > +++ b/lib/dma-direct.c > @@ -39,7 +39,7 @@ static void *dma_direct_alloc(struct device *dev, size_t > size, > if (gfpflags_allow_blockin

Re: [PATCH v2] PCI: dwc: Use {upper,lower}_32_bits() macros for clarity

2018-01-02 Thread Lorenzo Pieralisi
On Thu, Dec 28, 2017 at 08:09:55AM -0800, Stephen Boyd wrote: > On 12/28, Joao Pinto wrote: > > > if (pp->ops->get_msi_data) > > > msg.data = pp->ops->get_msi_data(pp, pos); > > > > > > > Thanks for the patch. > > Gustavo' patch-set targeting the update of the Interrupt API for > > pc

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

2018-01-02 Thread Rafael J. Wysocki
On Tue, Jan 2, 2018 at 10:37 AM, Geert Uytterhoeven wrote: > Hi Linus, > > On Tue, Jan 2, 2018 at 10:27 AM, Linus Walleij > wrote: >> On Fri, Dec 29, 2017 at 2:31 PM, Ulf Hansson wrote: >>> From: Geert Uytterhoeven >>> Since commit ab82fa7da4dce5c7 ("gpio: rcar: Prevent module clock disable >>

Re: ACPI issues on cold power on [bisected]

2018-01-02 Thread Rafael J. Wysocki
On Tue, Jan 2, 2018 at 3:54 AM, Joonsoo Kim wrote: > On Fri, Dec 29, 2017 at 04:36:59PM +, Jonathan McDowell wrote: >> On Fri, Dec 22, 2017 at 09:21:09AM +0900, Joonsoo Kim wrote: >> > On Fri, Dec 08, 2017 at 03:11:59PM +, Jonathan McDowell wrote: >> > > I've been sitting on this for a whi

Re: [PATCH 16/67] powerpc: rename dma_direct_ to dma_nommu_

2018-01-02 Thread Geert Uytterhoeven
On Tue, Jan 2, 2018 at 10:45 AM, Michael Ellerman wrote: > Christoph Hellwig writes: > >> We want to use the dma_direct_ namespace for a generic implementation, >> so rename powerpc to the second best choice: dma_nommu_. > > I'm not a fan of "nommu". Some of the users of direct ops *are* using an

Re: [PATCH 2/3] dt-bindings: mtd: atmel-quadspi: add an optional property 'dmacap,memcpy'

2018-01-02 Thread Ludovic Desroches
Hi Cyrille, On Wed, Dec 27, 2017 at 10:40:00PM +0100, Cyrille Pitchen wrote: > Hi Rob, > > + Ludovic Desroches, maintainer of the DMA controller drivers for AT91 SoCs. > > Le 27/12/2017 à 00:23, Rob Herring a écrit : > > On Sun, Dec 24, 2017 at 05:36:05AM +0100, Cyrille Pitchen wrote: > >> The o

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

2018-01-02 Thread Mel Gorman
On Sat, Dec 23, 2017 at 10:36:53AM +0900, Minchan Kim wrote: > > code path. It appears that similar situation is possible for them too. > > > > The file cache pages will be delete from file cache address_space before > > address_space (embedded in inode) is freed. But they will be deleted > > fr

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

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

[PATCH] of/fdt: Fix #ifdef dependency of early flattree declarations

2018-01-02 Thread Geert Uytterhoeven
If OF_FLATTREE=y, but OF_EARLY_FLATTREE=n: drivers/tty/serial/earlycon.o: In function `param_setup_earlycon': earlycon.c:(.init.text+0x3a4): undefined reference to `early_init_dt_scan_chosen_stdout' Fix this by moving the early flattree forward declarations and dummy implementations insi

Re: Documentation: OMAPDSS: move sysfs documentation to ABI

2018-01-02 Thread Tomi Valkeinen
Hi, On 02/01/18 10:54, Aishwarya Pant wrote: > Hi > > In Documentation/arm/OMAP/DSS, there is a description of the DSS and FB sysfs > interfaces which could be moved to Documentation/ABI. > > Would such a change be useful? I can see that the sysfs interface is still in > testing. > > The ABI do

Re: [PATCH 4.14 00/74] 4.14.10-stable review

2018-01-02 Thread Milosz Wasilewski
On 31 December 2017 at 10:15, Greg Kroah-Hartman wrote: >> >> I re-tested ldt_gdt_64 again locally and in testing LAB. The test >> failed again so I think this is a regression. I did the bisection >> which resulted in >> >> 2c8e9099aecec2baaac8d34c7b823493f2d0eeed is the first bad commit >> commit

[PATCH] netfilter: add nf_queue_entry forward declaration

2018-01-02 Thread Arnd Bergmann
The newly added callback pointers cause a warning for some configurations: In file included from net/ipv6/af_inet6.c:45:0: include/linux/netfilter_ipv6.h:38:51: error: 'struct nf_queue_entry' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]

[PATCH v6 10/10] clocksource: timer-dm: Check prescaler value

2018-01-02 Thread Keerthy
From: Ladislav Michl Invalid prescaler value is silently ignored. Fix that by returning -EINVAL in such case. As invalid value disabled use of the prescaler, use -1 explicitely for that purpose. Signed-off-by: Ladislav Michl --- drivers/clocksource/timer-dm.c | 3 +++ 1 file changed, 3 inserti

[PATCH v6 06/10] clocksource: dmtimer: Populate the timer ops to the pdata

2018-01-02 Thread Keerthy
Add the timer ops to the platform data Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- drivers/clocksource/timer-dm.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/clocksource/timer-dm.c b/drivers/clocksource/timer-dm

[PATCH v6 03/10] arm: omap: Move dmtimer.h out of plat-omap

2018-01-02 Thread Keerthy
The header file is currently under plat-omap directory under arch/omap. Move this out to an accessible place. No Code changes done to the header file. Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- arch/arm/mach-omap1/pm.c

[PATCH v6 01/10] clocksource: dmtimer: Remove all the exports

2018-01-02 Thread Keerthy
Remove all the unwanted exports from the driver Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- arch/arm/plat-omap/dmtimer.c | 27 --- 1 file changed, 27 deletions(-) diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmt

[PATCH v6 09/10] arm: omap: pdata-quirks: Remove unused timer pdata

2018-01-02 Thread Keerthy
Remove unused timer pdata. Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- arch/arm/mach-omap2/pdata-quirks.c | 32 1 file changed, 32 deletions(-) diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata

[PATCH v6 04/10] arm: OMAP: Move dmtimer driver out of plat-omap to drivers under clocksource

2018-01-02 Thread Keerthy
Move the dmtimer driver out of plat-omap to clocksource. So that non-omap devices also could use this. No Code changes done to the driver file only renamed to timer-dm.c. Also removed the config dependencies for OMAP_DM_TIMER. Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Lad

[PATCH v6 08/10] pwm: pwm-omap-dmtimer: Adapt driver to utilize dmtimer pdata ops

2018-01-02 Thread Keerthy
Adapt driver to utilize dmtimer pdata ops instead of pdata-quirks. Signed-off-by: Keerthy Tested-by: Ladislav Michl --- drivers/pwm/pwm-omap-dmtimer.c | 39 ++- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/d

[PATCH v6 07/10] clocksource: timer-dm: Hook device platform data if not already assigned

2018-01-02 Thread Keerthy
From: Ladislav Michl In the case of device tree boot the device platform data is usually NULL so hook the platform data obtained from the match. As part of un-constify the platform_data pointer. Signed-off-by: Ladislav Michl Signed-off-by: Keerthy --- drivers/clocksource/timer-dm.c | 10 +

Re: [PATCH v2] USB: host: Use zeroing memory allocator rather than allocator/memset

2018-01-02 Thread Mathias Nyman
On 30.12.2017 22:03, Himanshu Jha wrote: Use dma_zalloc_coherent for allocating zeroed memory and remove unnecessary memset function. Done using Coccinelle. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci 0-day tested with no failures. Suggested-by: Luis R. Rodriguez Signed-off

[PATCH v6 05/10] dmtimer: Add timer ops to the platform data structure

2018-01-02 Thread Keerthy
Add timer ops to the platform data structure Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- include/linux/platform_data/dmtimer-omap.h | 38 ++ 1 file changed, 38 insertions(+) diff --git a/include/linux/platform_data/dmtimer-om

[PATCH v6 00/10] omap: dmtimer: Move driver out of plat-omap

2018-01-02 Thread Keerthy
The series moves dmtimer out of plat-omap to drivers/clocksource. The series also does a bunch of changes to pwm-omap-dmtimer code to adapt to the driver migration and clean up plat specific pdata-quirks and use the dmtimer platform data. Boot tested on DRA7-EVM and AM437X-GP-EVM. Compile tested o

[PATCH v6 02/10] arm: omap: timer: Wrap the inline functions under OMAP2PLUS define

2018-01-02 Thread Keerthy
Wrap the inline functions under OMAP2PLUS/OMAP1 defines. Signed-off-by: Keerthy Tested-by: Ladislav Michl --- arch/arm/plat-omap/include/plat/dmtimer.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/plat-omap/include/plat/dmtimer.h b/arch/arm/plat-omap/incl

Re: [PATCH 1/2] Revert "Bluetooth: btusb: fix QCA Rome suspend/resume"

2018-01-02 Thread Kai Heng Feng
> On 21 Dec 2017, at 7:43 PM, Daniel Drake wrote: > > On Wed, Dec 20, 2017 at 6:53 PM, Brian Norris > wrote: >> >> On Wed, Dec 20, 2017 at 07:00:07PM +0800, Kai-Heng Feng wrote: >>> This commit causes a regression on some QCA ROME chips. The USB device >>> reset happens in btusb_open(), henc

[char-misc-next] mei: me: allow runtime pm for platform with D0i3

2018-01-02 Thread Tomas Winkler
>From the pci power documentation: "The driver itself should not call pm_runtime_allow(), though. Instead, it should let user space or some platform-specific code do that (user space can do it via sysfs as stated above)..." However, the S0ix residency cannot be reached without MEI device getting i

[PATCH 1/2] mm/zswap: make type and compressor const

2018-01-02 Thread Joey Pabalinas
The characters pointed to by `zswap_compressor`, `type`, and `compressor` aren't ever modified. Add const to the static variable and both parameters in `zswap_pool_find_get()`, `zswap_pool_create()`, and `__zswap_param_set()` Signed-off-by: Joey Pabalinas 1 file changed, 6 insertions(+), 4 dele

[PATCH 2/2] mm/zswap: move `zswap_has_pool` to front of `if ()`

2018-01-02 Thread Joey Pabalinas
`zwap_has_pool` is a simple boolean, so it should be tested first to avoid unnecessarily calling `strcmp()`. Test `zswap_has_pool` first to take advantage of the short-circuiting behavior of && in `__zswap_param_set()`. Signed-off-by: Joey Pabalinas 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 0/2] mm/zswap: add minor const/conditional optimizations

2018-01-02 Thread Joey Pabalinas
Make a couple minor short-circuiting order and const changes - Since the pointed-to objects are never modified through these pointers, const-qualify type and compressor variables. - Test boolean before calling `strcmp()` to take advantage of short-circuiting. Joey Pabalinas (2):

Re: [PATCH 1/3] mtd: spi-nor: add optional DMA-safe bounce buffer for data transfer

2018-01-02 Thread Vignesh R
On Friday 29 December 2017 11:33 PM, Trent Piepho wrote: > On Fri, 2017-12-29 at 15:46 +0530, Vignesh R wrote: >> On Friday 29 December 2017 12:24 AM, Trent Piepho wrote: >> > >> > > Vignesh has suggested to call virt_addr_valid() instead. >> > > I think Boris has also told me about this functio

[PATCH] dt-bindings: h8300 clocksource: correct spelling of pulse

2018-01-02 Thread Simon Horman
Correct what appears to be a typo in the spelling of pulse. Signed-off-by: Simon Horman --- Documentation/devicetree/bindings/timer/renesas,tpu.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/timer/renesas,tpu.txt b/Documentation/devicet

[GIT PULL] capabilities: fix buffer overread on very short xattr

2018-01-02 Thread James Morris
Hi Linus, Please pull this capabilities fix for v4.15. The following changes since commit 30a7acd573899fd8b8ac39236eff6468b195ac7d: Linux 4.15-rc6 (2017-12-31 14:47:43 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git

Re: [GIT PULL] phy: for 4.16

2018-01-02 Thread Greg KH
On Tue, Jan 02, 2018 at 01:46:54PM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find the pull request for 4.16 merge window below. > > It includes a fix in exynos5-usbdrd to enumerate SuperSpeed devices on > Odroid XU3 and includes fixes/cleanups in Broadcom and Mediatek PHYs. > Ple

Re: [PATCH 1/2] MIPS: add declaration for function `memory_region_available`

2018-01-02 Thread James Hogan
On Tue, Dec 26, 2017 at 12:37:13PM +0100, Mathieu Malaterre wrote: > Fix non-fatal warning: > > arch/mips/kernel/setup.c:158:13: warning: no previous prototype for > ‘memory_region_available’ [-Wmissing-prototypes] > bool __init memory_region_available(phys_addr_t start, phys_addr_t size) >

[PATCH] media: don't drop front-end reference count for ->detach

2018-01-02 Thread Arnd Bergmann
A bugfix introduce a link failure in configurations without CONFIG_MODULES: In file included from drivers/media/usb/dvb-usb/pctv452e.c:20:0: drivers/media/usb/dvb-usb/pctv452e.c: In function 'pctv452e_frontend_attach': drivers/media/dvb-frontends/stb0899_drv.h:151:36: error: weak declaration of '

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

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

Re: [PATCH] KVM: nVMX: remove unnecessary vmwrite from L2->L1 vmexit

2018-01-02 Thread Liran Alon
On 02/01/18 00:58, Paolo Bonzini wrote: The POSTED_INTR_NV field is constant (though it differs between the vmcs01 and vmcs02), there is no need to reload it on vmexit to L1. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/

Re: [PATCH 16/67] powerpc: rename dma_direct_ to dma_nommu_

2018-01-02 Thread Michael Ellerman
Christoph Hellwig writes: > We want to use the dma_direct_ namespace for a generic implementation, > so rename powerpc to the second best choice: dma_nommu_. I'm not a fan of "nommu". Some of the users of direct ops *are* using an IOMMU, they're just setting up a 1:1 mapping once at init time, r

[PATCH] rtc: mxc_v2: remove __exit annotation

2018-01-02 Thread Arnd Bergmann
The mxc_rtc_remove is incorrectly annotated as __exit: `mxc_rtc_remove' referenced in section `.data' of drivers/rtc/rtc-mxc_v2.o: defined in discarded section `.exit.text' of drivers/rtc/rtc-mxc_v2.o This should not be done, as devices can be dynamically bound and unbound to a driver. Fixes: 5

Re: nouveau. swiotlb: coherent allocation failed for device 0000:01:00.0 size=2097152

2018-01-02 Thread Christian König
Am 01.01.2018 um 19:08 schrieb Ilia Mirkin: On Sun, Dec 31, 2017 at 3:53 PM, Mike Galbraith wrote: On Sun, 2017-12-31 at 13:27 -0500, Ilia Mirkin wrote: On Tue, Dec 19, 2017 at 8:45 AM, Christian König wrote: Am 19.12.2017 um 11:39 schrieb Michel Dänzer: On 2017-12-19 11:37 AM, Michel Dänze

Re: [PATCH v4 3/3] drm/tinydrm: add driver for ST7735R panels

2018-01-02 Thread Linus Walleij
On Mon, Jan 1, 2018 at 8:02 PM, David Lechner wrote: > This adds a new driver for Sitronix ST7735R display panels. > > This has been tested using an Adafruit 1.8" TFT. > > Signed-off-by: David Lechner > Reviewed-by: Noralf Trønnes Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v4 2/3] dt-bindings: Add binding for Sitronix ST7735R display panels

2018-01-02 Thread Linus Walleij
On Mon, Jan 1, 2018 at 8:02 PM, David Lechner wrote: > This adds a new device tree binding for Sitronix ST7735R display panels, > such as the Adafruit 1.8" TFT. > > Signed-off-by: David Lechner > Reviewed-by: Rob Herring Reviewed-by: Linus Walleij Yours, Linus Walleij

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

2018-01-02 Thread Geert Uytterhoeven
Hi Linus, On Tue, Jan 2, 2018 at 10:27 AM, Linus Walleij wrote: > On Fri, Dec 29, 2017 at 2:31 PM, Ulf Hansson wrote: >> From: Geert Uytterhoeven >> Since commit ab82fa7da4dce5c7 ("gpio: rcar: Prevent module clock disable >> when wake-up is enabled"), when a GPIO is used for wakeup, the GPIO bl

Re: [PATCH v2 4/9] ARM: dts: r7s72100: Add Capture Engine Unit (CEU)

2018-01-02 Thread Geert Uytterhoeven
Hi Jacopo, On Thu, Dec 28, 2017 at 3:01 PM, Jacopo Mondi wrote: > Add Capture Engine Unit (CEU) node to device tree. Thanks for your patch! > Signed-off-by: Jacopo Mondi With the issue below fixed: Reviewed-by: Geert Uytterhoeven > --- a/arch/arm/boot/dts/r7s72100.dtsi > +++ b/arch/arm/boot

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

2018-01-02 Thread Geert Uytterhoeven
Hi Jacopo, On Thu, Dec 28, 2017 at 3:01 PM, Jacopo Mondi wrote: > Add bindings documentation for Renesas Capture Engine Unit (CEU). Thanks for your patch! > Signed-off-by: Jacopo Mondi > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/renesas,ceu.txt > @@ -0,0 +1,85 @@ > +Renesa

Re: [PATCH v4 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2018-01-02 Thread Daniel Lezcano
On 12/12/2017 12:28, Baolin Wang wrote: > The Spreadtrum SC9860 platform will use the architected timers as local > clock events, but we also need a broadcast timer device to wakeup the > cpus when the cpus are in sleep mode. > > The Spreadtrum timer can support 32bit or 64bit counter, as well as

Re: [PATCH 2/2] MIPS: Remove a warning when PHYS_OFFSET is 0x0

2018-01-02 Thread James Hogan
On Tue, Dec 26, 2017 at 12:37:14PM +0100, Mathieu Malaterre wrote: > Rewrite the comparison in `else if` statement, case where `min_low_pfn > > ARCH_PFN_OFFSET` has already been checked in the first `if` statement: > > if (min_low_pfn > ARCH_PFN_OFFSET) { > > Fix non-fatal warning: > > arch/mi

Re: [PATCH v4 1/2] dt-bindings: clocksource: Add Spreadtrum SC9860 timer

2018-01-02 Thread Daniel Lezcano
On 12/12/2017 12:28, Baolin Wang wrote: > This patch adds documentation of device tree bindings for the timers > found on Spreadtrum SC9860 platform. > > Signed-off-by: Baolin Wang > Acked-by: Rob Herring > --- > Changes since v3: > - Use clocks property instead of "clock-frequency". > > chang

[PATCH 2/2] cpufreq: imx6q: add 696MHz operating point for i.mx6ul

2018-01-02 Thread Anson Huang
Add 696MHz operating point for i.MX6UL, only for those parts with speed grading fuse set to 2b'10 supports 696MHz operating point, so, speed grading check is also added for i.MX6UL in this patch, the clock tree for each operating point are as below: 696MHz: pll1 69600

[PATCH 1/2] ARM: dts: imx6ul: add 696MHz operating point

2018-01-02 Thread Anson Huang
Add 696MHz operating point according to datasheet (Rev. 0, 12/2015). Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6ul.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index e0b4a46..86b3251 100644 --- a/arch/arm/boot/

Re: [PATCH] drm/ttm: optimize errors checking and free _manager when finishing

2018-01-02 Thread Christian König
Am 02.01.2018 um 04:05 schrieb He, Roger: -Original Message- From: Xiongwei Song [mailto:sxwj...@gmail.com] Sent: Sunday, December 31, 2017 7:40 PM To: Koenig, Christian ; He, Roger ; airl...@linux.ie Cc: dri-de...@lists.freedesktop.org; linux-kernel@vger.kernel.org Subject: [PATCH] drm

Re: [PATCH v2 0/5] Change ISA_BUS_API dependency to selection

2018-01-02 Thread Linus Walleij
On Fri, Dec 29, 2017 at 9:13 PM, William Breathitt Gray wrote: > Linus, please pickup this entire patchset through your GPIO subsystem > tree; a recursive dependency error is present if these patches are > cherry-picked (see https://lkml.org/lkml/2017/12/26/235), so they should > be merged togeth

Re: [PATCH V1 3/4] usb: serial: f81534: add output pin control

2018-01-02 Thread Johan Hovold
On Tue, Jan 02, 2018 at 11:24:26AM +0800, Ji-Ze Hong (Peter Hong) wrote: > Hi Johan, > > >> In this code, I'm only read/write 3 registers of 0x2ae8, 0x2a90, 0x2a80, > >> but some register will read/write more than once. Should I change the > >> code from port_probe() to attach() and re-write it as

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

2018-01-02 Thread Linus Walleij
On Fri, Dec 29, 2017 at 2:31 PM, Ulf Hansson wrote: > From: Geert Uytterhoeven > > Since commit ab82fa7da4dce5c7 ("gpio: rcar: Prevent module clock disable > when wake-up is enabled"), when a GPIO is used for wakeup, the GPIO block's > module clock (if exists) is manually kept running during sys

[PATCH][crypto-next] crypto: tcrypt: fix spelling mistake: "bufufer"-> "buffer"

2018-01-02 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistakes in pr_err error message text. Signed-off-by: Colin Ian King --- crypto/tcrypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 58e3344d7169..f61d2f40dd90 100644 --- a/crypto/t

Order in "compatibility" DT property ignored by a platform bus

2018-01-02 Thread Rafał Miłecki
I was wondering how platform bus handles order of strings in the "compatibility" property. After reading the code & testing it I realized it doesn't. The property should store strings ordered from the most specific to the most generic. You could expect a more specific string to have a priority whi

Re: [PATCH 3/3] gpio: Change ISA_BUS_API dependency to selection

2018-01-02 Thread Linus Walleij
On Tue, Jan 2, 2018 at 10:18 AM, Linus Walleij wrote: > On Thu, Dec 28, 2017 at 5:02 PM, William Breathitt Gray > wrote: > >> The ISA_BUS_API Kconfig option enables the compilation of the ISA bus >> driver. The ISA bus driver does not perform any hardware interaction, >> and is instead just a thi

Re: [PATCH net-next 2/2] tun: allow to attach ebpf socket filter

2018-01-02 Thread Willem de Bruijn
>>> /* Net device start xmit */ >>> static netdev_tx_t tun_net_xmit(struct sk_buff *skb, struct net_device >>> *dev) >>> { >>> struct tun_struct *tun = netdev_priv(dev); >>> int txq = skb->queue_mapping; >>> struct tun_file *tfile; >>> + int len = skb->len; >>

Re: [PATCH 3/3] gpio: Change ISA_BUS_API dependency to selection

2018-01-02 Thread Linus Walleij
On Thu, Dec 28, 2017 at 5:02 PM, William Breathitt Gray wrote: > The ISA_BUS_API Kconfig option enables the compilation of the ISA bus > driver. The ISA bus driver does not perform any hardware interaction, > and is instead just a thin layer of software abstraction to eliminate > boilerplate code

Re: [PATCH 2/4] extcon: axp288: Remove unused platform data

2018-01-02 Thread Lee Jones
On Tue, 02 Jan 2018, Chanwoo Choi wrote: > + MFD Maintainer (Lee Jones ) > > Hi Hans, > > You better to use the scripts/get_maintainer.pl for the mailing list. > I added the MFD maintainer. > > This patch looks good to me. > Reviewed-by: Chanwoo Choi > > > Best Regards, > Chanwoo Choi > > O

[PATCH] drivers: gpu: drm: Fix warning for incomplete Declarations in client.c

2018-01-02 Thread Vaibhav Kothari
This patch fixes the Sparse Warning "symbol was not declared. Should it be static?" in nvkm/core/client.c Signed-off-by: Vaibhav Kothari --- drivers/gpu/drm/nouveau/nvkm/core/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/core/client.c

Re: [PATCH] pinctrl: vt8500: Delete an error message for a failed memory allocation in five functions

2018-01-02 Thread Linus Walleij
On Thu, Dec 28, 2017 at 4:20 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 28 Dec 2017 16:12:17 +0100 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring

Re: [PATCH] pinctrl: mcp23s08: fix irq setup order

2018-01-02 Thread Linus Walleij
On Thu, Dec 28, 2017 at 4:19 PM, Dmitry Mastykin wrote: > When using mcp23s08 module with gpio-keys, often (50% of boots) > it fails to get irq numbers with message: > "gpio-keys keys: Unable to get irq number for GPIO 0, error -6". > Seems that irqs must be setup before devm_gpiochip_add_data().

[PATCH 5/5] ARM: dts: imx6q-icore-ofcap12: Switch LVDS timings from panel-simple

2018-01-02 Thread Jagan Teki
Switch to use koe_tx31d200vm0baa LVDS timings from panel-simple instead hard coding the same in dts. Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6q-icore-ofcap12.dts | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/imx

[PATCH 3/5] ARM: dts: imx6dl-icore: Add LVDS node

2018-01-02 Thread Jagan Teki
Add ampire,am-800480aytzqw-00h LVDS support by using timings from panel-simple. Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6dl-icore.dts | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-icore.dts b/arch/arm/boot/dts/imx6dl-icore.

[PATCH 4/5] drm/panel: simple: Add support for KEO TX31D200VM0BAA

2018-01-02 Thread Jagan Teki
This adds support for the Kaohsiung Opto-Electronics., TX31D200VM0BAA 12.3" HSXGA LVDS panel, which can be supported by the simple panel driver. Signed-off-by: Jagan Teki --- .../bindings/display/panel/koe,tx31d200vm0baa.txt | 7 ++ drivers/gpu/drm/panel/panel-simple.c | 27 +

[PATCH 2/5] ARM: dts: imx6q-icore: Switch LVDS timings from panel-simple

2018-01-02 Thread Jagan Teki
Switch to use ampire,am-800480aytzqw-00h LVDS timings from panel-simple instead hard coding the same in dts. Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6q-icore.dts| 31 +-- arch/arm/boot/dts/imx6qdl-icore.dtsi | 2 +- 2 files changed, 18 insertions(+), 1

[PATCH 1/5] drm/panel: simple: add support for Ampire AM-800480AYTZQW-00H

2018-01-02 Thread Jagan Teki
This adds support for the Ampire AM-800480AYTZQW-00H 7.0" WGA LCD, which can be supported by the simple panel driver. Signed-off-by: Jagan Teki --- .../display/panel/ampire,am-800480aytzqw-00h.txt | 7 ++ drivers/gpu/drm/panel/panel-simple.c | 27 ++ 2 fi

Re: [PATCH] pinctrl: tegra: Delete two error messages for a failed memory allocation in tegra_pinctrl_probe()

2018-01-02 Thread Linus Walleij
On Thu, Dec 28, 2017 at 3:32 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 28 Dec 2017 15:15:08 +0100 > > Omit extra messages for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Pat

Re: [PATCH v2 6/9] v4l: i2c: Copy ov772x soc_camera sensor driver

2018-01-02 Thread jacopo mondi
Hi Philippe, thanks for the comment, On Fri, Dec 29, 2017 at 01:47:30PM +0100, Philippe Ombredanne wrote: > Jacopo, > > On Thu, Dec 28, 2017 at 3:01 PM, Jacopo Mondi > wrote: > > Copy the soc_camera based driver in v4l2 sensor driver directory. > > This commit just copies the original file wi

Re: [PATCH 4.14 000/146] 4.14.11-stable review

2018-01-02 Thread Greg Kroah-Hartman
On Tue, Jan 02, 2018 at 01:58:30AM +0530, Naresh Kamboju wrote: > On 1 January 2018 at 20:06, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.14.11 release. > > There are 146 patches in this series, all will be posted as a response > > to this one. If anyone

Re: [PATCH] pinctrl: spear: Delete an error message for a failed memory allocation in spear_pinctrl_probe()

2018-01-02 Thread Linus Walleij
On Wed, Dec 27, 2017 at 10:48 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 27 Dec 2017 22:44:04 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring

Re: [PATCH] pinctrl/spear/plgpio: Delete two error messages for a failed memory allocation in plgpio_probe()

2018-01-02 Thread Linus Walleij
On Wed, Dec 27, 2017 at 10:39 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 27 Dec 2017 22:34:28 +0100 > > Omit extra messages for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Pa

Re: [PATCH] pinctrl: samsung: Add SPDX license identifiers

2018-01-02 Thread Linus Walleij
On Tue, Dec 26, 2017 at 7:09 PM, Krzysztof Kozlowski wrote: > Replace GPL license statements with SPDX GPL-2.0+ license identifiers. > > Signed-off-by: Krzysztof Kozlowski Patch applied. Yours, Linus Walleij

Documentation: OMAPDSS: move sysfs documentation to ABI

2018-01-02 Thread Aishwarya Pant
Hi In Documentation/arm/OMAP/DSS, there is a description of the DSS and FB sysfs interfaces which could be moved to Documentation/ABI. Would such a change be useful? I can see that the sysfs interface is still in testing. The ABI documentation format looks like the following: What: (th

Re: [PATCH] pinctrl: xway: Delete two error messages for a failed memory allocation in pinmux_xway_probe()

2018-01-02 Thread Linus Walleij
On Mon, Dec 25, 2017 at 10:02 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 25 Dec 2017 21:51:26 +0100 > > Omit extra messages for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Pa

Re: [PATCH] pinctrl: utils: Delete an error message for a failed memory allocation in pinctrl_utils_add_map_configs()

2018-01-02 Thread Linus Walleij
On Mon, Dec 25, 2017 at 8:15 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 25 Dec 2017 20:04:05 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring P

Re: [PATCH] pinctrl: tz1090-pdc: Delete an error message for a failed memory allocation in two functions

2018-01-02 Thread Linus Walleij
On Mon, Dec 25, 2017 at 6:34 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 25 Dec 2017 18:28:02 +0100 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring

Re: [PATCH] pinctrl: tz1090: Delete an error message for a failed memory allocation in two functions

2018-01-02 Thread Linus Walleij
On Mon, Dec 25, 2017 at 6:13 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 25 Dec 2017 17:55:48 +0100 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring

Re: [PATCH 2/2] pinctrl: single: Delete an unnecessary return statement in pcs_irq_chain_handler()

2018-01-02 Thread Linus Walleij
On Mon, Dec 25, 2017 at 2:07 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 25 Dec 2017 11:35:44 +0100 > > The script "checkpatch.pl" pointed information out like the following. > > WARNING: void function return statements are not generally useful > > Thus remove such a stateme

Re: [PATCH 1/2] pinctrl: single: Delete an error message for a failed memory allocation in pcs_probe()

2018-01-02 Thread Linus Walleij
On Mon, Dec 25, 2017 at 2:06 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 25 Dec 2017 11:27:55 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring P

<    3   4   5   6   7   8   9   >