[PATCH v3 1/7] mfd: Add Device Tree bindings document for retu/tahvo ASIC chips

2017-04-01 Thread Javier Martinez Canillas
There are Device Tree source files defining a device node for the retu/tahvo I2C chip, but there isn't a DT binding document for it. Signed-off-by: Javier Martinez Canillas --- Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/mfd/retu.txt | 19 +++ 1 fi

[PATCH v3 3/7] i2c: i2c-cbus-gpio: Add vendor prefix to retu node in example

2017-04-01 Thread Javier Martinez Canillas
The example contains a device node for a retu-mfd device, but its compatible string doesn't have a vendor prefix. Signed-off-by: Javier Martinez Canillas --- Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/i2c/i2c-cbus-gpio.txt | 2 +- 1 file changed, 1 insertion(+),

[PATCH v3 6/7] mfd: tps6105x: Add OF device ID table

2017-04-01 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH v3 5/7] mfd: Add Device Tree bindings document for TI tps6105x chip

2017-04-01 Thread Javier Martinez Canillas
There are Device Tree source files defining a device node for the tps61050/61052 I2C chip but there isn't a binding document for it. Signed-off-by: Javier Martinez Canillas --- Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/mfd/tps6105x.txt | 17 + 1

[PATCH v3 7/7] ARM: ux500: Add vendor prefix to tps61052 node

2017-04-01 Thread Javier Martinez Canillas
The tps61052 device node doesn't have a vendor prefix in its compatible string, fix it by adding one. Signed-off-by: Javier Martinez Canillas --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/ste-hrefprev60.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a

[PATCH v3 0/7] mfd: Add OF device table to I2C drivers that are missing it

2017-04-01 Thread Javier Martinez Canillas
Hello, This series add OF device ID tables to mfd I2C drivers whose devices are either used in Device Tree source files or are listed in binding docs as a compatible string. That's done because the plan is to change the I2C core to report proper OF modaliases instead of always reporting a MODALIA

[PATCH v3 4/7] ARM: dts: n8x0: Add vendor prefix to retu node

2017-04-01 Thread Javier Martinez Canillas
The retu-mfd device node doesn't have a vendor prefix in its compatible string, fix it by adding one. Signed-off-by: Javier Martinez Canillas --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/omap2420-n8x0-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH v3 2/7] mfd: retu: Add OF device ID table

2017-04-01 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

Re: [PATCH] ARM: dts: armada-38x: label USB and SATA nodes

2017-04-01 Thread Ralph Sennhauser
On Fri, 31 Mar 2017 20:21:11 +0200 Andrew Lunn wrote: > On Fri, Mar 31, 2017 at 07:39:20PM +0200, Ralph Sennhauser wrote: > > On Fri, 31 Mar 2017 18:50:15 +0200 > > Andrew Lunn wrote: > > > > > > - sata@a8000 { > > > > + satac0: sata@a8000 { > >

[PATCH] iio: adc: hx711: constify attribute_group structures

2017-04-01 Thread simran singhal
Check for attribute_group structures that are only stored in the attrs filed of iio_info structure. As the attrs field of iio_info structures is constant, so these attribute_group structures can also be declared constant. Done using coccinelle: @r1 disable optional_qualifier @ identifier i; positi

[PATCH] iio: humidity: hdc100x: constify attribute_group structures

2017-04-01 Thread simran singhal
Check for attribute_group structures that are only stored in the attrs filed of iio_info structure. As the attrs field of iio_info structures is constant, so these attribute_group structures can also be declared constant. Done using coccinelle: @r1 disable optional_qualifier @ identifier i; positi

[PATCH] iio: light: apds9960: constify attribute_group structures

2017-04-01 Thread simran singhal
Check for attribute_group structures that are only stored in the attrs filed of iio_info structure. As the attrs field of iio_info structures is constant, so these attribute_group structures can also be declared constant. Done using coccinelle: @r1 disable optional_qualifier @ identifier i; positi

[PATCH] iio: light: bh1750: constify attribute_group structures

2017-04-01 Thread simran singhal
Check for attribute_group structures that are only stored in the attrs filed of iio_info structure. As the attrs field of iio_info structures is constant, so these attribute_group structures can also be declared constant. Done using coccinelle: @r1 disable optional_qualifier @ identifier i; positi

[PATCH] ipv4: netfilter: Comparison to NULL could be written

2017-04-01 Thread Arushi Singhal
Fixed coding style for null comparisons to be more consistant with the rest of the kernel coding style. Signed-off-by: Arushi Singhal --- net/ipv4/netfilter/arp_tables.c| 2 +- net/ipv4/netfilter/arptable_filter.c | 2 +- net/ipv4/netfilter/ipt_CLUSTERIP.c

[PATCH] iio: proximity: as3935: constify attribute_group structures

2017-04-01 Thread simran singhal
Check for attribute_group structures that are only stored in the attrs filed of iio_info structure. As the attrs field of iio_info structures is constant, so these attribute_group structures can also be declared constant. Done using coccinelle: @r1 disable optional_qualifier @ identifier i; positi

Re: [PATCH v3 12/37] mtd: nand: denali: support 1024 byte ECC step size

2017-04-01 Thread Masahiro Yamada
2017-03-30 15:45 GMT+09:00 Masahiro Yamada : > This driver was originally written for the Intel MRST platform with > several platform specific parameters hard-coded. Another thing we > need to fix is the hard-coded ECC step size. Currently, it is > defined as follows: > > #define ECC_SECTOR_SIZ

Re: [PATCH v2] ALSA: hda/ca0132: Limit values for chip addresses to 32-bit

2017-04-01 Thread Takashi Iwai
On Sat, 01 Apr 2017 03:00:04 +0200, Matthias Kaehlcke wrote: > > With the previous unsigned long value clang generates warnings like > this: > > sound/pci/hda/patch_ca0132.c:860:37: error: implicit conversion from > 'unsigned long' to 'u32' (aka 'unsigned int') changes value from > 18446744073709

Re: [PATCHv2] fs: Handle register_shrinker failure

2017-04-01 Thread Nikolay Borisov
On 24.03.2017 10:25, Nikolay Borisov wrote: > register_shrinker allocates dynamic memory and thus is susceptible to failures > under low-memory situation. Currently,get_userns ignores the return value of > register_shrinker, potentially exposing not fully initialised object. This > can lead to a

bug fix for registers debugfs file implementation [RFC]

2017-04-01 Thread noman pouigt
Current registers debugfs file implementation doesn't handle if the size exceeds 4k. It just dumps 4k of registers. Fix this by using the seq_file which already handles the file offset logic instead of reinventing the wheel. I am wondering if there is any issue is doing below which I am not aware

[GIT PULL] runes

2017-04-01 Thread Adam Borowski
Hi Linus! Please pull from https://github.com/kilobyte/linux.git runes It contains fixes for OLCUC handling, expanding its functionality to what I presume was your intention in implementing OLCUC in 1991 but couldn't be done then. The highlight is a fix for a bug that bisects all the way to

[PATCH 1/4] n_tty: don't mangle tty codes in OLCUC mode

2017-04-01 Thread Adam Borowski
Any terminal younger than ~40 years requires lowercase commands, thus they need to be exempt from uppercasing. And Linux doesn't really support ancient all-uppercase terminals anyway (no XCASE, etc) even if someone made the effort to somehow connect them electrically. This bug is reproducible as

[PATCH 2/4] n_tty: use runes rather than uppercase in IUTF8 OLCUC mode

2017-04-01 Thread Adam Borowski
It is puzzling why OLCUC support has been added to Linux, despite it being obsolete for a long long time before Linux was born. The only explanation I see, as on all-caps displays those were often called "Great Runes" (see the Jargon File), is that the intention was to support runes but that wasn'

[PATCH 4/4] n_tty: wrap all OLCUC code in a config option

2017-04-01 Thread Adam Borowski
Setting it to N, beside dropping runes, also disables old-style support for all-caps OLCUC. To get those 40 years old terminals to work, set CONFIG_TTY_RUNES=y which will DTRT when stty iutf8 is off. Signed-off-by: Adam Borowski --- drivers/tty/Kconfig | 17 + drivers/tty/n_tty.

[PATCH 3/4] n_tty: support th, ae and ng runes

2017-04-01 Thread Adam Borowski
Especially 'th' is a prominent letter in Elder Futhark, far more widespread than 't'. It has survived in English as 'þ' until a combination of disdain from Latin-educated scribes and printing presses imported from Germany that lacked this letter wiped it out. Alas, we need to maintain a 1:1 relat

Re: [PATCH V8 5/6] ACPI: Support the probing on the devices which apply indirect-IO

2017-04-01 Thread Rafael J. Wysocki
On Sat, Apr 1, 2017 at 4:16 AM, zhichang.yuan wrote: > > > On 04/01/2017 07:02 AM, Rafael J. Wysocki wrote: >> On Fri, Mar 31, 2017 at 8:52 AM, zhichang.yuan >> wrote: >>> Hi, Rafael, >>> >>> Thanks for reviewing this! >>> >>> On 2017/3/31 4:31, Rafael J. Wysocki wrote: On Thursday, March 30

Re: [PATCH] iio: adc: replace comma with a semicolon

2017-04-01 Thread Jonathan Cameron
On 30/03/17 14:38, Peter Meerwald-Stadler wrote: > >> On Thu, Mar 30, 2017 at 06:16:03PM +0530, Arushi Singhal wrote: >>> Replace a comma between expression statements by a semicolon. This >>> changes the semantics of the code, but given the current indentation >>> appears to be what is intended.

[PATCH 1/3] usb: pci-quirks: Add a header for SB800 I/O ports and mutex for locking

2017-04-01 Thread Zoltán Böszörményi
From: Böszörményi Zoltán This patch adds: * a mutex in the USB PCI quirks code for synchronizing access to the I/O ports on SB800 * a new header that contains symbols for the index and data I/O ports and wrappers for locking and unlocking the mutex. * locking around the I/O port access for SB

[PATCH 3/3] watchdog: sp5100_tco: Synchronize I/O port accesses

2017-04-01 Thread Zoltán Böszörményi
From: Böszörményi Zoltán Use the new header and the mutex from usb/host/pci-quirks.c This change will allow accesses to the SB800 I/O port pair synchronized with the PCI quirk when isochronous USB transfers are performed and with i2c-piix4. At the same time, remove the request_region() call to

[PATCH 0/3] Fix sp5100_tco watchdog driver regression

2017-04-01 Thread Zoltán Böszörményi
Three drivers are accessing the same I/O ports (0xcd6 / 0xcd7) on AMD SB800 based machines without synchronization or with excluding each other out: * the USB quirk for isochronous transfers on SB800 (no locking) * sp5100_tco (request_region) * i2c-piix4 (request_region) Historically, the sp5100_t

Re: [Regression] Changes to i2c-piix4.c initialisation prevent loading of sp5100_tco watchdog driver on AMD SB800 chipset

2017-04-01 Thread Boszormenyi Zoltan
2017-03-31 17:05 keltezéssel, Guenter Roeck írta: On Fri, Mar 31, 2017 at 04:46:02PM +0200, Boszormenyi Zoltan wrote: 2017-03-31 14:49 keltezéssel, Guenter Roeck írta: request_muxed_region() can fail, and literally every other driver using it checks for that failure. Please do the same. In wh

Re: [PATCH] iio: proximity: as3935: constify attribute_group structures

2017-04-01 Thread Jonathan Cameron
On 01/04/17 09:39, simran singhal wrote: > Check for attribute_group structures that are only stored in the > attrs filed of iio_info structure. As the attrs field of iio_info > structures is constant, so these attribute_group structures can also be > declared constant. > Done using coccinelle: >

Re: [PATCH] iio: light: bh1750: constify attribute_group structures

2017-04-01 Thread Jonathan Cameron
On 01/04/17 09:33, simran singhal wrote: > Check for attribute_group structures that are only stored in the > attrs filed of iio_info structure. As the attrs field of iio_info > structures is constant, so these attribute_group structures can also be > declared constant. > Done using coccinelle: >

Re: [PATCH] iio: light: apds9960: constify attribute_group structures

2017-04-01 Thread Jonathan Cameron
On 01/04/17 09:29, simran singhal wrote: > Check for attribute_group structures that are only stored in the > attrs filed of iio_info structure. As the attrs field of iio_info > structures is constant, so these attribute_group structures can also be > declared constant. > Done using coccinelle: >

Re: [PATCH] iio: humidity: hdc100x: constify attribute_group structures

2017-04-01 Thread Jonathan Cameron
On 01/04/17 09:23, simran singhal wrote: > Check for attribute_group structures that are only stored in the > attrs filed of iio_info structure. As the attrs field of iio_info > structures is constant, so these attribute_group structures can also be > declared constant. > Done using coccinelle: >

Re: [PATCH] iio: adc: hx711: constify attribute_group structures

2017-04-01 Thread Jonathan Cameron
On 01/04/17 09:17, simran singhal wrote: > Check for attribute_group structures that are only stored in the > attrs filed of iio_info structure. As the attrs field of iio_info > structures is constant, so these attribute_group structures can also be > declared constant. > Done using coccinelle: >

Re: [PATCH RFC] remove custom Michael MIC implementation

2017-04-01 Thread Tobin C. Harding
On Fri, Mar 31, 2017 at 12:42:22PM +0200, Wolfram Sang wrote: > Hi, > > > The card I have is a Spectec FCC ID: S2Y-WLAN-11B-G which I believe is > > a SDW-823 and should use the ks7010 driver. > > Sorry, likely not. It is an early SDW-821 and has a MediaTek chipset for > which no driver is known:

Re: [PATCH] staging: iio: light: constify attribute_group structures

2017-04-01 Thread Jonathan Cameron
On 01/04/17 03:28, simran singhal wrote: > As the event_attrs field of iio_info structures is constant, so these > attribute_group structures can also be declared constant. > > File size before: >text data bss dec hex filename > 15064 1528 0 1659240d

[PATCH 0/9] drm: rockchip: Fix rockchip drm unbind crash error

2017-04-01 Thread Jeffy Chen
Verified on rk3399 chromebook kevin: 1/ stop ui && pkill -9 frecon 2/ unbind/bind drm Jeffy Chen (9): drm: bridge: analogix: Detach panel when unbinding analogix dp drm: bridge: analogix: Unregister dp aux when unbinding drm: bridge: analogix: Destroy connector when unbinding drm/rockchi

[PATCH 1/9] drm: bridge: analogix: Detach panel when unbinding analogix dp

2017-04-01 Thread Jeffy Chen
The panel is attached when binding analogix dp. Signed-off-by: Jeffy Chen --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index e

[PATCH 3/9] drm: bridge: analogix: Destroy connector when unbinding

2017-04-01 Thread Jeffy Chen
Normally we do this in drm_mode_config_cleanup. But analogix dp's connector is allocated when binding, and would be freed after unbind. So we need to destroy it when unbinding, to avoid further access. Signed-off-by: Jeffy Chen --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 1 + 1 fi

Re: [GIT PULL 0/9] perf/core improvements and fixes

2017-04-01 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 3906a13a6b4e78fbc0def03a808f091f0dff1b44: > > Merge tag 'perf-core-for-mingo-4.12-20170327' of > git

[PATCH 5/9] drm/rockchip: vop: Enable pm domain when resetting vop

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 31 +++-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 76c79ac..1d85319 100644 -

[PATCH 2/9] drm: bridge: analogix: Unregister dp aux when unbinding

2017-04-01 Thread Jeffy Chen
The dp aux is registered when binding analogix dp. Signed-off-by: Jeffy Chen --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index

[PATCH 4/9] drm/rockchip: cdn-dp: Don't try to release firmware when not loaded

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index fd79a70..a97f3f4 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.c

[PATCH 6/9] drm/rockchip: Reoder unload sequence

2017-04-01 Thread Jeffy Chen
We should don't cleanup iommu before cleanup other resources. Reorder unload sequence, follow exynos drm. Signed-off-by: Jeffy Chen --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv

[PATCH 7/9] drm/rockchip: Force disable all crtc when unload

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c index a5d83cb..5dbf011 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c

[PATCH 8/9] drm/rockchip: gem: Don't alloc/free gem buf before drm dev registered

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c index df9e570..19679b2 100644 --- a/drivers/gpu/drm/rockchip/rockchip_d

[PATCH 9/9] drm/rockchip: cdn-dp: Don't unregister audio dev when unbinding

2017-04-01 Thread Jeffy Chen
In current sound framework, there's no way to unbind dai link after unregister codec. So don't unregister the codec when unbinding for now. Signed-off-by: Jeffy Chen --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu

Re: [PATCH v5 1/2] Documentation: dt-bindings: Document bindings for Aspeed ADC

2017-04-01 Thread Jonathan Cameron
On 29/03/17 03:33, Joel Stanley wrote: > On Wed, Mar 29, 2017 at 8:22 AM, Rick Altherr wrote: >> Signed-off-by: Rick Altherr >> --- > > Acked-by: Joel Stanley I can't see why Rob would mind any of the changes made since he Acked this (and having acked it I doubt he is looking at newer versions!

Re: [PATCH v5 2/2] iio: Aspeed ADC

2017-04-01 Thread Jonathan Cameron
On 28/03/17 22:52, Rick Altherr wrote: > Aspeed BMC SoCs include a 16 channel, 10-bit ADC. Low and high threshold > interrupts are supported by the hardware but are not currently implemented. > > Signed-off-by: Rick Altherr Two really trivial things inline. I'll fix them whilst applying rather th

Re: [PATCH v5 2/2] iio: Aspeed ADC

2017-04-01 Thread Jonathan Cameron
On 31/03/17 21:57, Xo Wang wrote: > On Tue, Mar 28, 2017 at 7:33 PM, Joel Stanley wrote: >> On Wed, Mar 29, 2017 at 8:22 AM, Rick Altherr wrote: >>> Aspeed BMC SoCs include a 16 channel, 10-bit ADC. Low and high threshold >>> interrupts are supported by the hardware but are not currently implemen

[PATCH 0/3, resend] Fix sp5100_tco watchdog driver regression

2017-04-01 Thread Zoltan Boszormenyi
My name with Hungarian accented characters from the Signed-off-by line is also used in cc: by git send-email but it gets rejected by mailer damons. Why only patch 2/3 was rejected is a mystery. Resending with my name in 7-bit ASCII. Three drivers are accessing the same I/O ports (0xcd6 / 0xcd7) o

[PATCH 3/3] watchdog: sp5100_tco: Synchronize I/O port accesses

2017-04-01 Thread Zoltan Boszormenyi
From: Böszörményi Zoltán Use the new header and the mutex from usb/host/pci-quirks.c This change will allow accesses to the SB800 I/O port pair synchronized with the PCI quirk when isochronous USB transfers are performed and with i2c-piix4. At the same time, remove the request_region() call to

[PATCH 1/3] usb: pci-quirks: Add a header for SB800 I/O ports and mutex for locking

2017-04-01 Thread Zoltan Boszormenyi
From: Böszörményi Zoltán This patch adds: * a mutex in the USB PCI quirks code for synchronizing access to the I/O ports on SB800 * a new header that contains symbols for the index and data I/O ports and wrappers for locking and unlocking the mutex. * locking around the I/O port access for SB

[PATCH V4 net-next 05/18] net: hns: bug fix of ethtool show the speed

2017-04-01 Thread Salil Mehta
From: Daode Huang When run ethtool ethX on hns driver, the speed will show as "Unknown". The base.speed is not correct assigned, this patch fix this bug. Signed-off-by: Daode Huang Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 2 +

[PATCH V4 net-next 04/18] net: hns: Remove redundant memset during buffer release

2017-04-01 Thread Salil Mehta
From: lipeng Because all members of desc_cb is assigned when xmit one package, so it can delete in hnae_free_buffer, as follows: - "dma, priv, length, type" are assigned in fill_v2_desc. - "page_offset, reuse_flag, buf" are not used in tx direction. Signed-off-by: lipeng Signed-

[PATCH V4 net-next 02/18] net: hns: Modify GMAC init TX threshold value

2017-04-01 Thread Salil Mehta
From: lipeng This patch reduces GMAC TX threshold value to avoid gmac hang-up with speed 100M/duplex half. Signed-off-by: lipeng Signed-off-by: JinchuanTian Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 6 ++ drivers/net/et

[PATCH V4 net-next 00/18] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-04-01 Thread Salil Mehta
This patch set introduces various HNS bug fixes, optimizations and code improvements. Daode Huang (1): net: hns: bug fix of ethtool show the speed Kejian Yan (7): net: hns: Remove the redundant adding and deleting mac function net: hns: Remove redundant mac_get_id() net: hns: Remove redun

[PATCH V4 net-next 08/18] net: hns: Replace netif_tx_lock to ring spin lock

2017-04-01 Thread Salil Mehta
From: lipeng netif_tx_lock is a global spin lock, it will take affect in all rings in the netdevice. In tx_poll_one process, it can only lock the current ring, in this case, we define a spin lock in hnae_ring struct for it. Signed-off-by: lipeng reviewed-by: Yisen Zhuang Signed-off-by: Salil M

[PATCH V4 net-next 16/18] net: hns: Adjust the SBM module buffer threshold

2017-04-01 Thread Salil Mehta
From: Kejian Yan HNS needs SMB Buffers to store at least two packets after sending pause frame because of the link delay. The MTU of HNS is 9728. As the processor user manual described, the SBM buffer threshold should be modified. Reported-by: Ping Zhang Signed-off-by: Kejian Yan Reviewed-by:

[PATCH V4 net-next 11/18] net: hns: Remove redundant mac_get_id()

2017-04-01 Thread Salil Mehta
From: Kejian Yan There is a mac_id in mac control block structure, so the callback function mac_get_id() is useless. Here we remove this function. Reported-by: Weiwei Deng Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hn

[PATCH V4 net-next 12/18] net: hns: Remove redundant mac table operations

2017-04-01 Thread Salil Mehta
From: Kejian Yan This patch removes redundant functions used only for debugging purposes. Reported-by: Weiwei Deng Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 160 - drivers/net/et

[PATCH V4 net-next 07/18] net: hns: Fix to adjust buf_size of ring according to mtu

2017-04-01 Thread Salil Mehta
From: lipeng Because buf_size of ring set to 2048, the process of rx_poll_one can reuse the page, therefore the performance of XGE can improve. But the chip only supports three bds in one package, so the max mtu is 6K when it sets to 2048. For better performane in litter mtu, we need change buf_s

[PATCH V4 net-next 18/18] net: hns: Some checkpatch.pl script & warning fixes

2017-04-01 Thread Salil Mehta
This patch fixes some checkpatch.pl script caught errors and warnings during the compilation time. Signed-off-by: Salil Mehta --- Change Log: Patch V3: Adressed the comment by Joe Perches * Link -> https://lkml.org/lkml/2017/3/31/538 --- drivers/net/ethernet/hisilicon/hns/hnae.h

[PATCH V4 net-next 14/18] net: hns: Optimise the code in hns_mdio_wait_ready()

2017-04-01 Thread Salil Mehta
From: Kejian Yan This patch fixes the code to clear pclint warning/info. Reported-by: Ping Zhang Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns_mdio.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff

[PATCH V4 net-next 17/18] net: hns: Avoid Hip06 chip TX packet line bug

2017-04-01 Thread Salil Mehta
From: lipeng There is a bug on Hip06 that tx ring interrupts packets count will be clear when drivers send data to tx ring, so that the tx packets count will never upgrade to packets line, and cause the interrupts engendered was delayed. Sometimes, it will cause sending performance lower than exp

[PATCH V4 net-next 10/18] net: hns: Remove the redundant adding and deleting mac function

2017-04-01 Thread Salil Mehta
From: Kejian Yan The functions (hns_dsaf_set_mac_mc_entry() and hns_mac_del_mac()) are not called by any functions. They are dead code in hns. And the same features are implemented by the patch (the id is 66355f5). Reported-by: Weiwei Deng Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta Si

[PATCH V4 net-next 15/18] net: hns: Simplify the exception sequence in hns_ppe_init()

2017-04-01 Thread Salil Mehta
From: Kejian Yan We need to free all ppe submodule if it fails to initialize ppe by any fault, so this patch will free all ppe resource before hns_ppe_init() returns exception situation Reported-by: JinchuanTian Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta Signed-off-by: Salil Mehta --

[PATCH V4 net-next 13/18] net: hns: Clean redundant code from hns_mdio.c file

2017-04-01 Thread Salil Mehta
From: Kejian Yan This patch cleans the redundant code from hns_mdio.c. Reported-by: Ping Zhang Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns_mdio.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/

[PATCH V4 net-next 09/18] net: hns: Correct HNS RSS key set function

2017-04-01 Thread Salil Mehta
From: lipeng This patch fixes below ethtool configuration error: localhost:~ # ethtool -X eth0 hkey XX:XX:XX... Cannot set Rx flow hash configuration: Operation not supported Signed-off-by: lipeng Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hn

[PATCH V4 net-next 06/18] net: hns: Optimize hns_nic_common_poll for better performance

2017-04-01 Thread Salil Mehta
From: lipeng After polling less than buget packages, we need check again. If there are still some packages, we call napi_schedule add softirq queue, this is not better way. So we return buget value instead of napi_schedule. Signed-off-by: lipeng reviewed-by: Yisen Zhuang Signed-off-by: Salil M

[PATCH 2/3] i2c: i2c-piix4: Synchronize I/O port accesses with the SB800 USB quirk

2017-04-01 Thread Zoltan Boszormenyi
Use the new header and the common mutex in the i2c-piix4 driver. At the same time, remove the request_region() call to reserve these I/O ports, so the sp5100_tco watchdog driver is fixed. The mutex is enough to protect the I/O port accesses. This is an old regression in Linux 4.4-rc4, caused by:

[PATCH V4 net-next 03/18] net: hns: Optimize the code for GMAC pad and crc Config

2017-04-01 Thread Salil Mehta
From: lipeng This patch optimises the init configuration code leg for gmac pad and crc set interface. Signed-off-by: lipeng Signed-off-by: JinchuanTian Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 36 ++ 1

[PATCH V4 net-next 01/18] net: hns: Fix the implementation of irq affinity function

2017-04-01 Thread Salil Mehta
From: lipeng This patch fixes the implementation of the IRQ affinity function. This function is used to create the cpu mask which eventually is used to initialize the cpu<->queue association for XPS(Transmit Packet Steering). Signed-off-by: lipeng Signed-off-by: Kejian Yan Reviewed-by: Yisen Z

Re: [PATCH 11/16] fpga: intel: fme: add partial reconfiguration sub feature support

2017-04-01 Thread Wu Hao
On Fri, Mar 31, 2017 at 02:10:12PM -0500, Alan Tull wrote: > On Thu, Mar 30, 2017 at 7:08 AM, Wu Hao wrote: > > From: Kang Luwei > > > > Partial Reconfiguration (PR) is the most important function for FME. It > > allows reconfiguration for given Port/Accelerated Function Unit (AFU). > > > > This

Re: [PATCH 01/16] docs: fpga: add a document for Intel FPGA driver overview

2017-04-01 Thread Wu Hao
On Fri, Mar 31, 2017 at 01:38:06PM -0500, Alan Tull wrote: > On Fri, Mar 31, 2017 at 1:24 PM, wrote: > > > > > > On Thu, 30 Mar 2017, Wu Hao wrote: > > > > > > Hi Wu Hao, > > > > Great documentation. I'm looking forward to diving into the rest of the > > patches. Please see my comments inline. >

[patch RT 2/4] rtmutex: Provide rt_mutex_lock_state()

2017-04-01 Thread Thomas Gleixner
Allow rtmutex to be locked with arbitrary states. Preparatory patch for the rt rwsem rework. Signed-off-by: Thomas Gleixner --- include/linux/rtmutex.h |1 + kernel/locking/rtmutex.c | 44 +--- 2 files changed, 26 insertions(+), 19 deletions(-) ---

[patch RT 0/4] rwsem/rt: Lift the single reader restriction

2017-04-01 Thread Thomas Gleixner
R/W semaphores in RT do not allow multiple readers because a writer blocking on the sempahore would have deal with all the readers in terms of priority or budget inheritance. While multi reader priority boosting would be possible (it has been attempted before), multi reader budget inheritance is im

[patch RT 4/4] rwsem/rt: Lift single reader restriction

2017-04-01 Thread Thomas Gleixner
The RT specific R/W semaphore implementation restricts the number of readers to one because a writer cannot block on multiple readers and inherit its priority or budget. The single reader restricting is painful in various ways: - Performance bottleneck for multi-threaded applications in the page

[patch RT 1/4] rtmutex: Make lock_killable work

2017-04-01 Thread Thomas Gleixner
Locking an rt mutex killable does not work because signal handling is restricted to TASK_INTERRUPTIBLE. Use signal_pending_state() unconditionaly. Cc: rt-sta...@vger.kernel.org Signed-off-by: Thomas Gleixner --- kernel/locking/rtmutex.c | 19 +++ 1 file changed, 7 insertions(+

[patch RT 3/4] rtmutex: Provide locked slowpath

2017-04-01 Thread Thomas Gleixner
The new rt rwsem implementation needs rtmutex::wait_lock to protect struct rw_semaphore. Dropping the lock and reaquiring it for locking the rtmutex would open a race window. Split out the inner workings of the locked slowpath so it can be called with wait_lock held. Signed-off-by: Thomas Gleixne

[PATCH v2 1/9] drm: bridge: analogix: Detach panel when unbinding analogix dp

2017-04-01 Thread Jeffy Chen
The panel is attached when binding analogix dp. Signed-off-by: Jeffy Chen --- Changes in v2: Fix some commit messages. drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/

[PATCH v2 6/9] drm/rockchip: Reoder unload sequence

2017-04-01 Thread Jeffy Chen
We should not cleanup iommu before cleanup other resources. Reorder unload sequence, follow exynos drm. Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockc

[PATCH v2 3/9] drm: bridge: analogix: Destroy connector when unbinding

2017-04-01 Thread Jeffy Chen
Normally we do this in drm_mode_config_cleanup. But analogix dp's connector is allocated in bind, and freed after unbind. So we need to destroy it in unbind to avoid further access. Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 1 + 1 fi

[PATCH v2 4/9] drm/rockchip: cdn-dp: Don't try to release firmware when not loaded

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index fd79a70..a97f3f4 100644 --- a/drivers/gpu/drm/ro

[PATCH v2 2/9] drm: bridge: analogix: Unregister dp aux when unbinding

2017-04-01 Thread Jeffy Chen
The dp aux is registered when binding analogix dp. Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/anal

[PATCH v2 0/9] drm: rockchip: Fix rockchip drm unbind crash error

2017-04-01 Thread Jeffy Chen
Verified on rk3399 chromebook kevin: 1/ stop ui && pkill -9 frecon 2/ unbind/bind drm Changes in v2: Fix some commit messages. Jeffy Chen (9): drm: bridge: analogix: Detach panel when unbinding analogix dp drm: bridge: analogix: Unregister dp aux when unbinding drm: bridge: analogix: Destr

[PATCH v2 5/9] drm/rockchip: vop: Enable pm domain when resetting vop

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 31 +++-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 76c7

[PATCH v2 8/9] drm/rockchip: gem: Don't alloc/free gem buf before drm dev registered

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c index df9e570..2bf8024 100644 --- a/drivers/gpu/dr

[PATCH v2 7/9] drm/rockchip: Force disable all crtc when unload

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c index a5d83cb..5dbf011 100644 --- a/drivers/gpu/drm/rockch

[PATCH v2 9/9] drm/rockchip: cdn-dp: Don't unregister audio dev when unbinding

2017-04-01 Thread Jeffy Chen
In current sound framework, there's no way to unbind dai link after unregister codec. So move unregister codec to driver remove for now. Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/gpu/drm/rockchip/cdn-dp-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -

Re: [PATCH 02/16] fpga: add FPGA device framework

2017-04-01 Thread Wu Hao
On Fri, Mar 31, 2017 at 04:10:09PM +0200, Greg KH wrote: > On Fri, Mar 31, 2017 at 09:31:09PM +0800, Wu Hao wrote: > > > On Thu, Mar 30, 2017 at 08:08:02PM +0800, Wu Hao wrote: > > > > +#include > > > > +#include > > > > +#include > > > > +#include > > > > + > > > > +static DEFINE_IDA(fpga_dev_

Your Assistance Needed Urgently

2017-04-01 Thread Youichi Kanno
My name is Youichi Kanno and I work in Audit & credit Supervisory role at The Norinchukin Bank,I am contacting you regarding the asset of a deceased client Mr. Grigor Kassan and I need your assistance to process the fund claims Of $18,100,000.00. kindly get back to me if interested. Yours sin

lening bieden

2017-04-01 Thread SAFETY NET CREDIT
Goede dag, Dit is vangnet krediet leningen aan te bieden. Vangnet CREDIT biedt flexibele en betaalbare leningen voor welk doel u te helpen uw doelen te bereiken. we lening tegen lage rente van 3%. Hier zijn enkele belangrijke kenmerken van de persoonlijke lening aangeboden door vangnet CRED

Re: [PATCH 02/16] fpga: add FPGA device framework

2017-04-01 Thread Wu Hao
On Fri, Mar 31, 2017 at 12:01:13PM -0700, matthew.gerl...@linux.intel.com wrote: > On Fri, 31 Mar 2017, Wu Hao wrote: > >On Fri, Mar 31, 2017 at 08:09:09AM +0200, Greg KH wrote: > >>On Thu, Mar 30, 2017 at 08:08:02PM +0800, Wu Hao wrote: > >>>During FPGA device (e.g PCI-based) discovery, platform d

Re: [PATCH 2/4] iio: dac: add support for stm32 DAC

2017-04-01 Thread Peter Meerwald-Stadler
On Fri, 31 Mar 2017, Fabrice Gasnier wrote: > Add support for STMicroelectronics STM32 DAC. It's a 12-bit, voltage > output digital-to-analog converter. It has two output channels, each > with its own converter. > It supports 8 bits or 12bits left/right aligned data format. Only > 12bits right-ali

Re: [PATCH v13 3/6] mmc: cavium: Add MMC PCI driver for ThunderX SOCs

2017-04-01 Thread Jan Glauber
e system] > > url: > https://github.com/0day-ci/linux/commits/Jan-Glauber/Cavium-MMC-driver/20170401-055302 > config: sparc64-allmodconfig (attached as .config) > compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 > reproduce: > wget > https://raw.githubu

Re: [PATCH] um: Fix PTRACE_POKEUSER on x86_64

2017-04-01 Thread Geert Uytterhoeven
Hi Richard, On Sat, Apr 1, 2017 at 12:41 AM, Richard Weinberger wrote: > This is broken since ever but sadly nobody noticed. > Recent versions of GDB set DR_CONTROL unconditionally and > UML dies due to a heap corruption. It turns out that > the PTRACE_POKEUSER was copy&pasted from i386 and assum

Re: [PATCH] ipv4: netfilter: Comparison to NULL could be written

2017-04-01 Thread Joe Perches
On Sat, 2017-04-01 at 14:05 +0530, Arushi Singhal wrote: > Fixed coding style for null comparisons to be more > consistant with the rest of the kernel coding style. typo: consistent and trivia: > diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c [] > @@ -653,7 +653,7

Re: [v6 PATCH 00/21] x86: Enable User-Mode Instruction Prevention

2017-04-01 Thread Stas Sergeev
30.03.2017 08:14, Ricardo Neri пишет: You know the wine's requirements now - they are very small. And dosemu doesn't need anything at all but smsw. And even smsw is very rare. But emulation is still needed for SMSW, right? Likely so. If you want, I can enable the logging of this command and see

  1   2   3   >