[PATCH v3 1/3] dt-bindings: mailbox: Document Hi6220 mailbox driver

2015-09-15 Thread Leo Yan
Document the new compatible for Hisilicon Hi6220 mailbox driver. Signed-off-by: Leo Yan --- .../bindings/mailbox/hisilicon,hi6220-mailbox.txt | 57 ++ 1 file changed, 57 insertions(+) create mode 100644

[PATCH v3] arm: Fix backtrace generation when IPI is masked

2015-09-15 Thread Daniel Thompson
Currently on ARM when is triggered from an interrupt handler (e.g. a SysRq issued using UART or kbd) the main CPU will wedge for ten seconds with interrupts masked before issuing a backtrace for every CPU except itself. The new backtrace code introduced by commit 96f0e00378d4 ("ARM: add basic

[PATCH v6 1/9] Input: goodix - sort includes alphabetically

2015-09-15 Thread Irina Tirdea
Signed-off-by: Irina Tirdea Acked-by: Bastien Nocera --- drivers/input/touchscreen/goodix.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index e36162b..6ae28c5 100644 ---

[PATCH 3.12 22/33] net/mlx4_core: Fix wrong index in propagating port change event to VFs

2015-09-15 Thread Jiri Slaby
From: Jack Morgenstein 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 1c1bf34951e8d17941bf708d1901c47e81b15d55 ] The port-change event processing in procedure mlx4_eq_int() uses "slave" as the vf_oper array index. Since the value

[PATCH v3 3/3] arm64: dts: add Hi6220 mailbox node

2015-09-15 Thread Leo Yan
On Hi6220, below memory regions in DDR have specific purpose: 0x05e0, - 0x05ef,: For MCU firmware using at runtime; 0x06df,f000 - 0x06df,: For mailbox message data; 0x0740,f000 - 0x0740,: For MCU firmware's section; 0x3e00, - 0x3fff,: For OP-TEE. This patch

[PATCH v3 2/3] mailbox: Hi6220: add mailbox driver

2015-09-15 Thread Leo Yan
Add driver for Hi6220 mailbox, the mailbox communicates with MCU; for sending data, it can support two methods for low level implementation: one is to use interrupt as acknowledge, another is automatic mode which without any acknowledge. These two methods have been supported in the driver. For

Re: [PATCH RFC] pidns: introduce syscall getvpid

2015-09-15 Thread Eric W. Biederman
Konstantin Khlebnikov writes: > pid_t getvpid(pid_t pid, pid_t source, pid_t target); > > This syscall converts pid from one pid-ns into pid in another pid-ns: > it takes @pid in namespace of @source task (zero for current) and > returns related pid in namespace of @target task (zero for current

[PATCH 01/26] usb: gadget: fix few outdated comments

2015-09-15 Thread Robert Baldyga
Fix comments in code to make them up to date. composite: claiming endpoint is now done by setting ep->claimed flag, not ep->driver_data. epautoconf: usb_ep_autoconfig() and usb_ep_autoconfig_ss() return claimed endpoint with ep->claimed flag already set. Signed-off-by: Robert Baldyga ---

[PATCH v3 0/3] mailbox: hisilicon: add Hi6220 mailbox driver

2015-09-15 Thread Leo Yan
Hi6220 mailbox supports up to 32 channels. Each channel is unidirectional with a maximum message size of 8 words. I/O is performed using register access (there is no DMA) and the cell raises an interrupt when messages are received. This patch series is to implement Hi6220 mailbox driver. It

[PATCH 04/26] usb: gadget: introduce 'enabled' flag in struct usb_ep

2015-09-15 Thread Robert Baldyga
This patch introduces 'enabled' flag in struct usb_ep, and modifies usb_ep_enable() and usb_ep_disable() functions to encapsulate endpoint enabled/disabled state. It helps to avoid enabling endpoints which are already enabled, and disabling endpoints which are already disables. >From now USB

RE: [PATCH v5 3/9] Input: goodix - reset device at init

2015-09-15 Thread Tirdea, Irina
> -Original Message- > From: Aleksei Mamlin [mailto:mamli...@gmail.com] > Sent: 15 September, 2015 12:48 > To: Tirdea, Irina > Cc: Dmitry Torokhov; Bastien Nocera; linux-in...@vger.kernel.org; Mark > Rutland; Purdila, Octavian; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org

[PATCH 07/26] usb: gadget: f_eem: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_ecm, ep->driver_data was used only for endpoint

[PATCH v6 3/9] Input: goodix - reset device at init

2015-09-15 Thread Irina Tirdea
After power on, it is recommended that the driver resets the device. The reset procedure timing is described in the datasheet and is used at device init (before writing device configuration) and for power management. It is a sequence of setting the interrupt and reset pins high/low at specific

Re: [PATCH] coccinelle: tests: unsigned value cannot be lesser than zero

2015-09-15 Thread SF Markus Elfring
> If you think about removing all u* typedefs I became interested in the use case to consider more type definitions besides the ones which should usually be handled for Linux source files. > it will result in omitting u* related comparisons, > unless you use --recursive-includes option. How do

Re: [PATCH 1/1] fs: global sync to not clear error status of individual inodes

2015-09-15 Thread Andi Kleen
> This patch adds filemap_fdatawait_keep_errors() for call sites where > writeback error is not handled so that they don't clear error status. Patch looks good to me. Acked-by: Andi Kleen -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

[PATCH v6 0/9] Goodix touchscreen enhancements

2015-09-15 Thread Irina Tirdea
Add several enhancements to the Goodix touchscreen driver. This version includes a couple of fixes. Thanks, Irina Changes in v6: - skip runtime power manangent calls in open/close if the device ACPI/DT configuration does not declare interrupt and reset gpio pins. - reset the device before

[PATCH v6 2/9] Input: goodix - use actual config length for each device type

2015-09-15 Thread Irina Tirdea
Each of the Goodix devices supported by this driver has a fixed size for the configuration information registers. The size varies depending on the device and is specified in the datasheet. Use the proper configuration length as specified in the datasheet for each device model, so we do not read

[PATCH v6 5/9] Input: goodix - add power management support

2015-09-15 Thread Irina Tirdea
Implement suspend/resume for goodix driver. The suspend and resume process uses the gpio pins. If the device ACPI/DT information does not declare gpio pins, suspend/resume will not be available for these devices. This is based on Goodix datasheets for GT911 and GT9271 and on Goodix driver

[PATCH v6 8/9] Input: goodix - add sysfs interface to dump config

2015-09-15 Thread Irina Tirdea
Goodix devices have a configuration information register area that specify various parameters for the device. The configuration information has a specific format described in the Goodix datasheet. It includes X/Y resolution, maximum supported touch points, interrupt flags, various sesitivity

[PATCH v6 6/9] Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_send

2015-09-15 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index

[PATCH v6 7/9] Input: goodix - add support for ESD

2015-09-15 Thread Irina Tirdea
Add ESD (Electrostatic Discharge) protection mechanism. The driver enables ESD protection in HW and checks a register to determine if ESD occurred. If ESD is signalled by the HW, the driver will reset the device. The ESD poll time (in ms) can be set through the sysfs property esd_timeout. If it

[PATCH v6 4/9] Input: goodix - write configuration data to device

2015-09-15 Thread Irina Tirdea
Goodix devices can be configured by writing custom data to the device at init. The configuration data is read with request_firmware from "goodix__cfg.bin", where is the product id read from the device (e.g.: goodix_911_cfg.bin for Goodix GT911, goodix_9271_cfg.bin for GT9271). The configuration

[PATCH 12/26] usb: gadget: f_ncm: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_ncm, ep->driver_data was used only for endpoint

[PATCH v6 9/9] Input: goodix - add runtime power management support

2015-09-15 Thread Irina Tirdea
Add support for runtime power management so that the device is turned off when not used (when the userspace holds no open handles of the input device). The device uses autosuspend with a default delay of 2 seconds, so the device will suspend if no handles to it are open for 2 seconds. The runtime

[PATCH 13/26] usb: gadget: f_obex: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_obex, ep->driver_data was used only for

[PATCH 15/26] usb: gadget: f_printer: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_printer we only need to store in

Re: [PATCH] arm64: enable generic idle loop

2015-09-15 Thread Catalin Marinas
On Tue, Sep 15, 2015 at 07:20:08PM +0800, Leo Yan wrote: > On Fri, Aug 21, 2015 at 04:54:25PM +0100, Catalin Marinas wrote: > > On Fri, Aug 21, 2015 at 05:14:46PM +0800, Leo Yan wrote: > > > On Fri, Aug 21, 2015 at 10:00:43AM +0100, Catalin Marinas wrote: > > > > On Fri, Aug 21, 2015 at 11:40:22AM

Re: similar files: fusbh200-hcd.c and fotg210-hcd.c

2015-09-15 Thread Felipe Balbi
On Mon, Sep 14, 2015 at 07:50:02PM +0200, Peter Senna Tschudin wrote: > On Mon, Sep 14, 2015 at 5:01 PM, Felipe Balbi wrote: > > On Sat, Sep 12, 2015 at 03:14:50PM +0200, Peter Senna Tschudin wrote: > >> >> Should these files be consolidated? And if so how? > >> > if you can find an easy way,

Re: [Xen-devel] [PATCH RFC] xen: if on Xen, "flatten" the scheduling domain hierarchy

2015-09-15 Thread Dario Faggioli
On Thu, 2015-08-27 at 11:24 +0100, George Dunlap wrote: > On 08/18/2015 04:55 PM, Dario Faggioli wrote: > > *** Intel(R) Xeon(R) X5650 @ 2.67GHz > > *** pCPUs 48DOM0 vCPUS 16 > > *** RAM393138 MB DOM0 Memory 9955 MB > > *** NUMA nodes 2 > >

[PATCH 20/26] usb: gadget: f_uac1: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_uac1, ep->driver_data was used only for

[PATCH 17/26] usb: gadget: f_serial: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_serial, ep->driver_data was used only for

Re: [PATCH 05/10] mm/percpu: Use offset_in_page macro

2015-09-15 Thread Tejun Heo
On Tue, Sep 15, 2015 at 08:08:01PM +0600, Alexander Kuleshov wrote: > The provides offset_in_page() macro. Let's use already > predefined macro instead of (addr & ~PAGE_MASK). > > Signed-off-by: Alexander Kuleshov Acked-by: Tejun Heo Please feel free to route with other patches. Thanks. --

[PATCH 05/26] usb: gadget: f_ecm: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_ecm, ep->driver_data was used only for endpoint

[PATCH 21/26] usb: gadget: f_uac2: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_uac2, ep->driver_data was used only for

[PATCH 23/26] usb: gadget: u_ether: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of u_ether we only need to store in ep->driver_data

Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error reporting

2015-09-15 Thread Johannes Berg
On Tue, 2015-09-15 at 17:15 +0300, Alexander Shishkin wrote: > > > It seems to me that current->ext_err_code needs to be cleared on > > each system call entry (except for your special prctl() of > > course!). > > I'd say, it should be up to the program to decide for how long they > want to

[PATCH 25/26] usb: gadget: legacy: dbgp: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of dbgp, ep->driver_data was used only for endpoint

[PATCH 14/26] usb: gadget: f_phonet: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_phonet we only need to store in ep->driver_data

[PATCH 26/26] usb: gadget: legacy: tcm: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of tcm, ep->driver_data was used only for endpoint

[PATCH 22/26] usb: gadget: f_uvc: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_uvc, ep->driver_data was used only for endpoint

[PATCH 16/26] usb: gadget: f_rndis: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_rndis, ep->driver_data was used only for

[PATCH 24/26] usb: gadget: u_serial: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of u_serial ep->driver_data stores pointer to struct

[PATCH 11/26] usb: gadget: f_midi: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_midi we only need to store in ep->driver_data

[PATCH 19/26] usb: gadget: f_subset: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_subset, ep->driver_data was used only for

Re: [PATCH v7 3/3] can: Allwinner A10/A20 CAN Controller support - Kernel module

2015-09-15 Thread Maxime Ripard
On Tue, Sep 15, 2015 at 01:17:12AM +0200, Gerhard Bertelsmann wrote: > Kernel module for Allwinner A10/A20 CAN > > Signed-off-by: Gerhard Bertelsmann > --- > > drivers/net/can/Kconfig| 10 + > drivers/net/can/Makefile | 1 + >

[PATCH v2] tpm, tpm_crb: fix unaligned read of the command buffer address

2015-09-15 Thread Jarkko Sakkinen
The command buffer address is necessarily not naturally aligned. The hardware drops the entire read on some platforms and fills the address with 1's. This patch fixes the issue by splitting the read into two 32 bit reads. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_crb.c | 7 ---

[PATCH 18/26] usb: gadget: f_sourcesink: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_sourcesink we only need to store in

[PATCH 3.12 09/33] net: pktgen: fix race between pktgen_thread_worker() and kthread_stop()

2015-09-15 Thread Jiri Slaby
From: Oleg Nesterov 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit fecdf8be2d91e04b0a9a4f79ff06499a36f5d14f ] pktgen_thread_worker() is obviously racy, kthread_stop() can come between the kthread_should_stop() check and

[PATCH 3.12 26/33] lpfc: Fix scsi prep dma buf error.

2015-09-15 Thread Jiri Slaby
From: James Smart 3.12-stable review patch. If anyone has any objections, please let me know. === commit 5116fbf136ea21b8678a85eee5c03508736ada9f upstream. Didn't check for less-than-or-equal zero. Means we may later call scsi_dma_unmap() even though we don't have valid mappings.

Re: [PATCH 3.4 000/146] 3.4.109-rc1 review

2015-09-15 Thread Guenter Roeck
On 09/15/2015 02:03 AM, l...@kernel.org wrote: From: Zefan Li This is the start of the stable review cycle for the 3.4.109 release. There are 146 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

[PATCH 3.12 25/33] cifs: Send a logoff request before removing a smb session

2015-09-15 Thread Jiri Slaby
From: Shirish Pargaonkar 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7f48558e6489d032b1584b0cc9ac4bb11072c034 upstream. Send a smb session logoff request before removing smb session off of the list. On a signed smb session, remvoing a

[PATCH 3.12 23/33] rds: fix an integer overflow test in rds_info_getsockopt()

2015-09-15 Thread Jiri Slaby
From: Dan Carpenter 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 468b732b6f76b138c0926eadf38ac88467dcd271 ] "len" is a signed integer. We check that len is not negative, so it goes from zero to INT_MAX. PAGE_SIZE is unsigned

[PATCH 06/26] usb: gadget: f_acm: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_acm we only need to store in ep->driver_data

Re: [PATCH RFC] pidns: introduce syscall getvpid

2015-09-15 Thread Oleg Nesterov
On 09/15, Konstantin Khlebnikov wrote: > > +SYSCALL_DEFINE3(getvpid, pid_t, pid, pid_t, source, pid_t, target) > +{ > +#ifdef CONFIG_PID_NS > + struct pid_namespace *current_ns = task_active_pid_ns(current); > + struct pid_namespace *source_ns = current_ns, *target_ns = current_ns; > +

[PATCH 00/26] usb: gadget: encapsulate ep enable/disable

2015-09-15 Thread Robert Baldyga
Hi Felipe, There is my next patches series containing few fixes and slightly reworking USB gadget function API. It introduces ep->enabled flag which indicates whether endpointis enabled or not, and encapsulates its checking and setting into usb_ep_enable() and usb_ep_disable() functions. So now

[PATCH 09/26] usb: gadget: f_loopback: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_hid we only need to store in ep->driver_data

[PATCH 3.12 33/33] PCI: Add VPD function 0 quirk for Intel Ethernet devices

2015-09-15 Thread Jiri Slaby
From: Mark Rustad 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7aa6ca4d39edf01f997b9e02cf6d2fdeb224f351 upstream. Set the PCI_DEV_FLAGS_VPD_REF_F0 flag on all Intel Ethernet device functions other than function 0, so that on

Re: [PATCH 0/2] alpha: fix build failure

2015-09-15 Thread Guenter Roeck
On 09/15/2015 06:50 AM, Sudip Mukherjee wrote: On Tue, Sep 15, 2015 at 06:28:40AM -0700, Guenter Roeck wrote: On 09/15/2015 01:21 AM, Sudip Mukherjee wrote: On Mon, Sep 14, 2015 at 02:22:08PM -0700, Guenter Roeck wrote: On Mon, Sep 14, 2015 at 05:19:27PM +0530, Sudip Mukherjee wrote: I am

[PATCH 3.12 15/33] bridge: mdb: fix double add notification

2015-09-15 Thread Jiri Slaby
From: Nikolay Aleksandrov 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 5ebc784625ea68a9570d1f70557e7932988cd1b4 ] Since the mdb add/del code was introduced there have been 2 br_mdb_notify calls when doing br_mdb_add() resulting

[PATCH 3.12 21/33] netlink: don't hold mutex in rcu callback when releasing mmapd ring

2015-09-15 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 0470eb99b4721586ccac954faac3fa4472da0845 ] Kirill A. Shutemov says: This simple test-case trigers few locking asserts in kernel: int main(int argc, char

Re: [PATCH v2] scsi: introduce short_inquiry flag for broken host adapters

2015-09-15 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > Some host adapters (e.g. Hyper-V storvsc) are known for not respecting the > SPC-2/3/4 requirement for 'INQUIRY data (see table ...) shall contain at > least 36 bytes'. As a result we get tons on 'scsi 0:7:1:1: scsi scan: > INQUIRY result too short (5), using 36'

[PATCH 3.12 24/33] mtip32xx: dynamically allocate buffer in debugfs functions

2015-09-15 Thread Jiri Slaby
From: David Milburn 3.12-stable review patch. If anyone has any objections, please let me know. === commit c8afd0dcbd14e2352258f2e2d359b36d0edd459f upstream. Dynamically allocate buf to prevent warnings: drivers/block/mtip32xx/mtip32xx.c: In function

[PATCH 02/26] usb: gadget: f_ncm: obtain cdev from function instead of driver_data

2015-09-15 Thread Robert Baldyga
The 'driver_data' field in ep0 is never set to pointer to cdev, so we have to obtain it from another source as in this context ep->driver_data contains invalid data. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/function/f_ncm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 3.12 30/33] netfilter: nf_conntrack: fix RCU race in nf_conntrack_find_get

2015-09-15 Thread Jiri Slaby
From: Andrey Vagin 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit c6825c0976fa7893692e0e43b09740b419b23c09 ] Lets look at destroy_conntrack: hlist_nulls_del_rcu(>tuplehash[IP_CT_DIR_ORIGINAL].hnnode); ... nf_conntrack_free(ct)

[PATCH 03/26] usb: gadget: epautoconf: add usb_ep_autoconfig_release() function

2015-09-15 Thread Robert Baldyga
This patch introduces usb_ep_autoconfig_release() function which allows to release endpoint previously obtained from usb_ep_autoconfig() during USB function bind. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 17 + include/linux/usb/gadget.h | 2 ++ 2

[PATCH 3.12 27/33] bio: fix argument of __bio_add_page() for max_sectors > 0xffff

2015-09-15 Thread Jiri Slaby
From: Akinobu Mita 3.12-stable review patch. If anyone has any objections, please let me know. === commit 34f2fd8dfe6185b0eaaf7d661281713a6170b077 upstream. The data type of max_sectors and max_hw_sectors in queue settings are unsigned int. But these values are passed to

[PATCH 3.12 31/33] netfilter: nf_conntrack: don't release a conntrack with non-zero refcnt

2015-09-15 Thread Jiri Slaby
From: Pablo Neira Ayuso 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit e53376bef2cd97d3e3f61fdc677fb8da7d03d0da ] With this patch, the conntrack refcount is initially set to zero and it is bumped once it is added to any of the

[PATCH 3.12 29/33] aio: fix reqs_available handling

2015-09-15 Thread Jiri Slaby
From: Benjamin LaHaise 3.12-stable review patch. If anyone has any objections, please let me know. === commit d856f32a86b2b015ab180ab7a55e455ed8d3ccc5 upstream. As reported by Dan Aloni, commit f8567a3845ac ("aio: fix aio request leak when events are reaped by userspace")

[PATCH 3.12 32/33] PCI: Add dev_flags bit to access VPD through function 0

2015-09-15 Thread Jiri Slaby
From: Mark Rustad 3.12-stable review patch. If anyone has any objections, please let me know. === commit 932c435caba8a2ce473a91753bad0173269ef334 upstream. Add a dev_flags bit, PCI_DEV_FLAGS_VPD_REF_F0, to access VPD through function 0 to provide VPD access on other functions.

Re: [PATCH] driver core: Ensure proper suspend/resume ordering

2015-09-15 Thread Alan Stern
On Tue, 15 Sep 2015, Rafael J. Wysocki wrote: > Hi Alan, Hi. > On Sat, Sep 12, 2015 at 7:40 PM, Alan Stern wrote: > > On Sat, 12 Sep 2015, Rafael J. Wysocki wrote: > > > >> On Friday, September 11, 2015 03:01:14 PM Alan Stern wrote: > > > >> > There's also an issue about other types of

[PATCH 3.12 28/33] dm cache mq: fix memory allocation failure for large cache devices

2015-09-15 Thread Jiri Slaby
From: Heinz Mauelshagen 3.12-stable review patch. If anyone has any objections, please let me know. === commit 14f398ca2f26a2ed6236aec54395e0fa06ec8a82 upstream. The memory allocated for the multiqueue policy's hash table doesn't need to be physically contiguous. Use vzalloc()

[PATCH 08/26] usb: gadget: f_hid: eliminate abuse of ep->driver data

2015-09-15 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_hid we only need to store in ep->driver_data

[PATCH 3.12 00/33] 3.12.48-stable review

2015-09-15 Thread Jiri Slaby
This is the start of the stable review cycle for the 3.12.48 release. There are 33 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Sep 17 16:20:25 CEST 2015. Anything

Re: [PATCH V3 11/14] perf tools: Fix perf_evlist__add() not propagating maps

2015-09-15 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 08, 2015 at 10:58:59AM +0300, Adrian Hunter escreveu: > If evsels are added after maps are created, then they won't > have any maps propagated to them. Fix that. Next time please consider, when introducing this a new function A() that will be needed by a function B() in a subsequent

Re: [PATCH V3 00/14] perf tools: Fix gaps propagating maps

2015-09-15 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 15, 2015 at 09:52:56AM +0300, Adrian Hunter escreveu: > On 08/09/15 11:08, Jiri Olsa wrote: > > On Tue, Sep 08, 2015 at 10:58:48AM +0300, Adrian Hunter wrote: > >> Hi > >> > >> Here is V3 of "Fix gaps propagating maps" that fixes some problems > >> revealed by to d988d5ee6478 ("perf

Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error reporting

2015-09-15 Thread Alexander Shishkin
Jonathan Corbet writes: > So, a couple of comments as I try to figure this stuff out... Thanks for taking the time to look at this. > On Fri, 11 Sep 2015 19:00:00 +0300 > Alexander Shishkin wrote: > >> +int ext_err_copy_to_user(void __user *buf, size_t size) >> +{ >> +struct

Re: [PATCH -tip 2/3] sched/wake_q: Relax to acquire semantics

2015-09-15 Thread Peter Zijlstra
On Tue, Sep 15, 2015 at 07:09:22AM -0700, Paul E. McKenney wrote: > On Tue, Sep 15, 2015 at 02:48:00PM +0200, Peter Zijlstra wrote: > > On Tue, Sep 15, 2015 at 05:41:42AM -0700, Paul E. McKenney wrote: > > > > Never mind, the PPC people will implement this with lwsync and that is > > > > very much

Re: [PATCH] ARM: Remove __ref on hotplug cpu die path

2015-09-15 Thread Sudeep Holla
On 15/09/15 01:23, Stephen Boyd wrote: Now that __cpuinit has been removed, the __ref markings on these functions are useless. Remove them. This also reduces the size of the multi_v7_defconfig image: $ size before after textdata bss dec hex filename 12683578

Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success.

2015-09-15 Thread Eric W. Biederman
On September 15, 2015 4:30:56 AM CDT, Sean Fu wrote: >On Mon, Sep 14, 2015 at 12:44 AM, Eric W. Biederman > wrote: >> Sean Fu writes: >> >>> On Sat, Sep 12, 2015 at 1:01 AM, Eric W. Biederman >>> wrote: Sean Fu writes: >> '\0' is not and has never been valid in a text file. >> proc

[PATCH 01/11 RESEND] ARM: OMAP: DRA7: hwmod: Add data for McASP3

2015-09-15 Thread Peter Ujfalusi
McASP3 is used by default on DRA7x based boards for audio. Signed-off-by: Peter Ujfalusi --- Hi Paul, this patch is part of my earlier series and as Tony suggested I'll resend the hwmod patch for you to review since I missed you from the TO in the series. The original series:

Re: [PATCH 04/13] Always expose MAP_UNINITIALIZED to userspace

2015-09-15 Thread Josh Triplett
On Tue, Sep 15, 2015 at 12:42:00PM +0300, Kirill A. Shutemov wrote: > On Mon, Sep 14, 2015 at 10:19:19PM -0700, Josh Triplett wrote: > > On Tue, Sep 15, 2015 at 03:23:58AM +0300, Kirill A. Shutemov wrote: > > > On Mon, Sep 14, 2015 at 03:50:38PM -0700, Palmer Dabbelt wrote: > > > > This used to be

[PATCH 03/10] mm/mincore: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/mincore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mincore.c b/mm/mincore.c index be25efd..a011355 100644 ---

[PATCH 00/10] Use offset_in_page() macro

2015-09-15 Thread Alexander Kuleshov
This patchset does not provide functional changes, but just replaces (addr & ~PAGE_MASK) expression with already defined offset_in_page() macro from the . Alexander Kuleshov (10): mm/msync: Use offset_in_page macro mm/nommu: Use offset_in_page macro mm/mincore: Use offset_in_page macro

[PATCH 09/10] mm/mmap: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/mmap.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index 971dd2c..a313a9c 100644 ---

[PATCH 05/10] mm/percpu: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/percpu.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/percpu.c b/mm/percpu.c index a63b4d8..8a943b9 100644 ---

[PATCH 02/10] mm/nommu: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/nommu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/nommu.c b/mm/nommu.c index ab14a20..1e0f168 100644 ---

[PATCH 3/4] input: Add new sun4i-keypad driver

2015-09-15 Thread yassinjaffer
From: Yassin Jaffer Allwinnner SUN4i Keypad controller is used to interface a SoC with a matrix-typekeypad device. The keypad controller supports multiple row and column lines. A key can be placed at each intersection of a unique row and a unique column. The keypad controller can sense a

Re: [alsa-devel] System with multiple arizona (wm5102) codecs

2015-09-15 Thread Mark Brown
On Tue, Sep 15, 2015 at 06:56:39AM -0700, Caleb Crome wrote: >I'd love to see the patches :-) I've been trying to figure out the > *right* way to add multiple codecs to a single card (and single CPU > DAI) for some days now. Any help would be greatly appreciated. Like Charles said earlier

[PATCH 06/10] mm/util: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/util.c b/mm/util.c index 68ff8a5..9af1c12 100644 --- a/mm/util.c +++

Re: [PATCH -tip 2/3] sched/wake_q: Relax to acquire semantics

2015-09-15 Thread Paul E. McKenney
On Tue, Sep 15, 2015 at 02:48:00PM +0200, Peter Zijlstra wrote: > On Tue, Sep 15, 2015 at 05:41:42AM -0700, Paul E. McKenney wrote: > > > Never mind, the PPC people will implement this with lwsync and that is > > > very much not transitive IIRC. > > > > I am probably lost on context, but... > >

[PATCH 10/10] mm/mremap: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/mremap.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/mremap.c b/mm/mremap.c index 5a71cce..3fea83c 100644 ---

[PATCH 08/10] mm/vmalloc: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/vmalloc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 2faaa29..b51b733 100644

Re: spi/bcm63xx: unknown CONFIG_BIG_ENDIAN

2015-09-15 Thread Mark Brown
On Tue, Sep 15, 2015 at 03:34:17PM +0200, Jonas Gorski wrote: > On 15.09.2015 10:40, Mark Brown wrote: > > No, please submit incremental modifications as incremental > > modifications. > IS there anything I can do to avoid this happining again, like a patchwork > where I can mark my older

[PATCH 01/10] mm/msync: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/msync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/msync.c b/mm/msync.c index bb04d53..24e612f 100644 --- a/mm/msync.c

[PATCH 07/10] mm/mlock: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/mlock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/mlock.c b/mm/mlock.c index 25936680..e86206b 100644 ---

[PATCH 04/10] mm/early_ioremap: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/early_ioremap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/early_ioremap.c b/mm/early_ioremap.c index

[PATCH 1/4] ARM:dts:sun7i: Add keypad clk node

2015-09-15 Thread yassinjaffer
From: Yassin Jaffer This patch add support to the keypad clock on sun7i Signed-off-by: Yassin Jaffer --- arch/arm/boot/dts/sun7i-a20.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 2bebaa2..333604a

[PATCH 2/4] ARM: dts: sun7i: Add keypad node to Allwinner A20 SoC

2015-09-15 Thread yassinjaffer
From: Yassin Jaffer Add Keypad controller node definition to the A20 SoC. Signed-off-by: Yassin Jaffer --- arch/arm/boot/dts/sun7i-a20.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 333604a..35cc8d0

[PATCH 4/4] devicetree: bindings:Allwinner sun4i keypad

2015-09-15 Thread yassinjaffer
From: Yassin Jaffer Signed-off-by: Yassin Jaffer --- .../devicetree/bindings/input/sun4i-keypad.txt | 56 ++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/sun4i-keypad.txt diff --git

NEW SUN4i KEYPAD DRIVER

2015-09-15 Thread yassinjaffer
This series adds support for the sun4i keypad Controller I've tested the driver in a A20 custom board (4x4) only Allwinner keypad controller does not seem to handle more than two key press Please test and report bugs. Thank you in advance [PATCH 1/4] ARM:dts:sun7i: Add keypad clk node [PATCH

<    1   2   3   4   5   6   7   8   9   10   >