Re: [PATCH V7 05/12] thermal: tegra: add Tegra210 specific SOC_THERM driver

2016-03-15 Thread Wei Ni
On 2016年03月15日 02:57, Eduardo Valentin wrote: > * PGP Signed by an unknown key > > On Fri, Mar 11, 2016 at 11:10:25AM +0800, Wei Ni wrote: >> Add Tegra210 specific SOC_THERM driver. >> >> Signed-off-by: Wei Ni >> --- >> drivers/thermal/tegra/Makefile| 1 + >> drivers/thermal/tegr

[patch] [media] cx23885: uninitialized variable in cx23885_av_work_handler()

2016-03-15 Thread Dan Carpenter
The "handled" variable could be uninitialized if the interrupt_service_routine() call back hasn't been implimented or if it has been implemented but doesn't initialize "handled" to zero at the start. For example, adv76xx_isr() only sets "handled" to true. Fixes: 44b153ca639f ('[media] m5mols: Add

[patch] [media] m5mols: potential uninitialized variable

2016-03-15 Thread Dan Carpenter
Smatch complains that there are some paths where "status" isn't initialized. The code does assume that m5mols_read_u8() can fail so it seems as if Smatch is correct. Let's initialize it to REG_ISO_AUTO which is zero. Signed-off-by: Dan Carpenter diff --git a/drivers/media/i2c/m5mols/m5mols_con

Re: [PATCH v18 00/22] Richacls (Core and Ext4)

2016-03-15 Thread Christoph Hellwig
On Fri, Mar 11, 2016 at 09:07:57AM -0500, J. Bruce Fields wrote: > Could you explain what you mean by "adding allow and deny ACE at the > same time"? NFSv4/rich ACLs have both ALLOW and DENY ACE, which is contrary to the model how we've operated since the dawn of time.

Re: [PATCH v18 19/22] richacl: Add richacl xattr handler

2016-03-15 Thread Christoph Hellwig
On Fri, Mar 11, 2016 at 09:19:05AM -0500, J. Bruce Fields wrote: > On Fri, Mar 11, 2016 at 06:17:35AM -0800, Christoph Hellwig wrote: > > On Mon, Feb 29, 2016 at 09:17:24AM +0100, Andreas Gruenbacher wrote: > > > Add richacl xattr handler implementing the xattr operations based on the > > > get_ric

Re: [PATCH v18 00/22] Richacls (Core and Ext4)

2016-03-15 Thread Christoph Hellwig
On Fri, Mar 11, 2016 at 05:11:51PM +0100, Andreas Gruenbacher wrote: > > while breaking a lot of assumptions, > > The model is designed specifically to be compliant with the POSIX > permission model. What assumptions are you talking about? People have long learned that we only have 'alloc' permis

[patch] Input: synaptics-rmi4 - using logical instead of bitwise AND

2016-03-15 Thread Dan Carpenter
There is a typo so we have && instead of &. Fixes: ff8f83708b3e ('Input: synaptics-rmi4 - add support for 2D sensors and F11') Signed-off-by: Dan Carpenter diff --git a/drivers/input/rmi4/rmi_f11.c b/drivers/input/rmi4/rmi_f11.c index 77a5eb8..ec8a10d 100644 --- a/drivers/input/rmi4/rmi_f11.c +

[patch] PCI: xilinx-nwl: fix an error code in nwl_pcie_init_irq_domain()

2016-03-15 Thread Dan Carpenter
Returning PTR_ERR(legacy_intc_node) is zero which is success but we want to return a negative error code. Fixes: 4337ea1d4b10 ('PCI: xilinx-nwl: Add support for Xilinx NWL PCIe Host Controller') Signed-off-by: Dan Carpenter diff --git a/drivers/pci/host/pcie-xilinx-nwl.c b/drivers/pci/host/pci

Re: [PATCH v18 11/22] vfs: Cache base_acl objects in inodes

2016-03-15 Thread Christoph Hellwig
On Fri, Mar 11, 2016 at 05:24:45PM +0100, Andreas Gruenbacher wrote: > POSIX ACLs and RichACLs are different objects, with different members > and different algorithms operating on them. The only commonality is > that they are both kmalloc()ed, reference counted objects, and when an > inode is dest

Re: [PATCH v18 00/22] Richacls (Core and Ext4)

2016-03-15 Thread Christoph Hellwig
On Fri, Mar 11, 2016 at 02:05:16PM -0600, Steve French wrote: > A loosely related question is what can be done for tools around existing > interfaces for ACLs. I recently found out NTFS-3g has this xattr: > > static const char nf_ns_xattr_ntfs_acl[] = "system.ntfs_acl"; > > which allows you

linux-next: Tree for Mar 15

2016-03-15 Thread Stephen Rothwell
Hi all, Please do not add any v4.7 related material to your linux-next included trees until after v4.6-rc1 is released. Changes since 20160314: The net-next tree gained conflicts agains Linus' tree. The tip tree gained conflicts against the pm tree. The aio tree regained its build failure for

Re: [PATCH v18 21/22] ext4: Add richacl support

2016-03-15 Thread Christoph Hellwig
On Mon, Mar 14, 2016 at 12:08:31AM +0100, Andreas Gruenbacher wrote: > The xattr representation is the same on disk and at the xattr syscall > layer, and so richacl_from_xattr is used for converting into the > in-memory representation in both cases. The error codes are not the > same when a user su

Re: [PATCH v18 21/22] ext4: Add richacl support

2016-03-15 Thread Christoph Hellwig
On Mon, Mar 14, 2016 at 02:02:33PM +0100, Andreas Gruenbacher wrote: > On Fri, Mar 11, 2016 at 3:27 PM, Christoph Hellwig wrote: > >> +static inline int > >> +ext4_acl_chmod(struct inode *inode, umode_t mode) > >> +{ > >> + if (IS_RICHACL(inode)) > >> + return richacl_chmod(inode,

Crypto Update for 4.6

2016-03-15 Thread Herbert Xu
Hi Linus: Here is the crypto update for 4.6: API: * Convert remaining crypto_hash users to shash or ahash, also convert blkcipher/ablkcipher users to skcipher. Please note taht this conflicts with the net, staging and f2fs trees but the resolution should be fairly simple. * Remove crypto_h

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-15 Thread Tomeu Vizoso
On 14 March 2016 at 17:20, Giuseppe CAVALLARO wrote: > Hi Tomeu > > On 3/14/2016 12:43 PM, Tomeu Vizoso wrote: >> >> Hi Peppe, >> >> with that patch I don't see any difference at all in my setup. >> >> So to be clear, with these commits on top of next-20160314, I still >> get the hang during boot:

Re: [PATCH] splice: handle zero nr_pages in splice_to_pipe()

2016-03-15 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH] f2fs: support access control via key management

2016-03-15 Thread Christoph Hellwig
On Wed, Mar 09, 2016 at 04:52:48PM -0800, Jaegeuk Kim wrote: > Through this patch, user can assign its key into a specific normal files. > Then, other users who do not have that key cannot open the files. > Later, owner can drop its key from the files for other users to access > the files again. N

Re: [patch] block-dev: checking for NULL instead of IS_ERR()

2016-03-15 Thread Christoph Hellwig
On Tue, Mar 08, 2016 at 03:05:46PM +0300, Dan Carpenter wrote: > This should be an IS_ERR() check. mount_pseudo() returns error pointers > and this function should return the error pointer to its caller as well. > > Fixes: 3684aa7099e0 ('block-dev: enable writeback cgroup support') > Signed-off-b

Re: [PATCH] Remove last traces of ->sync_page

2016-03-15 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH 2/3] block: require write_same and discard requests align to logical block size

2016-03-15 Thread Christoph Hellwig
On Fri, Mar 04, 2016 at 04:56:10PM -0800, Darrick J. Wong wrote: > Make sure that the offset and length arguments that we're using to > construct WRITE SAME and DISCARD requests are actually aligned to the > logical block size. Failure to do this causes other errors in other > parts of the block l

Re: [PATCH 1/3] block: invalidate the page cache when issuing BLKZEROOUT.

2016-03-15 Thread Christoph Hellwig
On Fri, Mar 04, 2016 at 04:56:03PM -0800, Darrick J. Wong wrote: > Invalidate the page cache (as a regular O_DIRECT write would do) to avoid > returning stale cache contents at a later time. > > v5: Refactor the 4.4 refactoring of the ioctl code into separate functions. > Split the page invalidati

Re: [PATCH v2 1/2] Irq/mbigen:Change the mbigen node definition in dt binding file

2016-03-15 Thread majun (F)
Hi Thomas: Thanks for pointing out the problems. I'll make detail description about this problem and resend this patch set. 在 2016/3/14 15:49, Thomas Gleixner 写道: > Majun, > > On Mon, 14 Mar 2016, MaJun wrote: > > First of all the prefix for irq chip drivers is not "Irq/". > > Hint: gi

[PATCH v3 0/8] ARM: dts: Add new Exynos3250-based ARTIK5 module dtsi file

2016-03-15 Thread Chanwoo Choi
This patchset add the support for Device Tree source for Samsung ARTIK5 module[1] based on Exynos3250 SoC and development board[2]. The ARTIK5 module includes the follwoing devices: - Application Processor (Samsung Exynos3250) - WiFi/BT Combo chip - PMIC (Samsung S2MPS14) - eMMC (4GB) - DRAM LPDDR

[PATCH v3 3/8] clk: samsung: exynos3250: Add MMC2 clock

2016-03-15 Thread Chanwoo Choi
This patch add the MMC2 clocks (mux, divider, gate) of Exynos3250 SoC. Cc: Sylwester Nawrocki Cc: Tomasz Figa Signed-off-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos3250.c | 9 + include/dt-bindings/clock/exynos3250.h | 7 ++- 2 files chan

[PATCH v3 1/8] ARM: dts: Add initial pin configuration for exynos3250-rinato

2016-03-15 Thread Chanwoo Choi
This patch adds initial pin configuration using pinctrl subsystem to reduce leakage power-consumption of gpio pins in normal state. All pins included in this patch are NC (not connected) pin. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Signed-off-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --

[PATCH v3 4/8] ARM: dts: Add UART2 dt node for Exynos3250 SoC

2016-03-15 Thread Chanwoo Choi
From: Pankaj Dubey This patch add the uart2 devicetree node for Exynos3250 SoC. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Signed-off-by: Pankaj Dubey Signed-off-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos3250-pinctrl.dtsi | 7 +++ arch/arm/boot/dts/exyn

[PATCH v3 2/8] clk: samsung: exynos3250: Add UART2 clock

2016-03-15 Thread Chanwoo Choi
From: Pankaj Dubey This patch add the UART2 clocks (mux, divider, gate) of Exynos3250 SoC. Cc: Sylwester Nawrocki Cc: Tomasz Figa Signed-off-by: Pankaj Dubey Signed-off-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos3250.c | 6 ++ include/dt-bindi

[PATCH v3 5/8] ARM: dts: Add initial gpio setting of MMC2 device for exynos3250-monk

2016-03-15 Thread Chanwoo Choi
This patch adds initial pin configuration of MMC2 device on exynos3250-monk board because the MMC2 gpio pin (gpk2[0-6]) are NC (not connected) state. Suggested-by: Krzysztof Kozlowski Signed-off-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos3250-monk.dts | 12 ++

[PATCH v3 8/8] ARM: dts: Add MSHC2 dt node for SD card for exynos3250-artik5-eval board

2016-03-15 Thread Chanwoo Choi
From: Jaehoon Chung This patch adds MSHC (Mobile Storage Host Controller) dt node for Exynos3250 SoC. MSHC is an interface between the system and the SD card Signed-off-by: Jaehoon Chung Signed-off-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos3250-artik5-eval

[PATCH v3 6/8] ARM: dts: Add MSHC2 dt node for Exynos3250 SoC

2016-03-15 Thread Chanwoo Choi
This patch adds the MSHC2 (Mobile Storage Host Controller) Device Tree node for Exynos3250 SoC. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Signed-off-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos3250-pinctrl.dtsi | 35 +++ arch/arm/boot

[PATCH v3 7/8] ARM: dts: Add exynos3250-artik5 dtsi file for ARTIK5 module

2016-03-15 Thread Chanwoo Choi
This patch adds the support for Device Tree source for Samsung ARTIK5 module[1] based on Exynos3250 SoC. The ARTIK5 module includes the follwoing devices: - Application Processor (Samsung Exynos3250) - WiFi/BT Combo chip (Broadcom4354) - PMIC (Samsung S2MPS14) - eMMC (4GB) - DRAM LPDDR3 (512MB) - C

Re: [PATCH V7 06/12] thermal: tegra: add a debugfs to show registers

2016-03-15 Thread Wei Ni
On 2016年03月15日 03:08, Eduardo Valentin wrote: > * PGP Signed by an unknown key > > On Fri, Mar 11, 2016 at 11:10:35AM +0800, Wei Ni wrote: >> Add a debugfs interface to show register contents for debug. >> >> Signed-off-by: Wei Ni >> --- >> drivers/thermal/tegra/soctherm.c | 143 >> ++

[PATCH v2 1/4] scatterlist: Introduce some helper functions

2016-03-15 Thread Baolin Wang
In crypto engine framework, one request can combine (copy) other requests' scatterlists into its dynamic sg table to manage them together as a bulk block , which can improve engine efficency with handling bulk block. Thus we need some helper functions to manage dynamic scattertables. This patch in

[PATCH v2 0/4] Introduce bulk mode for crypto engine framework

2016-03-15 Thread Baolin Wang
Now some cipher hardware engines prefer to handle bulk block by merging requests to increase the block size and thus increase the hardware engine processing speed. This patchset introduces request bulk mode to help the crypto hardware drivers improve in efficiency. Changes since v1: - Modify th

Re: [PATCH V7 08/12] of: add notes of critical trips for soctherm

2016-03-15 Thread Wei Ni
On 2016年03月15日 05:00, Eduardo Valentin wrote: > * PGP Signed by an unknown key > > On Fri, Mar 11, 2016 at 11:11:00AM +0800, Wei Ni wrote: >> The "critical" type trip in thermal zone can be >> set to SOC_THERM hardware, it can trigger shut down >> or reset event from hardware. >> >> Signed-off-b

[PATCH v2 2/4] crypto: Introduce some helper functions to help to merge requests

2016-03-15 Thread Baolin Wang
Usually the dm-crypt subsystem will send encryption/descryption requests to the crypto layer one block at a time, making each request 512 bytes long, which is a much smaller size for hardware engine, that means the hardware engine can not play its best performance. Now some cipher hardware engines

[PATCH v2 4/4] md: dm-crypt: Initialize the sector number for one request

2016-03-15 Thread Baolin Wang
If the crypto engine can support the bulk mode, that means the contiguous requests from one block can be merged into one request to be handled by crypto engine. If so, the crypto engine need the sector number of one request to do merging action. Signed-off-by: Baolin Wang --- drivers/md/dm-crypt

[PATCH v2 3/4] crypto: Introduce the bulk mode for crypto engine framework

2016-03-15 Thread Baolin Wang
Now some cipher hardware engines prefer to handle bulk block by merging requests to increase the block size and thus increase the hardware engine processing speed. This patch introduces request bulk mode to help the crypto hardware drivers improve in efficiency, and chooses the suitable mode (SECT

Re: [GIT PULL] LED subsystem updates for 4.6

2016-03-15 Thread Jacek Anaszewski
Hi Stephen, On 03/15/2016 12:36 AM, Stephen Rothwell wrote: Hi Jacek, On Mon, 14 Mar 2016 11:24:57 +0100 Jacek Anaszewski wrote: Please pull LED updates for 4.6 merge cycle. The following changes since commit b562e44f507e863c6792946e4e1b1449fbbac85d: Linux 4.5 (2016-03-13 21:28:54 -070

Re: [PATCH] block: protect iterate_bdevs() against concurrent close

2016-03-15 Thread Christoph Hellwig
On Thu, Mar 10, 2016 at 06:37:27PM +0100, Jan Kara wrote: > Thanks for spotting the problem. The patch will fix the problem you found. > But what prevents e.g. flusher thread from trying to writeback the block > device inode while that gets invalidated at the same moment? I.e., the > problem doesn'

[PATCH v2] pinctrl: rockchip: add support the get_direction

2016-03-15 Thread Caesar Wang
This patch adds the get_direction to support the gpio interface. The gpio direction is not used on rockchip platform when use the gpio debugfs. Tested on kylin board. (RK3036 SoCs) The repro steps: $/sys/class/gpio/ echo 53 > export $/sys/class/gpio/gpio53# cat direction in In general, the gpio53

Re: [PATCH] HID: i2c-hid: fix OOB write in i2c_hid_set_or_send_report()

2016-03-15 Thread Benjamin Tissoires
On Mar 14 2016 or thereabouts, Dmitry Torokhov wrote: > From: Dmitry Torokhov > > Even though hid_hw_* checks that passed in data_len is less than > HID_MAX_BUFFER_SIZE it is not enough, as i2c-hid does not necessarily > allocate buffers of HID_MAX_BUFFER_SIZE but rather checks all device > repor

Re: [GIT PULL] RCU changes for v4.6

2016-03-15 Thread Ingo Molnar
* Paul E. McKenney wrote: > On Mon, Mar 14, 2016 at 03:12:19PM -0700, Linus Torvalds wrote: > > On Mon, Mar 14, 2016 at 3:55 AM, Ingo Molnar wrote: > > > > > > (Note the somewhat larger .html/.htmlx files about RCU data structures - > > > let us > > > know if you think they are over the top.)

Re: [PATCH v2 4/5] mmc: davinci: don't use dma platform resources

2016-03-15 Thread Sekhar Nori
+ Peter On Tuesday 15 March 2016 04:24 AM, David Lechner wrote: > The davinci arch now has dma_slave_map tables for dma resources, so it is > no longer necessary to pass dma resources through the platform device. > > Signed-off-by: David Lechner Looks good to me. Acked-by: Sekhar Nori Thanks

Re: [PATCH 1/4 v3] drm: Add support of ARC PGU display controller

2016-03-15 Thread Daniel Vetter
On Mon, Mar 14, 2016 at 11:15:59AM +, Alexey Brodkin wrote: > On Mon, 2016-03-14 at 08:00 +0100, Daniel Vetter wrote: > > On Fri, Mar 11, 2016 at 06:42:36PM +0300, Alexey Brodkin wrote: > > > +static int arcpgu_atomic_commit(struct drm_device *dev, > > > + struct drm

Re: [PATCH V7 08/12] of: add notes of critical trips for soctherm

2016-03-15 Thread Wei Ni
On 2016年03月15日 15:49, Wei Ni wrote: > > > On 2016年03月15日 05:00, Eduardo Valentin wrote: >> * PGP Signed by an unknown key >> >> On Fri, Mar 11, 2016 at 11:11:00AM +0800, Wei Ni wrote: >>> The "critical" type trip in thermal zone can be >>> set to SOC_THERM hardware, it can trigger shut down >>>

Re: [PATCH v2 0/5] davinci_mmc fixes

2016-03-15 Thread Sekhar Nori
Hi David, On Tuesday 15 March 2016 04:24 AM, David Lechner wrote: > I've updated the patche set based on feedback. This is tested on linux-next > with > LEGO MINDSTORMS EV3 (da850), both with and without device tree enabled. When posting an updated series, please post as a fresh thread. Not as r

[RESEND][PATCH 2/3] arm64: dts: mt8173: Add thermal zone node.

2016-03-15 Thread Dawei Chien
This adds thermal zone node to Mediatek MT8173 dtsi file. Signed-off-by: Dawei Chien --- This patch is base on patchset: https://lkml.org/lkml/2015/11/30/239 --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 43 ++ 1 file changed, 43 insertions(+) diff --git a/arch/ar

[RESEND][PATCH 3/3] arm64: dts: mt8173: Add dynamic power node.

2016-03-15 Thread Dawei Chien
This device node is for calculating dynamic power in mW. Since mt8173 has two clusters, there are two dynamic power coefficient as well. Signed-off-by: Dawei Chien --- This patch is base on patchset: https://lkml.org/lkml/2015/11/17/251 --- arch/arm64/boot/dts/mediatek/mt8173.dtsi |4 1

[RESEND][PATCH 1/3] thermal: mediatek: Add cpu dynamic power cooling model.

2016-03-15 Thread Dawei Chien
MT8173 cpufreq driver select of_cpufreq_power_cooling_register registering cooling devices with dynamic power coefficient. Signed-off-by: Dawei Chien Acked-by: Viresh Kumar --- This patch is base on patchset: https://lkml.org/lkml/2015/11/17/251 --- drivers/cpufreq/mt8173-cpufreq.c | 11 +

[RESEND][PATCH v6 0/3] thermal: mediatek: Add cpu dynamic power cooling model.

2016-03-15 Thread Dawei Chien
Use Intelligent Power Allocation (IPA) technical to add dynamic power model for binding CPU thermal zone. The power allocator governor allocates power budget to control CPU temperature. Power Allocator governor is able to keep SOC temperature within a defined temperature range to avoid SOC over

Re: [PATCH trivial] PM / devfreq: Spelling s/frequnecy/frequency/

2016-03-15 Thread Chanwoo Choi
On 2016년 03월 15일 00:29, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven > --- > drivers/devfreq/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kconfig > index 64281bb2f6503c5a..4de78c552251a5a5 100644 > ---

[GIT PULL v2] RCU changes for v4.6

2016-03-15 Thread Ingo Molnar
Linus, Please pull the latest core-rcu-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-rcu-for-linus # HEAD: 670191572e929ca351e65f532ff51b1f61f424dc Merge commit 'torture.2015.02.23a' into core/rcu This tree excludes the documentation changes of y

man-pages-4.05 is released

2016-03-15 Thread Michael Kerrisk (man-pages)
Gidday, The Linux man-pages maintainer proudly announces: man-pages-4.05 - man pages for Linux This release includes input and contributions from nearly 70 people. Over 400 pages saw changes, ranging from typo fixes through to page rewrites and newly created pages. Tarball download: htt

[PATCH v3] x86: don't assume all fb devices are PCI devices

2016-03-15 Thread Vitaly Kuznetsov
When booting Hyper-V Generation 2 guests KASAN reports the following out-of-bounds access: BUG: KASAN: slab-out-of-bounds in fb_is_primary_device+0x58/0x70 at addr 880079cf0eb0 Read of size 8 by task swapper/0/1 ... [] dump_stack+0x63/0x8b [] print_trailer+0xf9/0x150 [] object_err+0x34/0x

[PATCH] drivers:block: cpqarray clean up

2016-03-15 Thread Valentin Rothberg
0314..next-20160315 --find) drivers/block/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/block/Makefile b/drivers/block/Makefile index 671329023ec2..1e9661e26f29 100644 --- a/drivers/block/Makefile +++ b/drivers/block/Makefile @@ -15,7 +15,6 @@ obj-$(CONFIG_ATARI_FLOPPY)+= ataf

Re: [PATCH] block: protect iterate_bdevs() against concurrent close

2016-03-15 Thread Jan Kara
On Mon 14-03-16 18:42:58, Rabin Vincent wrote: > (fixed Jens' address) > > On Thu, Mar 10, 2016 at 06:37:27PM +0100, Jan Kara wrote: > > On Thu 10-03-16 13:26:03, Rabin Vincent wrote: > > > If a block device is closed while iterate_bdevs() is handling it, the > > > following NULL pointer dereferen

Re: [PATCH v5 3/9] dma-mapping: add dma_{map,unmap}_resource

2016-03-15 Thread Christoph Hellwig
On Fri, Mar 11, 2016 at 01:58:46PM +0100, Niklas S?derlund wrote: > Without an IOMMU this is easy since the phys_addr_t and dma_addr_t are > the same and no special care is needed. However if you have a IOMMU you > need to map the DMA slave phys_addr_t to a dma_addr_t using something > like this

Re: [PATCH v2 5/5] arm: davinci: remove mmc dma resources

2016-03-15 Thread Sekhar Nori
On Tuesday 15 March 2016 04:24 AM, David Lechner wrote: > The davinci_mmc driver no longer uses platform resources for getting dma > channels. Instead lookup is now done using dma_slave_map. > > Signed-off-by: David Lechner I guess this will now be targeted for v4.7. I can apply the patch if I g

Re: [PATCH 14/22] ncr5380: Add MAX_LUN limit

2016-03-15 Thread Christoph Hellwig
On Tue, Mar 15, 2016 at 02:20:55PM +1100, Finn Thain wrote: > I don't think the host template is the right place for this (there are > about ten of these that would need to be changed anyway) because > scsi_host_alloc() assigns shost->max_lun = 8. So I'll add the > instance->max_lun = 7 assignme

Re: [PATCH 20/22] atari_scsi: Set a reasonable default for cmd_per_lun

2016-03-15 Thread Finn Thain
On Tue, 15 Mar 2016, Hannes Reinecke wrote: > On 03/15/2016 04:27 AM, Finn Thain wrote: > > > > On Mon, 14 Mar 2016, Hannes Reinecke wrote: > > > >> On 03/14/2016 05:27 AM, Finn Thain wrote: > >>> This setting does not need to be conditional on Atari ST or TT. > >>> > >>> Without TCQ support, c

[GIT PULL] AVR32 update for 4.6

2016-03-15 Thread Hans-Christian Noren Egtvedt
Hello Linus, please pull git://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/linux-avr32.git for-linus to receive the following AVR32 update for 4.6 Hans-Christian Egtvedt (1): avr32: wire up copy_file_range syscall Mans Rullgard (1): avr32: fix asm operand constraint in cmpxchg(

Re: [PATCH 00/50] pinctrl: Add and use devm_ apis for pinctrl_{register, unregister}

2016-03-15 Thread Linus Walleij
On Wed, Mar 9, 2016 at 3:23 PM, Laxman Dewangan wrote: >> Pushed the change at: >> Branch "devm_pinctrl_register" of >> https://github.com/ldewangan/linux-upstream.git. >> >> Base repo is >> for-next of >> https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git >> >> >> If requir

Re: [patch] Input: synaptics-rmi4 - using logical instead of bitwise AND

2016-03-15 Thread Joe Perches
On Tue, 2016-03-15 at 10:11 +0300, Dan Carpenter wrote: > There is a typo so we have && instead of &. > > Fixes: ff8f83708b3e ('Input: synaptics-rmi4 - add support for 2D sensors and > F11') > Signed-off-by: Dan Carpenter > > diff --git a/drivers/input/rmi4/rmi_f11.c b/drivers/input/rmi4/rmi_f1

Re: [patch] Input: synaptics-rmi4 - using logical instead of bitwise AND

2016-03-15 Thread Dan Carpenter
On Tue, Mar 15, 2016 at 01:33:29AM -0700, Joe Perches wrote: > Right and as well these are bool so the !! isn't necessary. Not necessary but nice for reading... regards, dan carpenter

Re: linux-next: manual merge of the aio tree with the vfs tree

2016-03-15 Thread Christoph Hellwig
On Mon, Mar 14, 2016 at 11:24:38AM -0400, Benjamin LaHaise wrote: > On Mon, Mar 14, 2016 at 08:35:23AM +0100, Christoph Hellwig wrote: > > The aio changes have either been reviewed negatively or not at all. That > > tree should be dropped. > > That isn't solely your decision. If you have commen

Re: [GIT PULL] NOHZ updates for v4.6

2016-03-15 Thread Peter Zijlstra
On Mon, Mar 14, 2016 at 07:44:14PM -0700, Linus Torvalds wrote: > On Mon, Mar 14, 2016 at 5:32 AM, Ingo Molnar wrote: > > +/** > > + * fetch_or - perform *ptr |= mask and return old value of *ptr > > + * @ptr: pointer to value > > + * @mask: mask to OR on the value > > + * > > + * cmpxchg based fe

[RFC PATCH 2/4] usb: chipidea: ci_hdrc_imx: Introduce CI_HDRC_DUAL_ROLE_NOT_OTG for Vybrid

2016-03-15 Thread Sanchayan Maity
The Vybrid SoC has a dual role device which can be configured to act as a host or device through firmware interface, but, it is not a true OTG controller. Use the CI_HDRC_DUAL_ROLE_NOT_OTG in the platform flag, introduce a new platform data structure for Vybrid and match on the compatible string f

Re: [PATCH V5 02/10] perf/amd/iommu: Consolidate and move perf_event_amd_iommu header

2016-03-15 Thread Peter Zijlstra
On Tue, Mar 15, 2016 at 07:39:31AM +0700, Suravee Suthikulpanit wrote: > What if I just merge the newly introduced arch/x86/include/perf/amd/iommu.h > into the include/linux/amd-iommu.h? I do not see the point of having to > separate things out into two files. > Works for me. Thanks!

[RFC PATCH 0/4] Implement USB device/host switch for Vybrid

2016-03-15 Thread Sanchayan Maity
Hello Peter, The existing usage of extcon in Chipidea driver relies on OTG registers. In case of SoC with dual role device but not a true OTG controller, this does not work. Such SoC's should specify the existing CI_HDRC_DUAL_ROLE_NOT_OTG flag and do the role switch without checking any of the OTG

[RFC PATCH 3/4] ARM: dts: vfxxx: Make Vybrid match only on it's own compatible string

2016-03-15 Thread Sanchayan Maity
Remove the compatible string "fsl,imx27-usb" from being used to match on usb device nodes for Vybrid. This is required for specifying that Vybrid USB controller is a dual role but not a true OTG controller using the CI_HDRC_DUAL_ROLE_NOT_OTG flag in the corresponding ci_hdrc_imx driver. Signed-off

[PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2016-03-15 Thread jeffrey.lin
Raydium I2C touch driver. Signed-off-by: jeffrey.lin --- .../devicetree/bindings/input/raydium_i2c_ts.txt | 23 + .../devicetree/bindings/vendor-prefixes.txt| 1 + drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 +

[RFC PATCH 1/4] usb: chipidea: Do not rely on OTG while using extcon

2016-03-15 Thread Sanchayan Maity
The existing usage of extcon in Chipidea driver relies on OTG registers. In case of SoC with dual role device but not a true OTG controller, this does not work. Such SoC's should specify the existing CI_HDRC_DUAL_ROLE_NOT_OTG flag and do the role switch without checking any of the OTG registers. T

[RFC PATCH 4/4] ARM: dts: vf-colibri: USB device/host switch using extcon gpio

2016-03-15 Thread Sanchayan Maity
Use USBC_DET feature of standard Colibri SODIMM pin 137 for USB device/host switching using the generic extcon USB gpio implementation. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | 12 arch/arm/boot/dts/vf-colibri.dtsi | 7 +++ 2 files

[GIT PULL] regulator updates for v4.6

2016-03-15 Thread Mark Brown
The following changes since commit f6cede5b49e822ebc41a099fe41ab4989f64e2cb: Linux 4.5-rc7 (2016-03-06 14:48:03 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git tags/regulator-v4.6 for you to fetch changes up to 768e66686cfe

Re: [PATCH v3 3/5] x86/paravirt: Add paravirt_{read,write}_msr

2016-03-15 Thread Paolo Bonzini
On 14/03/2016 18:02, Andy Lutomirski wrote: > On Mon, Mar 14, 2016 at 9:58 AM, Linus Torvalds > wrote: >> >> On Mar 14, 2016 9:53 AM, "Andy Lutomirski" wrote: >>> >>> Can you clarify? KVM uses the native version, and the native version >>> only oopses with this series applied if panic_on_oops

Re: [PATCH] USB: cdc-acm: add support for Sagem Monetel ELC930

2016-03-15 Thread Oliver Neukum
On Tue, 2016-03-15 at 00:04 +, Nicolas Saenz Julienne wrote: > Hi, > the device is missing all the ACM specific "extra" info on it's interface > descriptor. Which seems be triggering the "Zero length descriptor references" > error during the probe function. Adding the NO_UNION_NORMAL quirk see

Re: [PATCH 8/8] drivers/pinctrl: clean up samsung modular vs. non-modular distinctions

2016-03-15 Thread Linus Walleij
On Mon, Feb 29, 2016 at 9:48 PM, Paul Gortmaker wrote: > Fixups here tend to be more all over the map vs. some of the other > repeated/systematic ones we've seen elsewhere. > > We remove module.h from code that isn't doing anything modular at > all; if they have __init sections, then replace it

Re: [PATCH 3/3] x86: context_tracking: avoid irq_save/irq_restore on kernel entry and exit

2016-03-15 Thread Paolo Bonzini
On 14/03/2016 20:23, Andy Lutomirski wrote: > On Tue, Oct 27, 2015 at 10:22 PM, Andy Lutomirski wrote: >> On Tue, Oct 27, 2015 at 6:39 PM, Paolo Bonzini wrote: >>> x86 always calls user_enter and user_exit with interrupt disabled. >>> Therefore, it is not necessary to check for exceptions, nor

RE: Performance drop on Baytrail with 4.5-rc2

2016-03-15 Thread Longepe, Philippe
Hi Thomas, The patches which are improving ffmeg had to be tested for 2 months on android before submission. That's why I resubmitted them very recently for review on our internal list. They will be submitted them to the linux-pm list as soon as our internal review will be finished. Srinivas

Re: linux-next: manual merge of the net-next tree with Linus' tree

2016-03-15 Thread Gregory CLEMENT
Hi Stephen, On mar., mars 15 2016, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got conflicts in: > > arch/arm/boot/dts/armada-xp-db.dts > arch/arm/boot/dts/armada-xp-gp.dts > arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts > > between commit: > >

Re: [patch] Input: synaptics-rmi4 - using logical instead of bitwise AND

2016-03-15 Thread Joe Perches
On Tue, 2016-03-15 at 11:37 +0300, Dan Carpenter wrote: > On Tue, Mar 15, 2016 at 01:33:29AM -0700, Joe Perches wrote: > > > > Right and as well these are bool so the !! isn't necessary. > Not necessary but nice for reading... opinions vary. cheers, Joe

Re: [PATCH v3] dt-bindings: GPIO: Add generic serializer binding

2016-03-15 Thread Linus Walleij
On Fri, Mar 4, 2016 at 7:58 PM, Andrew F. Davis wrote: > Add binding for generic parallel-in/serial-out shift register devices > used as GPIO. > > Signed-off-by: Andrew F. Davis > Acked-by: Rob Herring > --- > The driver was taken but it looks like this might have been lost, > anyway I've added

Re: [PATCH v2 4/5] mmc: davinci: don't use dma platform resources

2016-03-15 Thread Peter Ujfalusi
On 03/15/16 00:54, David Lechner wrote: > The davinci arch now has dma_slave_map tables for dma resources, so it is > no longer necessary to pass dma resources through the platform device. > > Signed-off-by: David Lechner > --- > > v2 changes: Remove platform_get_resource completly instead of ju

Re: [PATCH v3 3/5] x86/paravirt: Add paravirt_{read,write}_msr

2016-03-15 Thread Paolo Bonzini
On 14/03/2016 17:53, Andy Lutomirski wrote: > > Please do the same for KVM. > > Can you clarify? KVM uses the native version, and the native version > only oopses with this series applied if panic_on_oops is set. Since you fixed the panic_on_oops thing, I'm okay with letting KVM use the unsafe

Re: [PATCH v2 4/5] mmc: davinci: don't use dma platform resources

2016-03-15 Thread Peter Ujfalusi
On 03/15/16 10:54, Peter Ujfalusi wrote: > On 03/15/16 00:54, David Lechner wrote: >> The davinci arch now has dma_slave_map tables for dma resources, so it is >> no longer necessary to pass dma resources through the platform device. >> >> Signed-off-by: David Lechner >> --- >> >> v2 changes: Remo

Re: [PATCH v10 2/9] dt-bindings: pinctrl: Deprecate Tegra XUSB pad controller binding

2016-03-15 Thread Linus Walleij
On Fri, Mar 4, 2016 at 5:19 PM, Thierry Reding wrote: > From: Thierry Reding > > This is an old version of the binding that isn't flexible enough to > describe all aspects of the XUSB pad controller. Specifically with the > addition of XUSB support (for SuperSpeed USB) the existing binding is >

平时最多也就联系了三千家,全球还有十几万客户在哪里?

2016-03-15 Thread iSayor
您好: 您还在用ali平台开发外贸客户? 还在使用展会宣传企业和产品? 你out了!!! 当前外贸客户开发难,您是否也在寻找展会,B2B之外好的渠道? 行业全球十几万客户,平时最多也就联系了三千家,您是否想把剩下的也开发到? 加QQ1286754208给您演示下主动开发客户的方法,先用先受益,已经有近万家企业领先您使用!!。 广东省商业联合会推荐,主动开发客户第一品牌,近万家企业正在获益。您可以没有使用,但是不能没有了解。

Re: [PATCH v10 3/9] dt-bindings: phy: tegra-xusb-padctl: Add Tegra210 support

2016-03-15 Thread Linus Walleij
On Fri, Mar 4, 2016 at 5:19 PM, Thierry Reding wrote: > From: Thierry Reding > > Extend the binding to cover the set of feature found in Tegra210. > > Signed-off-by: Thierry Reding Again I'd like Stephen's ACK on this to keep things together, thanks. Please resend the pinctrl patches to me af

[PATCH] af_unix: closed SOCK_SEQPACKET socketpair must get SIGPIPE

2016-03-15 Thread Alexander Potapenko
According to IEEE Std 1003.1, 2013, sending data to a SOCK_SEQPACKET socketpair with MSG_NOSIGNAL flag set must result in a SIGPIPE if the socket is no longer connected. I used the following program to check the kernel behavior: /*/ #include #include #include #include #include

Re: [PATCH] device property: don't bother the drivers with struct property_set

2016-03-15 Thread Heikki Krogerus
On Fri, Feb 26, 2016 at 01:20:00PM +0200, Heikki Krogerus wrote: > Since device_add_property_set() now always takes a copy of > the property_set, and also since the fwnode type is always > hard coded to be FWNODE_PDATA, there is no need for the > drivers to deliver the entire struct property_set. T

Re: [PATCH] SOCK_SEQPACKET socketpair must get SIGPIPE in AF_UNIX if one end is closed

2016-03-15 Thread Alexander Potapenko
Done, thanks for your response! On Mon, Mar 14, 2016 at 8:19 PM, David Miller wrote: > From: Alexander Potapenko > Date: Wed, 9 Mar 2016 15:10:23 +0100 > >> According to IEEE Std 1003.1, 2013, sending data to a SOCK_SEQPACKET >> socketpair with MSG_NOSIGNAL flag set must result in a SIGPIPE if

Re: livepatch/module: remove livepatch module notifier

2016-03-15 Thread Petr Mladek
On Mon 2016-03-14 13:50:09, Jessica Yu wrote: > +++ Petr Mladek [14/03/16 16:06 +0100]: > >On Fri 2016-03-11 15:03:48, Jessica Yu wrote: > >>+err: > >>+ /* > >>+* If a patch is unsuccessfully applied, return > >>+* error to the module loader. > >>+*/ > >>+ pr_warn("patch '%s' failed

next-20160314 - KASAN breaks 'make C=2' build...

2016-03-15 Thread Valdis Kletnieks
This config breaks sparse: grep KASAN .config CONFIG_KASAN_SHADOW_OFFSET=0xdc00 CONFIG_HAVE_ARCH_KASAN=y CONFIG_KASAN=y # CONFIG_KASAN_OUTLINE is not set CONFIG_KASAN_INLINE=y CONFIG_TEST_KASAN=m LANG=C make C=2 CHK include/config/kernel.release CHK include/generated/uapi

Re: [PATCH] dmaengine: pl330: Fix some race conditions in residue calculation

2016-03-15 Thread Jon Medhurst (Tixy)
On Fri, 2016-03-11 at 13:13 +0530, Vinod Koul wrote: > On Tue, Mar 08, 2016 at 03:50:41PM +, Jon Medhurst (Tixy) wrote: > > > > The reside is requested for "a descriptor". For example if you have > > > prepared > > > two descriptors A and B and submitted them, then you can request status > >

Re: [PATCH V7 09/12] thermal: tegra: add thermtrip function

2016-03-15 Thread Wei Ni
On 2016年03月15日 03:16, Eduardo Valentin wrote: > * PGP Signed by an unknown key > > On Fri, Mar 11, 2016 at 11:11:12AM +0800, Wei Ni wrote: >> Add support for hardware critical thermal limits to the >> SOC_THERM driver. It use the Linux thermal framework to >> create critical trip temp, and set i

Re: [PATCH v2 2/5] mmc: davinci: fix unwinding in probe

2016-03-15 Thread Sekhar Nori
On Tuesday 15 March 2016 04:24 AM, David Lechner wrote: > Unwiding from an error in davinci_mmcsd_probe was a mess. Some errors were > not handled and not all paths unwound correctly. Also using devm_ where > possible to simplify things. > > Signed-off-by: David Lechner > --- > > v2 changes: use

Re: [PATCH v2 1/5] mmc: davinci: remove matching string

2016-03-15 Thread Sekhar Nori
On Tuesday 15 March 2016 04:24 AM, David Lechner wrote: > The string "MMCSDCLK" is not actually used for clock lookup, so can be > removed. > > Signed-off-by: David Lechner In general, you can carry forward acks received in the last version of the patch if the patch is unchanged. Acked-by: Sek

Re: [PATCH v2 3/5] mmc: davinci: prepare clock

2016-03-15 Thread Sekhar Nori
On Tuesday 15 March 2016 04:24 AM, David Lechner wrote: > When trying to use this driver with the common clock framework, enabling > the clock fails because it was not prepared. This fixes the problem by > calling clk_prepare and clk_enable in a single function. Ditto for > clk_disable_unprepare. >

Re: next-20160314 - KASAN breaks 'make C=2' build...

2016-03-15 Thread Andrey Ryabinin
2016-03-15 12:11 GMT+03:00 Valdis Kletnieks : > This config breaks sparse: > > grep KASAN .config > CONFIG_KASAN_SHADOW_OFFSET=0xdc00 > CONFIG_HAVE_ARCH_KASAN=y > CONFIG_KASAN=y > # CONFIG_KASAN_OUTLINE is not set > CONFIG_KASAN_INLINE=y > CONFIG_TEST_KASAN=m > > LANG=C make C=2 > CH

  1   2   3   4   5   6   7   8   >