[RFC PATCH] char: misc: Init misc->list in a safe way

2017-06-26 Thread Orson Zhai
From: Zhongping Tan It is likely to enter a wrong case and return an error when registerring a misc device. As a result, misc->list will be intialized to a dead loop which is possible to go into wrong situation if anyone refers to it else where. Move the initializion line out of all error branch

Re: [PATCH v2 2/2] i2c: Add Spreadtrum I2C controller driver

2017-06-26 Thread Baolin Wang
Hi Andy, On 日, 6月 25, 2017 at 06:06:44下午 +0300, Andy Shevchenko wrote: > On Wed, Jun 21, 2017 at 10:23 AM, Baolin Wang > wrote: > > This patch adds the I2C controller driver for Spreadtrum platform. > > Needs more work. > See my comments below. > > > > > +#include > > > +#include > > Sin

[PATCH] mm: document highmem_is_dirtyable sysctl

2017-06-26 Thread Michal Hocko
From: Michal Hocko It seems that there are still people using 32b kernels which a lot of memory and the IO tend to suck a lot for them by default. Mostly because writers are throttled too when the lowmem is used. We have highmem_is_dirtyable to work around that issue but it seems we never bothere

Re: [PATCH v2 03/14] drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set

2017-06-26 Thread Daniel Vetter
On Thu, Jun 22, 2017 at 12:22:10PM +0200, Peter Rosin wrote: > This makes the redundant fb helpers .load_lut, .gamma_set and .gamma_get > totally obsolete. > > Signed-off-by: Peter Rosin > --- > drivers/gpu/drm/drm_fb_helper.c | 151 > +--- > 1 file changed,

Re: [PATCH] Staging : rts5208 : checkpatch.pl fixes

2017-06-26 Thread Frans Klaver
On Mon, Jun 26, 2017 at 11:12 AM, Simo Koskinen wrote: > On Fri, Jun 23, 2017 at 5:59 PM, Joe Perches wrote: >> On Fri, 2017-06-23 at 15:55 +0200, Simo Koskinen wrote: >>> Fixed some issues reported by checkpatch.pl script. >> [] >>> diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/r

[PATCH v2] iommu/amd: Fix interrupt remapping when disable guest_mode

2017-06-26 Thread Suravee Suthikulpanit
Pass-through devices to VM guest can get updated IRQ affinity information via irq_set_affinity() when not running in guest mode. Currently, AMD IOMMU driver in GA mode ignores the updated information if the pass-through device is setup to use vAPIC regardless of guest_mode. This could cause invalid

Re: [PATCH v2 01/14] drm/fb-helper: keep the .gamma_store updated in drm_fb_helper_setcmap

2017-06-26 Thread Daniel Vetter
On Thu, Jun 22, 2017 at 08:06:24AM +0200, Peter Rosin wrote: > I think the gamma_store can end up invalid on error. But the way I read > it, that can happen in drm_mode_gamma_set_ioctl as well, so why should > this pesky legacy fbdev stuff be any better? > > Signed-off-by: Peter Rosin > --- > dr

Re: [PATCH v2 03/14] drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set

2017-06-26 Thread Daniel Vetter
On Thu, Jun 22, 2017 at 08:06:26AM +0200, Peter Rosin wrote: > This makes the redundant fb helpers .load_lut, .gamma_set and .gamma_get > totally obsolete. > > Signed-off-by: Peter Rosin > --- > drivers/gpu/drm/drm_fb_helper.c | 154 > > 1 file changed,

[PATCH v6 7/7] ARM: dma-mapping: Remove traces of NOMMU code

2017-06-26 Thread Vladimir Murzin
DMA operations for NOMMU case have been just factored out into separate compilation unit, so don't keep dead code. Tested-by: Benjamin Gaignard Tested-by: Andras Szemzo Tested-by: Alexandre TORGUE Signed-off-by: Vladimir Murzin Acked-by: Arnd Bergmann --- arch/arm/mm/dma-mapping.c | 29 ++---

[PATCH v6 6/7] ARM: NOMMU: Set ARM_DMA_MEM_BUFFERABLE for M-class cpus

2017-06-26 Thread Vladimir Murzin
Now, we have dedicated non-cacheable region for consistent DMA operations. However, that region can still be marked as bufferable by MPU, so it'd be safer to have barriers by default. M-class machines that didn't need it until now also likely won't need it in the future, therefore, we offer this as

[PATCH v6 5/7] ARM: NOMMU: Introduce dma operations for noMMU

2017-06-26 Thread Vladimir Murzin
R/M classes of cpus can have memory covered by MPU which in turn might configure RAM as Normal i.e. bufferable and cacheable. It breaks dma_alloc_coherent() and friends, since data can stuck in caches now or be buffered. This patch factors out DMA support for NOMMU configuration into separate enti

[PATCH v6 3/7] drivers: dma-coherent: Account dma_pfn_offset when used with device tree

2017-06-26 Thread Vladimir Murzin
dma_declare_coherent_memory() and friends are designed to account difference in CPU and device addresses. However, when it is used with reserved memory regions there is assumption that CPU and device have the same view on address space. This assumption gets invalid when reserved memory for coherent

Re: [PATCH v11 00/19] Qualcomm video decoder/encoder driver

2017-06-26 Thread Stanimir Varbanov
Hi all, In case someone wants to play with the driver I've pushed a git tree at [1] which contains few patches on top of the driver. Those patches are on upstreaming phase but doesn't merged yet. [1] https://github.com/svarbanov/linux/tree/master-venus-v11 On 06/15/2017 07:31 PM, Stanimir Varban

[PATCH v6 1/7] dma: Take into account dma_pfn_offset

2017-06-26 Thread Vladimir Murzin
Even though dma-noop-ops assumes 1:1 memory mapping DMA memory range can be different to RAM. For example, ARM STM32F4 MCU offers the possibility to remap SDRAM from 0xc000_ to 0x0 to get CPU performance boost, but DMA continue to see SDRAM at 0xc000_. This difference in mapping is handled

Re: [PATCH] staging: sm750fb: always take the lock

2017-06-26 Thread Geert Uytterhoeven
On Mon, Jun 26, 2017 at 11:16 AM, Frans Klaver wrote: > On Mon, Jun 26, 2017 at 11:11 AM, Geert Uytterhoeven > wrote: >> On Mon, Jun 26, 2017 at 7:45 AM, AbdAllah-MEZITI >> wrote: >>> This patch >>> - will always take the lock >> >> Why? >> >> "The current code only takes the lock if multiple in

[PATCH v6 2/7] dma: Add simple dma_noop_mmap

2017-06-26 Thread Vladimir Murzin
This patch adds a simple implementation of mmap to dma_noop_ops. Cc: Joerg Roedel Cc: Christian Borntraeger Reported-by: Benjamin Gaignard Tested-by: Benjamin Gaignard Tested-by: Andras Szemzo Tested-by: Alexandre TORGUE Signed-off-by: Vladimir Murzin --- lib/dma-noop.c | 24 ++

[PATCH v6 0/7] ARM: Fix dma_alloc_coherent() and friends for NOMMU

2017-06-26 Thread Vladimir Murzin
Short story: Without these patches coherent DMA is broken for András and Alexandre, so they cannot safely enable DMA on their platforms. Patches have been circulated on a list since last year without much attention to changes in dma-coherent.c and dma-noop.c. Meanwhile, ARM bits have been reviewe

[PATCH v6 4/7] drivers: dma-coherent: Introduce default DMA pool

2017-06-26 Thread Vladimir Murzin
This patch introduces default coherent DMA pool similar to default CMA area concept. To keep other users safe code kept under CONFIG_ARM. Cc: Michal Nazarewicz Cc: Marek Szyprowski Cc: Rob Herring Cc: Mark Rutland Cc: Greg Kroah-Hartman Suggested-by: Robin Murphy Tested-by: Benjamin Gaignard

Re: [PATCH v2 02/14] drm/fb-helper: remove drm_fb_helper_save_lut_atomic

2017-06-26 Thread Daniel Vetter
On Thu, Jun 22, 2017 at 08:06:25AM +0200, Peter Rosin wrote: > drm_fb_helper_save_lut_atomic is redundant since the .gamma_store is > now always kept up to date by drm_fb_helper_setcmap. > > Signed-off-by: Peter Rosin Also note that this is for kgdb support only and so likely very buggy (since n

Re: [PATCH] staging: sm750fb: always take the lock

2017-06-26 Thread Frans Klaver
On Mon, Jun 26, 2017 at 11:11 AM, Geert Uytterhoeven wrote: > On Mon, Jun 26, 2017 at 7:45 AM, AbdAllah-MEZITI > wrote: >> This patch >> - will always take the lock > > Why? > > "The current code only takes the lock if multiple instances are in use. > This is error-prone, and confuses static ana

Re: [PATCH 1/3] dt-bindings: adc: mt7622: add binding document

2017-06-26 Thread Jonathan Cameron
On Thu, 22 Jun 2017 13:44:32 +0800 Zhiyong Tao wrote: > The commit adds mt7622 compatible node in binding document. > > Signed-off-by: Zhiyong Tao > --- > .../devicetree/bindings/iio/adc/mt6577_auxadc.txt |1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bi

Re: [PATCH] Staging : rts5208 : checkpatch.pl fixes

2017-06-26 Thread Simo Koskinen
On Fri, Jun 23, 2017 at 5:59 PM, Joe Perches wrote: > On Fri, 2017-06-23 at 15:55 +0200, Simo Koskinen wrote: >> Fixed some issues reported by checkpatch.pl script. > [] >> diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c >> index b8177f5..ceef5fc 100644 >> --- a/driver

Re: [PATCH] staging: sm750fb: always take the lock

2017-06-26 Thread Geert Uytterhoeven
On Mon, Jun 26, 2017 at 7:45 AM, AbdAllah-MEZITI wrote: > This patch > - will always take the lock Why? "The current code only takes the lock if multiple instances are in use. This is error-prone, and confuses static analyzers. As taking the lock in case of a single instance is harmful and che

[PATCH][-next] platform/chrome: make a couple of structures static

2017-06-26 Thread Colin King
From: Colin Ian King The structures cros_ec_console_log_fops and cros_ec_lpc_pm_ops do not need to be in global scope, so make them static. Cleans up sparse warnings: "symbol 'cros_ec_console_log_fops' was not declared. Should it be static?" "symbol 'cros_ec_lpc_pm_ops' was not declared. Should

Re: [PATCH v3 7/9] vfio: Use driver_override to avert binding to compromising drivers

2017-06-26 Thread Russell King - ARM Linux
On Tue, Jun 20, 2017 at 09:48:31AM -0600, Alex Williamson wrote: > If a device is bound to a non-vfio, non-whitelisted driver while a > group is in use, then the integrity of the group is compromised and > will result in hitting a BUG_ON. This code tries to avoid this case > by mangling driver_ove

Re: [PATCH] arcnet: fix spelling mistake "Ackknowledge" -> "Acknowledge"

2017-06-26 Thread Michael Grzeschik
On Sun, Jun 25, 2017 at 10:15:06PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in arc_printk message > > Signed-off-by: Colin Ian King > --- > drivers/net/arcnet/capmode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/

Re: [PATCH] selftests: fix memory-hotplug test

2017-06-26 Thread Po-Hsu Lin
Hello Shuah, thanks for the feedback, I will send v2 for these. Cheers On Sat, Jun 24, 2017 at 12:03 AM, Shuah Khan wrote: > Hi Po-Hsu Lin, > > On 06/18/2017 09:04 PM, Po-Hsu Lin wrote: > > Please split the typo correction and fixes. Please send a patch > for each individual fix. I am seeing se

[PATCH RESEND] pty: show associative slave of ptmx in fdinfo

2017-06-26 Thread Masatake YAMATO
This patch adds "tty-index" field to /proc/PID/fdinfo/N if N specifies /dev/ptmx. The field shows the index of associative slave pts. Though a minor number is given for each pts instance, ptmx is not. It means there is no way in user-space to know the association between file descriptors for pts/n

Re: [PATCH] rpmsg: rpmsg_core: fix null-ptr dereference for devices without ops

2017-06-26 Thread Henri Roosen
On 06/25/2017 11:51 PM, Bjorn Andersson wrote: On Fri 02 Jun 04:35 PDT 2017, Henri Roosen wrote: A device might not have an ops structure registered. This patch fixes a null-prt dereference by checking ops before dereferencing it. In what scenario do you end up with a rpdev without ops defin

Re: [PATCH v2] mm: Allow slab_nomerge to be set at build time

2017-06-26 Thread Michal Hocko
On Fri 23-06-17 12:20:25, Kees Cook wrote: > On Fri, Jun 23, 2017 at 7:06 AM, Michal Hocko wrote: > > On Tue 20-06-17 16:09:11, Kees Cook wrote: > >> Some hardened environments want to build kernels with slab_nomerge > >> already set (so that they do not depend on remembering to set the kernel > >

[PATCH][sound-next] ASoC: zx_aud96p22: make aud96p22_dt_ids static

2017-06-26 Thread Colin King
From: Colin Ian King The structure aud96p22_dt_ids does not need to be in global scope, so make it static. Cleans up sparse warning: "warning: symbol 'aud96p22_dt_ids' was not declared. Should it be static?" Signed-off-by: Colin Ian King --- sound/soc/codecs/zx_aud96p22.c | 2 +- 1 file chang

Re: A udev rule to serve the change event of ACPI container?

2017-06-26 Thread Michal Hocko
On Mon 26-06-17 14:26:57, Joey Lee wrote: > Hi all, > > If ACPI received ejection request for a ACPI container, kernel > emits KOBJ_CHANGE uevent when it found online children devices > below the acpi container. > > Base on the description of caa73ea15 kernel patch, user space > is expected to of

Re: [PATCH 6/7] drm/tilcdc: clean up ifdef hacks around iowrite64

2017-06-26 Thread Jyri Sarha
On 06/22/17 19:48, Logan Gunthorpe wrote: > Now that we can expect iowrite64 to always exist the hack is no longer > necessary so we just call iowrite64 directly. > > Signed-off-by: Logan Gunthorpe > Cc: Jyri Sarha > Cc: Tomi Valkeinen > Cc: David Airlie Acked-by: Jyri Sarha And thanks! >

Re: [PATCH 1/7] drm/tilcdc: don't use volatile with iowrite64

2017-06-26 Thread Jyri Sarha
On 06/22/17 19:48, Logan Gunthorpe wrote: > This is a prep patch for adding a universal iowrite64. > > The patch is to prevent compiler warnings when we add iowrite64 that > would occur because there is an unnecessary volatile in this driver. > > Signed-off-by: Logan Gunthorpe > Cc: Jyri Sarha

Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() (was: Re: NULL pointer dereference in isert_login_recv_done in 4.9.32)

2017-06-26 Thread Leon Romanovsky
On Fri, Jun 23, 2017 at 12:37:57AM +0200, Andrea Righi wrote: > On Wed, Jun 21, 2017 at 10:33:45AM -0600, Robert LeBlanc wrote: > > On Wed, Jun 21, 2017 at 9:17 AM, Robert LeBlanc > > wrote: > > > On Tue, Jun 20, 2017 at 12:54 PM, Robert LeBlanc > > > wrote: > > >> We have hit this four times t

Re: [PATCH v6 00/8] Renesas RZ/A1 pin and gpio controller

2017-06-26 Thread Geert Uytterhoeven
Hi Linus, On Thu, Jun 22, 2017 at 4:54 PM, Jacopo Mondi wrote: >this is 6th round of RZ/A1 pin controller patch series. > > Where did we stop: discussion from pin controller driver shifted toward two > new generic pin configuration properties I added to the previous series > (bi-directional a

Re: [PATCH v2] ktime: Simplify ktime_compare implementation

2017-06-26 Thread Thomas Gleixner
On Mon, 26 Jun 2017, Thierry Reding wrote: > On Fri, May 26, 2017 at 03:00:47PM +0200, Mariusz Skamra wrote: > > ktime_sub can be used here instread of two conditional checks. > > Boot is broken on Tegra186 on next-20170623. Bisection points at this > commit and I've confirmed that reverting it al

Re: [PATCH v2 5/6] pwm: mediatek: add PWM_CLK_DIV_MAX

2017-06-26 Thread m18063
On 23.06.2017 08:08, Zhi Mao wrote: > Replace "7" with "PWM_CLK_DIV_MAX" in function:mtk_pwm_config() > to improve the code readablity. > > Signed-off-by: Zhi Mao > --- > drivers/pwm/pwm-mediatek.c |6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/pwm/pw

Re: [PATCH net-next v2 4/5] net: add netlink_ext_ack argument to rtnl_link_ops.slave_changelink

2017-06-26 Thread Matthias Schiffer
On 06/26/2017 06:08 AM, David Ahern wrote: > On 6/25/17 10:04 PM, David Ahern wrote: >> On 6/25/17 3:56 PM, Matthias Schiffer wrote: >>> Add support for extended error reporting. >>> >>> Signed-off-by: Matthias Schiffer >>> --- >> >> >> Acked-by: David Ahern >> > > Actually, you are missing the

Re: omap3isp camera was Re: [PATCH v1 0/6] Add support of OV9655 camera

2017-06-26 Thread Pavel Machek
On Mon 2017-06-26 08:05:04, H. Nikolaus Schaller wrote: > Hi Pavel, > > > Am 25.06.2017 um 11:18 schrieb Pavel Machek : > > > > Hi! > > > >> * unfortunately we still get no image :( > >> > >> The latter is likely a setup issue of our camera interface (OMAP3 ISP = > >> Image Signal Processor) w

Re: [PATCH v3 01/17] mfd: madera: Add register definitions for Cirrus Logic Madera codecs

2017-06-26 Thread Richard Fitzgerald
On Mon, 2017-06-05 at 11:07 +0100, Lee Jones wrote: > On Fri, 02 Jun 2017, Richard Fitzgerald wrote: > > > This patch adds a header file of register definitions for Cirrus > > Logic "Madera" class codecs. These codecs are all based off a common > > set of hardware IP so have a common register map

Re: [PATCH 2/6] drivers base/arch_topology: frequency-invariant load-tracking support

2017-06-26 Thread Dietmar Eggemann
On 08/06/17 08:55, Dietmar Eggemann wrote: > Implements an arch-specific frequency-scaling function > topology_get_freq_scale() which provides the following frequency > scaling factor: > > current_freq(cpu) << SCHED_CAPACITY_SHIFT / max_supported_freq(cpu) [...] Frequency and cpu-invariant loa

[PATCH] Input: synaptics - switch t460s 20FN to use RMI4 over SMBus

2017-06-26 Thread Benjamin Tissoires
Signed-off-by: Benjamin Tissoires --- Hi Christopher, Could you please test this patch without appending synaptics_intertouch=1 to the boot command line? If this still works, we will have the RMI4 over SMBus by default for your laptop. Cheers, Benjamin Signed-off-by: Benjamin Tissoires ---

[PATCH v3] f2fs: introduce reserved_blocks in sysfs

2017-06-26 Thread Chao Yu
In this patch, we add a new sysfs interface, with it, we can control number of reserved blocks in system which could not be used by user, it enable f2fs to let user to configure for adjusting over-provision ratio dynamically instead of changing it by mkfs. So we can expect it will help to reserve

Re: [RFC PATCH] genirq: Avoid unnecessary low level irq function calls

2017-06-26 Thread Thomas Gleixner
Jeffy, On Mon, 26 Jun 2017, Jeffy Chen wrote: > void irq_enable(struct irq_desc *desc) > { > - irq_state_clr_disabled(desc); > - if (desc->irq_data.chip->irq_enable) > - desc->irq_data.chip->irq_enable(&desc->irq_data); > - else > - desc->irq_data.chip->irq_un

Re: [PATCH v2 0/5] g_NCR5380: PDMA fixes and cleanup

2017-06-26 Thread Ondrej Zary
On Monday 26 June 2017, Finn Thain wrote: > On Sun, 25 Jun 2017, Ondrej Zary wrote: > > It mostly works, but there are some problems: > > > > It's not reliable - we continue the data transfer after poll_politely2 > > returns zero but we don't know if it returned because of host buffer > > being rea

[__try_to_take_rt_mutex] BUG: unable to handle kernel NULL pointer dereference at 0000000000000038 !//RE: kernel BUG at kernel/locking/rtmutex.c:1027

2017-06-26 Thread Feng Feng24 Liu
Hi, Steve & dear RT experts: Thanks a lot! I update our kernel to 4.4.70-rt83, which is the latest version. I found the incorrect deadlock detection problem(kernel BUG at kernel/locking/rtmutex.c:1027 ) has been fixed in this version. But I found there is another

Re: [f2fs-dev] [PATCH 1/2] f2fs: avoid deadlock caused by lock order of page and lock_op

2017-06-26 Thread Chao Yu
Hi Jaegeuk, On 2017/6/25 0:25, Jaegeuk Kim wrote: > - punch_hole > - fill_zero > - f2fs_lock_op > - get_new_data_page >- lock_page > > - f2fs_write_data_pages > - lock_page > - do_write_data_page > - f2fs_lock_op Good catch! With this implementation, page writeback can fail due to

Re: [PATCH 08/10] x86/hyper-v: use hypercall for remote TLB flush

2017-06-26 Thread Vitaly Kuznetsov
lp improve the system] > > url: > https://github.com/0day-ci/linux/commits/kys-exchange-microsoft-com/x86-hyper-v-include-hyperv-only-when-CONFIG_HYPERV-is-set/20170626-133601 > config: i386-randconfig-a0-06250447 (attached as .config) > compiler: gcc-5 (Debian 5.4.1-2) 5.4.1 201609

Re: [PATCH] PCI: rcar-gen2: make of_device_ids const

2017-06-26 Thread Geert Uytterhoeven
On Fri, Jun 23, 2017 at 11:29 AM, Arvind Yadav wrote: > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Acked-by: Geert Uytterhoev

Re: [PATCH v2] perf sort: only insert overhead && overhead_children when no overhead* field given

2017-06-26 Thread Du, Changbin
Hi, Jiri, what is the status of this one? I didn't get a response of v2. thanks. On Fri, Jun 02, 2017 at 12:22:00PM +0800, changbin...@intel.com wrote: > From: Changbin Du > > If we always insert 'overhead' and 'overhead_children' as sort keys, > this make it impossible to sort as overhead (whi

Re: endian bitshift defects [ was: staging: fusb302: don't bitshift __le16 type ]

2017-06-26 Thread Frans Klaver
On Sat, Jun 24, 2017 at 1:37 AM, Julia Lawall wrote: > > > On Sat, 24 Jun 2017, Frans Klaver wrote: > >> Hm. For some reason the great mail filtering scheme decided to push >> this past my inbox :-/ >> >> On Sat, Jun 17, 2017 at 12:44 AM, Joe Perches wrote: >> > On Fri, 2017-06-16 at 19:45 +0200,

RE: [PATCH/RFC] phy: renesas: rcar-gen3-usb2-clksel: Add R-Car Gen3 USB 2.0 clock selector PHY

2017-06-26 Thread Yoshihiro Shimoda
Hi, > -Original Message- > From: Rob Herring > Sent: Saturday, June 24, 2017 3:21 AM > > On Thu, Jun 15, 2017 at 08:34:22PM +0900, Yoshihiro Shimoda wrote: > > USB 2.0 PHY of R-Car Gen3 can change the clock source from an oscillator > > to an external clock via a register. So, this patch

[PATCH v3 3/4] arm: dts: mt2701: Add display bls related nodes for MT2701

2017-06-26 Thread Erin Lo
From: Weiqing Kong This patch adds board related config for backlight Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701-evb.dts | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/m

[PATCH v3 4/4] arm: dts: mt2701: Add display subsystem related nodes for MT2701

2017-06-26 Thread Erin Lo
From: YT Shen This patch adds the device nodes for the DISP function blocks for MT2701 Signed-off-by: YT Shen Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 78 +++ 1 file changed, 78 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi

[PATCH v3 1/4] arm: dts: mt2701: Add ethernet device node

2017-06-26 Thread Erin Lo
From: Sean Wang Add ethernet device node for MT2701 Signed-off-by: Sean Wang Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 8037210..91ed

[PATCH v3 2/4] arm: dts: mt2701: Add display bls related nodes for MT2701

2017-06-26 Thread Erin Lo
From: Weiqing Kong This patch adds the device node of display backlight for MT2701 Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi in

[PATCH v3 0/4] Add some DT nodes for Mediatek MT2701

2017-06-26 Thread Erin Lo
This patch series based on v4.12-rc1, include MT2701 ethernet/disp bls/display function DT nodes. Change in v3: 1. Sorting according to name in mt2701-evb.dts 2. Really remove redundant dispsys@1400 node Change in v2: 1. Add reset properties in ethernet nodes 2. Split bls nodes into two patc

Re: [PATCH 1/2] fsl/fman: propagate dma_ops

2017-06-26 Thread Geert Uytterhoeven
Hi Madalin, On Mon, Jun 19, 2017 at 5:04 PM, Madalin Bucur wrote: > Make sure dma_ops are set, to be later used by the Ethernet driver. > > Signed-off-by: Madalin Bucur > --- > drivers/net/ethernet/freescale/fman/mac.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/ether

[PATCH 2/3] usb: gadget: f_uac*: Reduce code duplication

2017-06-26 Thread Julian Scheel
This replaces the dedicated headers for uac1 and uac2 functions with a shared header for both of them. Apart from unifying the struct names, further duplicated code for configfs setup is moved out of the function files into the shared header. Signed-off-by: Julian Scheel --- drivers/usb/gadget/f

Re: [PATCH v2 0/5] g_NCR5380: PDMA fixes and cleanup

2017-06-26 Thread Finn Thain
On Sun, 25 Jun 2017, Ondrej Zary wrote: > > It mostly works, but there are some problems: > > It's not reliable - we continue the data transfer after poll_politely2 > returns zero but we don't know if it returned because of host buffer > being ready of because of an IRQ. So if a device disconnect

[PATCH 3/3] usb: gadget: f_uac*: Support multiple sampling rates

2017-06-26 Thread Julian Scheel
Implement support for multiple sampling rates in the USB Audio gadgets. A list of sampling rates can be specified via configfs. All enabled sampling rates are sent to the USB host on request. When the host selects a sampling rate the internal active rate is updated. The currently configured rates a

[PATCH 0/3] USB Audio Gadget: Support multiple sampling rates

2017-06-26 Thread Julian Scheel
This patch series adds support for exposing multiple supported sampling rates from UAC1 and UAC2 USB gadgets to the connected host. It is currently limited to up to ten discrete sampling frequencies. The USB specification does not actually limit this, but to avoid complex list handling I am using a

[PATCH 1/3] usb: gadget: f_uac1: Fix endpoint reading

2017-06-26 Thread Julian Scheel
The endpoint is stored in the lower byte of wIndex, according to USB Audio 1.0 specification, section 5.2.1.1. Signed-off-by: Julian Scheel --- drivers/usb/gadget/function/f_uac1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/function/f_uac1.c b/dri

Re: [PATCH] multi_v7_defconfig: Enable OMAP MTD and DM816 AHCI

2017-06-26 Thread Tony Lindgren
* Tom Rini [170621 04:42]: > A wide variety of TI platforms support NAND via the > CONFIG_MTD_NAND_OMAP2 driver (and related BCH options), so enable this. > In addition, multi_v7_defconfig supports the dm8168-evm and that > supports root being on a SATA drive, so build the DM816 AHCI driver into >

Re: [PATCH v3 2/9] kvm-vfio: Decouple only when we match a group

2017-06-26 Thread Auger Eric
Hi, On 20/06/2017 17:47, Alex Williamson wrote: > Unset-KVM and decrement-assignment only when we find the group in our > list. Otherwise we can get out of sync if the user triggers this for > groups that aren't currently on our list. > > Signed-off-by: Alex Williamson > Reviewed-by: Alexey Kard

[PATCH v3 0/4] g_NCR5380: PDMA fixes and cleanup

2017-06-26 Thread Finn Thain
Ondrej, would you please test this new series? Changed since v1: - PDMA transfer residual is calculated earlier. - End of DMA flag check is now polled (if there is any residual). Changed since v2: - Bail out of transfer loops when Gated IRQ gets asserted. - Make udelay conditional on board type.

[PATCH v3 4/4] g_NCR5380: Re-work PDMA loops

2017-06-26 Thread Finn Thain
From: Ondrej Zary The polling loops in pread() and pwrite() can easily become infinite loops and hang the machine. On DTC chips, IRQ can arrive late and we miss it because we only check once. Merge the IRQ check into host buffer wait and add polling limit. Also place a limit on polling for 53C8

Re: [PATCH v3 9/9] vfio: Add AMBA driver_override support

2017-06-26 Thread Auger Eric
Hi Alex, On 20/06/2017 17:48, Alex Williamson wrote: > AMBA also supports driver_override, but amba_bustype was not exported > to be able to identify an amba device. > > Signed-off-by: Alex Williamson Reviewed-by: Eric Auger Eric > --- > drivers/vfio/vfio.c |6 ++ > 1 file changed, 6

Re: [PATCH v3 0/9] vfio: Fix release ordering races and use driver_override

2017-06-26 Thread Auger Eric
Hi Alex, On 20/06/2017 17:47, Alex Williamson wrote: > v3: > > * Fix Alexey's nit in 2/, which becomes a bug in 3/. I posted the >intended correction for this, but 0-day builds broke on it and I'd >like to be sure we get all the automated testing possible, so v3. >Added Alexey's Rb.

[PATCH v3 2/4] g_NCR5380: End PDMA transfer correctly on target disconnection

2017-06-26 Thread Finn Thain
From: Ondrej Zary When an IRQ arrives during PDMA transfer, pread() and pwrite() return without waiting for the 53C80 registers to be ready and this ends up messing up the chip state. This was observed with SONY CDU-55S which is slow enough to disconnect during 4096-byte reads. IRQ during PDMA i

[PATCH v3 1/4] g_NCR5380: Fix PDMA transfer size

2017-06-26 Thread Finn Thain
From: Ondrej Zary generic_NCR5380_dma_xfer_len() incorrectly uses cmd->transfersize which causes rescan-scsi-bus and CD-ROM access to hang the system. Use cmd->SCp.this_residual instead, like other NCR5380 drivers. Signed-off-by: Ondrej Zary Signed-off-by: Finn Thain --- drivers/scsi/g_NCR538

[PATCH v3 3/4] g_NCR5380: Cleanup comments and whitespace

2017-06-26 Thread Finn Thain
Signed-off-by: Finn Thain --- drivers/scsi/g_NCR5380.c | 61 ++-- 1 file changed, 28 insertions(+), 33 deletions(-) diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c index 911a4300ea51..9f18082415c4 100644 --- a/drivers/scsi/g_NCR5380.c

Re: [PATCH v3 8/9] amba: Export amba_bustype

2017-06-26 Thread Auger Eric
Hi Alex, On 20/06/2017 17:48, Alex Williamson wrote: > This allows modules to match struct device.bus to amba_bustype for the > purpose of casting the device to an amba_device with to_amba_device(). > > Signed-off-by: Alex Williamson > Reported-by: Eric Auger > Cc: Russell King Reviewed-by: Er

Re: [PATCH v3 0/6] Updated API for TPM 2.0 PCR extend

2017-06-26 Thread Roberto Sassu
On 6/24/2017 11:03 AM, Jarkko Sakkinen wrote: On Wed, Jun 21, 2017 at 04:29:35PM +0200, Roberto Sassu wrote: The first version of the patch set can be retrieved at the URL: https://sourceforge.net/p/tpmdd/mailman/message/35756302/ The patches should be applied on top of the next branch of linu

Re: [PATCH] pci: Add and use PCI_GENERIC_SETUP Kconfig entry

2017-06-26 Thread Geert Uytterhoeven
system] > > url: > https://github.com/0day-ci/linux/commits/Palmer-Dabbelt/pci-Add-and-use-PCI_GENERIC_SETUP-Kconfig-entry/20170626-043558 > config: m68k-allnoconfig (attached as .config) > compiler: m68k-linux-gcc (GCC) 4.9.0 > reproduce: > wget > https://raw.githubuser

Re: [PATCH] scsi: qedi: Remove comparison of u16 idx with zero.

2017-06-26 Thread Rangankar, Manish
On 24/06/17 9:54 PM, "Christos Gkekas" wrote: >Variable idx is defined as u16 thus statement (idx < 0) is >always false and should be removed. > >Signed-off-by: Christos Gkekas >--- > drivers/scsi/qedi/qedi_fw.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/drivers

Re: linux-next: build failure after merge of the akpm tree

2017-06-26 Thread Michal Hocko
On Mon 26-06-17 16:53:43, Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm tree, today's linux-next build (sparc64 defconfig) > failed like this: > > arch/sparc/kernel/mdesc.c: In function 'mdesc_kmalloc': > arch/sparc/kernel/mdesc.c:208:48: error: '__GFP_REPEAT' undeclared (first

答复: [PATCH v5 13/26] MAINTAINERS: Add Actions Semi Owl section

2017-06-26 Thread 张天益
+c -邮件原件- 发件人: Andreas Färber [mailto:afaer...@suse.de] 发送时间: 2017年6月19日 10:45 收件人: linux-arm-ker...@lists.infradead.org 抄送: mp-cs; Thomas Liau; 张东风; 刘炜; 张天益; 96boa...@ucrobotics.com; supp...@lemaker.org; linux-kernel@vger.kernel.org; Andreas Färber 主题: [PATCH v5 13/26] MAINTAINERS: Add

Re: [PATCH 01/11] dma-mapping: remove dmam_free_noncoherent

2017-06-26 Thread Christoph Hellwig
Tejun, does this look ok to you? On Fri, Jun 16, 2017 at 09:17:06AM +0200, Christoph Hellwig wrote: > This function was never used since it was added. > > Signed-off-by: Christoph Hellwig > --- > Documentation/driver-model/devres.txt | 1 - > drivers/base/dma-mapping.c| 20

Re: [PATCH 02/11] dma-mapping: replace dmam_alloc_noncoherent with dmam_alloc_attrs

2017-06-26 Thread Christoph Hellwig
Tejun, does this look ok to you? On Fri, Jun 16, 2017 at 09:17:07AM +0200, Christoph Hellwig wrote: > dmam_alloc_noncoherent is a trivial wrapper around dmam_alloc_attrs, > that hardcodes one particular flag. Make the devres code more > flexible by allowing the callers to pass arbitrary flags. >

Re: new dma-mapping tree, was Re: clean up and modularize arch dma_mapping interface V2

2017-06-26 Thread Christoph Hellwig
On Wed, Jun 21, 2017 at 03:32:39PM +0200, Marek Szyprowski wrote: > linux-next > was a side effect of that. I think that for now it can be dropped in favor > of > Christoph's tree. I can also do some review and help in maintainers work if > needed, although I was recently busy with other stuff. >

Re: [PATCH] crypto: qat - avoid an uninitialized variable warning

2017-06-26 Thread Christoph Hellwig
Thanks Arnd, added to the dma-mapping tree.

Re: [PATCH] drm: exynos: dsi: release DSI_PORT_OUT node right after of_drm_find_bridge()

2017-06-26 Thread Andrzej Hajda
Hi Shuah, On 24.06.2017 02:56, Shuah Khan wrote: > Fix to call of_node_put() right after of_drm_find_bridge() instead of > holding on to it until exynos_dsi_remove(). I think the current implementation is OK, node is get in probe and put in remove. There could be many bind/unbind during lifetime

[PATCH v2] nvme: explicitly disable APST on quirked devices

2017-06-26 Thread Kai-Heng Feng
A user reports APST is enabled, even when the NVMe is quirked or with option "default_ps_max_latency_us=0". The current logic will not set APST if the device is quirked. But the NVMe in question will enable APST automatically. Separate the logic "apst is supported" and "to enable apst", so we can

<    4   5   6   7   8   9