Re: [PATCH] lib: vsprintf: add printf format conversion %M for errno strings

2017-06-25 Thread Joe Perches
On Sun, 2017-06-25 at 21:53 +0200, Enrico Weigelt, metux IT consult wrote: > On 25.06.2017 19:27, Joe Perches wrote: > > > Every use of %M is going to cause gcc when using __printf to emit > > a warning like: > > > > unknown conversion type character ‘M’ in format [-Wformat=] > > Yeah, that's

Re: [PATCH v3 2/3] remoteproc/keystone: Add a remoteproc driver for Keystone 2 DSPs

2017-06-25 Thread Bjorn Andersson
On Tue 13 Jun 16:45 PDT 2017, Suman Anna wrote: > +static int keystone_rproc_start(struct rproc *rproc) > +{ > + struct keystone_rproc *ksproc = rproc->priv; > + int ret; > + > + INIT_WORK(>workqueue, handle_event); > + > + ret = request_irq(ksproc->irq_ring,

Re: [PATCH] staging: sm750fb: fix sparce warning.

2017-06-25 Thread Frans Klaver
On 25 June 2017 21:10:36 CEST, AbdAllah-MEZITI wrote: >This patch fixes the following sparce warnings: different lock contexts >for basic block. > >drivers/staging/sm750fb//sm750.c:159:13: warning: context imbalance in >'lynxfb_ops_fillrect' - different lock contexts for basic block

[PATCH] sata_via: Enable optional hotplug on VT6420

2017-06-25 Thread Ondrej Zary
VT6420 seems to have the same hotplug capability as VT6421. However, enabling hotplug needs to expose SCR registers which can cause problems. It works for me but might break elsewhere. So add a module parameter vt6420_hotplug to enable this feature. Signed-off-by: Ondrej Zary ---

Re: [PATCH] iio: dac: DS4424: add Maxim DS4422/DS4424 DAC driver support (fwd)

2017-06-25 Thread Julia Lawall
Both tests on lines 531-532 are the same. julia -- Forwarded message -- Date: Mon, 26 Jun 2017 04:19:55 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia Lawall Subject: Re: [PATCH] iio: dac: DS4424: add Maxim DS4422/DS4424 DAC driver support Hi Ismail, [auto

Re: [PATCH] sparc: kernel: apc: make of_device_ids const

2017-06-25 Thread David Miller
From: Arvind Yadav Date: Fri, 23 Jun 2017 14:51:35 +0530 > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Applied, thank you.

Re: [RFC PATCH 2/3] remoteproc: imx_rproc: add a NXP/Freescale imx rproc driver

2017-06-25 Thread Bjorn Andersson
On Wed 14 Jun 13:48 PDT 2017, Oleksij Rempel wrote: > From: Oleksij Rempel > > this driver was tested on NXP imx7d but should work on > imx6sx as well. > It will upload firmware to OCRAM, which shared memory between > Cortex A7 and Cortex M4, then turn M4 on. > This looks very generic, are

Re: [PATCH 10/17] irqchip: New RISC-V PLIC Driver

2017-06-25 Thread Palmer Dabbelt
On Wed, 07 Jun 2017 03:52:10 PDT (-0700), marc.zyng...@arm.com wrote: > Hi Palmer, > > On 07/06/17 00:00, Palmer Dabbelt wrote: >> This patch adds a driver for the Platform Level Interrupt Controller >> (PLIC) specified as part of the RISC-V supervisor level ISA manual. >> The PLIC connocts global

gcc 4.6.3 miscompile on ppc32 (was Re: Regression in kernel 4.12-rc1 for Powerpc 32 - bisected to commit 3448890c32c3)

2017-06-25 Thread Al Viro
On Sun, Jun 25, 2017 at 12:14:04PM +0100, Al Viro wrote: > On Sun, Jun 25, 2017 at 10:53:58AM +0100, Al Viro wrote: > > On Sat, Jun 24, 2017 at 12:29:23PM -0500, Larry Finger wrote: > > > > > I made a break through. If I turn off inline copy to/from users for 32-bit > > > ppc with the following

[PATCH v4 0/6] ARM: sunxi: Convert sun4i/sun7i series SoCs to sunxi-ng CCU

2017-06-25 Thread Priit Laes
Hi, This serie brings A10 (sun4i) and A20 (sun7i) SoCs into the sunxi-ng world. As mentioned in sun5i conversion, this is pretty much standard stuff as all the required clocks were already implemented in the sunxi-ng framework. Changes from v3: - Add support for fixed post-divider support for

[PATCH v4 4/6] dt-bindings: List devicetree binding for the CCU of Allwinner A10

2017-06-25 Thread Priit Laes
Allwinner A10 is now driven by sunxi-ng CCU driver. Add devicetree binding for it. Acked-by: Rob Herring Signed-off-by: Priit Laes --- Documentation/devicetree/bindings/clock/sunxi-ccu.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 1/6] clk: sunxi-ng: div: Add support for fixed post-divider

2017-06-25 Thread Priit Laes
SATA clock on sun4i/sun7i is of type (parent) / M / 6 where 6 is fixed post-divider. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/ccu_div.c | 12 ++-- drivers/clk/sunxi-ng/ccu_div.h | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git

[PATCH v4 6/6] ARM: sun4i: Convert to CCU

2017-06-25 Thread Priit Laes
Convert sun4i-a10.dtsi to new CCU driver. Tested on Gemei G9 tablet. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun4i-a10.dtsi | 643 +++- 1 file changed, 72 insertions(+), 571 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi

[PATCH v4 3/6] dt-bindings: List devicetree binding for the CCU of Allwinner A20

2017-06-25 Thread Priit Laes
Allwinner A20 is now driven by sunxi-ng CCU driver. Add devicetree binding for it. Acked-by: Rob Herring Signed-off-by: Priit Laes --- Documentation/devicetree/bindings/clock/sunxi-ccu.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-06-25 Thread Priit Laes
Introduce a clock controller driver for sun4i A10 and sun7i A20 series SoCs. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/Kconfig | 14 +- drivers/clk/sunxi-ng/Makefile |1 +- drivers/clk/sunxi-ng/ccu-sun4i-a10.c | 1446 ++-

[PATCH v4 5/6] ARM: sun7i: Convert to CCU

2017-06-25 Thread Priit Laes
Convert sun7i-a20.dtsi to new CCU driver. Tested on Cubietruck. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20.dtsi | 719 +++- 1 file changed, 84 insertions(+), 635 deletions(-) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi

Re: [PATCH][V2][target-devel-next] tcmu: make array tcmu_attrib_attrs static const

2017-06-25 Thread Nicholas A. Bellinger
On Tue, 2017-06-13 at 14:29 +0100, Colin King wrote: > From: Colin Ian King > > The array tcmu_attrib_attrs does not need to be in global scope, so make > it static. > > Cleans up sparse warning: > "symbol 'tcmu_attrib_attrs' was not declared. Should it be static?" > > Signed-off-by: Colin Ian

Re: [PATCH v4 1/4] [media] platform: Add Synopsys Designware HDMI RX PHY e405 Driver

2017-06-25 Thread Sylwester Nawrocki
Hi Jose, Thank you for addressing my review comments. Couple more suggestions below. On 06/20/2017 07:26 PM, Jose Abreu wrote: > This adds support for the Synopsys Designware HDMI RX PHY e405. This > phy receives and decodes HDMI video that is delivered to a controller. > +static int

Re: [PATCH v4 2/4] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-06-25 Thread Sylwester Nawrocki
On 06/20/2017 07:26 PM, Jose Abreu wrote: > This is an initial submission for the Synopsys Designware HDMI RX > Controller Driver. This driver interacts with a phy driver so that > a communication between them is created and a video pipeline is > configured. > Signed-off-by: Jose Abreu > Cc:

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

2017-06-25 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in arc_printk message Signed-off-by: Colin Ian King --- drivers/net/arcnet/capmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/arcnet/capmode.c b/drivers/net/arcnet/capmode.c index

Re: [PATCH] lib: vsprintf: add printf format conversion %M for errno strings

2017-06-25 Thread Enrico Weigelt, metux IT consult
On 25.06.2017 22:10, Joe Perches wrote: >> Yeah, that's still an open problem. Actually, I still haven't found out, >> how it's done w/ all the other kernel-internal conversions. > > Everything else uses "%p", hmm, but errno's aren't pointers. Isn't %p checked for pointer values ? >> Already

Re: [PATCH 4/4] remoteproc/davinci: streamline the interrupt management

2017-06-25 Thread Bjorn Andersson
On Thu 18 May 15:09 PDT 2017, Suman Anna wrote: > The davinci remoteproc driver is currently requesting its interrupt > that deals with the virtio kicks in probe, and that too before all > the associated variables used by the handler are initialized. This > is a lot in advance before the DSP

Re: [PATCH 0/4] Davinci remoteproc cleanups/fixes

2017-06-25 Thread Bjorn Andersson
On Thu 18 May 15:08 PDT 2017, Suman Anna wrote: > Hi Bjorn, > > The following series includes various fixes and cleanups for the TI's > Davinci DSP remoteproc driver. Patches are based on 4.12-rc1. Following > is the patch summary: > > - Patch1 updates/fixes the build dependency on DMA_CMA

Re: [PATCH] rpmsg: Release rpmsg devices in backends

2017-06-25 Thread Bjorn Andersson
On Fri 02 Jun 17:28 PDT 2017, Suman Anna wrote: > Hi Bjorn, > > On 06/02/2017 05:07 AM, Henri Roosen wrote: > > My suggestion would be to additionally change/fix > > rpmsg_register_device() so it will not overwrite the release callback. [..] > FWIW, I didn't run into any rpmsg device memory

[PATCH][-next] ath10k: fix a bunch of spelling mistakes in messages

2017-06-25 Thread Colin King
From: Colin Ian King Fix the following spelling mistakes in messages: syncronise -> synchronize unusally -> unusually addrress -> address inverval -> interval Signed-off-by: Colin Ian King --- drivers/net/wireless/ath/ath10k/mac.c | 2 +- drivers/net/wireless/ath/ath10k/pci.c

Re: [PATCH 3/4] btrfs: Add zstd support

2017-06-25 Thread Adam Borowski
On Mon, Jun 26, 2017 at 03:03:17AM +0800, kbuild test robot wrote: > Hi Nick, > > url: > https://github.com/0day-ci/linux/commits/Nick-Terrell/lib-Add-xxhash-module/20170625-214344 > config: i386-allmodconfig (attached as .config) > compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20

Re: [PATCH] iio: dac: DS4424: add Maxim DS4422/DS4424 DAC driver support

2017-06-25 Thread Peter Meerwald-Stadler
> Add iio driver for DS4422/DS4424 chips that support two/four channel 7-bit > Sink/Source Current DAC. minor comments below, on top of Jonathan's > The driver supports device tree and platfrom files for the configurations. platform > Datasheet publicly available at: >

Re: [PATCH] rpmsg: virtio_rpmsg_bus: fix announce for devices without endpoint

2017-06-25 Thread Bjorn Andersson
On Fri 02 Jun 04:35 PDT 2017, Henri Roosen wrote: > A device might not have an endpoint assigned. This patch checks if > rpdev->ept has a value before dereferencing or using it. > Applied, thanks. > Signed-off-by: Henri Roosen > --- > drivers/rpmsg/virtio_rpmsg_bus.c | 4 ++-- > 1 file

Re: [PATCH] rpmsg: cleanup incorrect function in dev_err message

2017-06-25 Thread Bjorn Andersson
On Fri 02 Jun 04:36 PDT 2017, Henri Roosen wrote: > Trivial cleanup for incorrect function in dev_err message > > Signed-off-by: Henri Roosen Applied, thanks > --- > drivers/rpmsg/rpmsg_char.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

[PATCH] staging: sm750fb: always take the lock

2017-06-25 Thread AbdAllah-MEZITI
Signed-off-by: AbdAllah MEZITI --- drivers/staging/sm750fb/sm750.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 386d4ad..4a22190 100644 --- a/drivers/staging/sm750fb/sm750.c +++

Re: [PATCH] rpmsg: virtio_rpmsg_bus: fix nameservice address

2017-06-25 Thread Bjorn Andersson
On Fri 02 Jun 04:36 PDT 2017, Henri Roosen wrote: > Commit 2a48d7322dc8 ("rpmsg: rpmsg_send() operations takes rpmsg_endpoint") > only changed the nameservice address for virtio_rpmsg_announce_create() but > did not do the same change for virtio_rpmsg_announce_destroy(). > > Signed-off-by: Henri

RFC: abstraction for RPC'ish hardware drivers ? mailbox ? netif ?

2017-06-25 Thread Enrico Weigelt, metux IT consult
Hi folks, I'm currently implementing drivers for an industrial backplane, (*1) which uses some kind of rpc / command-response mechanism. There're different variants, eg. some proprietary serial interface, USB link, pci cards, etc. On top of that there's a block-based command- response mechanism

Re: [PATCH] rpmsg: virtio_rpmsg_bus: cleanup multiple assignment to ops

2017-06-25 Thread Bjorn Andersson
On Fri 02 Jun 04:36 PDT 2017, Henri Roosen wrote: > Trivial cleanup: the .ops pointer is assigned twice. This patch removes the > first assignment. > > Signed-off-by: Henri Roosen Applied, thanks > --- > drivers/rpmsg/virtio_rpmsg_bus.c | 3 --- > 1 file changed, 3 deletions(-) > > diff

Re: gcc 4.6.3 miscompile on ppc32 (was Re: Regression in kernel 4.12-rc1 for Powerpc 32 - bisected to commit 3448890c32c3)

2017-06-25 Thread Segher Boessenkool
On Sun, Jun 25, 2017 at 09:53:24PM +0100, Al Viro wrote: > Confirmed. It manages to bugger the loop immediately after the (successful) > copying of iovec array in rw_copy_check_uvector(); both with and without > INLINE_COPY_FROM_USER it has (just before the call of copy_from_user()) r27 > set to

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

2017-06-25 Thread Bjorn Andersson
On Fri 02 Jun 04:35 PDT 2017, Henri Roosen wrote: > A device might not have an ops structure registered. This > patch fixes a null-prt dereference by checking ops before dereferencing > it. > In what scenario do you end up with a rpdev without ops defined? You need at least create_ept defined

[PATCH net-next v2 3/5] net: add netlink_ext_ack argument to rtnl_link_ops.validate

2017-06-25 Thread Matthias Schiffer
Add support for extended error reporting. Signed-off-by: Matthias Schiffer --- drivers/net/bonding/bond_netlink.c | 3 ++- drivers/net/can/dev.c | 3 ++- drivers/net/dummy.c| 3 ++- drivers/net/geneve.c | 3 ++- drivers/net/gtp.c | 3

[PATCH net-next v2 0/5] net: add netlink_ext_ack support to rtnl_link_ops

2017-06-25 Thread Matthias Schiffer
Same changes as http://patchwork.ozlabs.org/patch/780351/ , split into separate patches for each rtnl_link_ops field as requested. Matthias Schiffer (5): net: add netlink_ext_ack argument to rtnl_link_ops.newlink net: add netlink_ext_ack argument to rtnl_link_ops.changelink net: add

[PATCH net-next v2 2/5] net: add netlink_ext_ack argument to rtnl_link_ops.changelink

2017-06-25 Thread Matthias Schiffer
Add support for extended error reporting. Signed-off-by: Matthias Schiffer --- drivers/infiniband/ulp/ipoib/ipoib_netlink.c | 7 --- drivers/net/bonding/bond_netlink.c | 7 --- drivers/net/caif/caif_hsi.c | 3 ++- drivers/net/can/dev.c|

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

2017-06-25 Thread Matthias Schiffer
Add support for extended error reporting. Signed-off-by: Matthias Schiffer --- drivers/net/bonding/bond_netlink.c | 3 ++- include/net/rtnetlink.h| 3 ++- net/bridge/br_netlink.c| 3 ++- net/core/rtnetlink.c | 3 ++- 4 files changed, 8 insertions(+), 4

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

2017-06-25 Thread Matthias Schiffer
Add support for extended error reporting. Signed-off-by: Matthias Schiffer --- include/net/rtnetlink.h | 3 ++- net/core/rtnetlink.c| 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index baf99e173dca..abe6b733d473

[PATCH net-next v2 1/5] net: add netlink_ext_ack argument to rtnl_link_ops.newlink

2017-06-25 Thread Matthias Schiffer
Add support for extended error reporting. Signed-off-by: Matthias Schiffer --- drivers/infiniband/ulp/ipoib/ipoib_netlink.c | 3 ++- drivers/net/bonding/bond_netlink.c | 3 ++- drivers/net/caif/caif_hsi.c | 3 ++- drivers/net/can/dev.c| 3 ++-

[PATCH] batman-adv: fix spelling mistake "ourselve" -> "ourself"

2017-06-25 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in batadv_dbg debug message Signed-off-by: Colin Ian King --- net/batman-adv/bat_v_ogm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/bat_v_ogm.c b/net/batman-adv/bat_v_ogm.c index

Re: [linux-sunxi] [PATCH v4 1/6] clk: sunxi-ng: div: Add support for fixed post-divider

2017-06-25 Thread Jonathan Liu
Hi Priit, This is showing from clock rate of 171428572 in the output of "cat /sys/kernel/debug/clk/clk_summary" for pll-periph-sata. The clock rate should be 1 (100 MHz) when read from the hardware. On 26 June 2017 at 06:45, Priit Laes wrote: > SATA clock on sun4i/sun7i is of type

[PATCH] rpmsg: Don't overwrite release op of rpdev

2017-06-25 Thread Bjorn Andersson
b0b03b811963 ("rpmsg: Release rpmsg devices in backends") attempted to correct the ownership of freeing rpmsg device memory. But the patch is not complete, in that the rpmsg core will overwrite the release op as the device is being registered. Fixes: b0b03b811963 ("rpmsg: Release rpmsg devices in

Re: [PATCH] ata: ftide010: fix resource printing

2017-06-25 Thread Linus Walleij
On Thu, Jun 22, 2017 at 12:00 AM, Arnd Bergmann wrote: > The new driver uses an incorrect format string for resource_size_t: > > drivers/ata/pata_ftide010.c: In function 'pata_ftide010_probe': > drivers/ata/pata_ftide010.c:520:17: warning: format '%x' expects argument of > type 'unsigned int',

Re: [PATCH] MAINTAINERS: Add Qualcomm pinctrl drivers section

2017-06-25 Thread Linus Walleij
On Wed, Jun 21, 2017 at 7:25 AM, Bjorn Andersson wrote: > Document the maintainership of the Qualcomm pinctrl drivers to improve the > hitrate. > > Signed-off-by: Bjorn Andersson Patch applied. Thanks! Yours, Linus Walleij

Re: [PATCH v2 1/2] DT: pinctrl: Add binding documentation for Spreadtrum pin controller

2017-06-25 Thread Linus Walleij
On Wed, Jun 21, 2017 at 10:10 AM, Baolin Wang wrote: > On 20 June 2017 at 17:31, Linus Walleij wrote: >> On Tue, Jun 13, 2017 at 5:15 AM, Baolin Wang >> wrote: >> >>> I forgot one most important reason why we can not use the "sleep" state. As >>> I explained >>> above, the sleep related

Re: gcc 4.6.3 miscompile on ppc32 (was Re: Regression in kernel 4.12-rc1 for Powerpc 32 - bisected to commit 3448890c32c3)

2017-06-25 Thread Al Viro
On Sun, Jun 25, 2017 at 04:44:09PM -0500, Segher Boessenkool wrote: > Do you have a short stand-alone testcase? 4.6 is ancient, of course, but > the actual problem may still exist in more recent compilers (if it _is_ > a compiler problem; if it's not, you *really* want to know :-) ) Enjoy. At

Directly accessing serial ports from drivers w/o TTYs ?

2017-06-25 Thread Enrico Weigelt, metux IT consult
Hi folks, is there already a way for accessing serial ports from drivers, w/o having to go through the TTY subsystem ? Serdev seems provide a connection between arbitrary TTYs to device drivers. But this implies always having a TTY for each UART (even if it's never used outside the kernel). Is

Re: [PATCH] lib: vsprintf: add printf format conversion %M for errno strings

2017-06-25 Thread Randy Dunlap
On 06/25/2017 02:18 PM, Enrico Weigelt, metux IT consult wrote: > On 25.06.2017 22:10, Joe Perches wrote: > >>> Yeah, that's still an open problem. Actually, I still haven't found out, >>> how it's done w/ all the other kernel-internal conversions. >> >> Everything else uses "%p", > > hmm, but

Re: [PATCH] net/icmp: restore source address if packet is NATed

2017-06-25 Thread Jason A. Donenfeld
Hi David, On Sun, Jun 25, 2017 at 5:49 PM, David Miller wrote: > This violates things on so many levels. Yes, indeed. > I think this kind of thing need to be hidden inside of netfilter, > it can do the rate limiting and stuff like that in the spot > where it makes the transformation and knows

Re: [RFC v3 02/23] powerpc: introduce set_hidx_slot helper

2017-06-25 Thread Balbir Singh
On Wed, 2017-06-21 at 18:39 -0700, Ram Pai wrote: > Introduce set_hidx_slot() which sets the (H_PAGE_F_SECOND|H_PAGE_F_GIX) > bits at the appropriate location in the PTE of 4K PTE. In the > case of 64K PTE, it sets the bits in the second part of the PTE. Though > the implementation for

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

2017-06-25 Thread Nicholas A. Bellinger
Hi Andrea & Robert, (Adding HCH CC') On Fri, 2017-06-23 at 00:37 +0200, Andrea Righi wrote: > On Wed, Jun 21, 2017 at 10:33:45AM -0600, Robert LeBlanc wrote: > > On Wed, Jun 21, 2017 at 9:17 AM, Robert LeBlanc > > wrote: > > > On Tue, Jun 20, 2017 at 12:54 PM, Robert LeBlanc > > > wrote: > >

linux-next: build warning after merge of the cifs tree

2017-06-25 Thread Stephen Rothwell
Hi all, After merging the cifs tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from include/linux/kernel.h:13:0, from include/linux/list.h:8, from include/linux/wait.h:6, from include/linux/fs.h:5,

Re: [PATCH v6 05/21] net-next: stmmac: Add dwmac-sun8i

2017-06-25 Thread André Przywara
On 31/05/17 08:18, Corentin Labbe wrote: > The dwmac-sun8i is a heavy hacked version of stmmac hardware by > allwinner. > In fact the only common part is the descriptor management and the first > register function. Hi, I know I am a bit late with this, but while adapting the U-Boot driver to the

Re: [PATCH] lib: vsprintf: add printf format conversion %M for errno strings

2017-06-25 Thread Enrico Weigelt, metux IT consult
On 26.06.2017 00:47, Randy Dunlap wrote: > but why not just do that in userspace. Patch up syslogd (which one, actually?) to decode all the dozens of different cases that print out errno values ? Applying your argument more consequently - why do we have human-readable messages at all, instead

[PATCH v3 0/5] i2c: pca-platform: updates

2017-06-25 Thread Chris Packham
We're using a PCA9564 on an embedded platform to provide an i2c controller. This adds devicetree support and I've included some cleanups for the driver while I was at it. Chris Packham (5): dt-bindings: add bindings for i2c-pca-platform i2c: pca-platform: switch to struct gpio_desc i2c:

[PATCH v3 3/5] i2c: pca-platform: add devicetree awareness

2017-06-25 Thread Chris Packham
Allow devices that use this driver to be registered via a devicetree. Signed-off-by: Chris Packham --- Changes in v2: - Set i2c->adap.dev.of_node so that child nodes are automatically probed - Split dt-binding to separate patch, use "reset-gpios" instead of "gpios". Changes in v3: - None

[PATCH v3 1/5] dt-bindings: add bindings for i2c-pca-platform

2017-06-25 Thread Chris Packham
Signed-off-by: Chris Packham --- Changes in v2: - Split dt-binding to separate patch, use "reset-gpios" instead of "gpios". Changes in v3: - State the gpio is active low - Add example .../devicetree/bindings/i2c/i2c-pca-platform.txt | 29 ++ 1 file changed, 29

[PATCH v3 4/5] i2c: pca-platform: use device managed allocations

2017-06-25 Thread Chris Packham
Switch to using the devm_ APIs and remove the now unnecessary error handling and most of the device removal code. Signed-off-by: Chris Packham --- drivers/i2c/busses/i2c-pca-platform.c | 53 +++ 1 file changed, 10 insertions(+), 43 deletions(-) diff --git

[PATCH v3 2/5] i2c: pca-platform: switch to struct gpio_desc

2017-06-25 Thread Chris Packham
Make use of struct gpio_desc which allows us to specify the active state of the reset pin. Signed-off-by: Chris Packham --- Changes in v3: - New, replaces "i2c: pca-platform: use gpio_is_valid" - Using struct gpio_desc is required to make the flags stick. Because those flags now correctly

[PATCH v3 5/5] i2c: pca-platform: use dev_warn/dev_info instead of printk

2017-06-25 Thread Chris Packham
Signed-off-by: Chris Packham --- drivers/i2c/busses/i2c-pca-platform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-pca-platform.c b/drivers/i2c/busses/i2c-pca-platform.c index 7db481cbf402..395eca0cbb1f 100644 ---

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

2017-06-25 Thread Stephen Rothwell
Hi Bjorn, Today's linux-next merge of the pci tree got a conflict in: drivers/gpu/drm/radeon/radeon_device.c between commit: 4eb59793cca0 ("drm/radeon: add a PX quirk for another K53TK variant") from Linus' tree and commit: 22c21de73087 ("drm/radeon: make MacBook Pro d3_delay quirk

Re: [PATCH v2] arm64: kvm: route synchronous external abort exceptions to el2

2017-06-25 Thread kbuild test robot
Hi Dongjiu, [auto build test ERROR on kvm/linux-next] [also build test ERROR on v4.12-rc6 next-20170623] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

linux-next: build failure after merge of the i2c tree

2017-06-25 Thread Stephen Rothwell
Hi Wolfram, After merging the i2c tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/i2c/busses/i2c-zx2967.c: In function 'zx2967_i2c_writesb': drivers/i2c/busses/i2c-zx2967.c:87:2: error: implicit declaration of function 'writesb'

linux-next: manual merge of the jc_docs tree with the kbuild tree

2017-06-25 Thread Stephen Rothwell
Hi Jonathan, Today's linux-next merge of the jc_docs tree got a conflict in: scripts/kernel-doc-xml-ref between commit: cb77f0d623ff ("scripts: Switch to more portable Perl shebang") from the kbuild tree and commit: 52b3f239bb69 ("Docs: clean up some DocBook loose ends") from the

Re: [kernel-hardening] Re: [PATCH v4 06/13] iscsi: ensure RNG is seeded before use

2017-06-25 Thread Nicholas A. Bellinger
Hi Stephan, Lee & Jason, (Adding target-devel CC') Apologies for coming late to the discussion. Comments below. On Sun, 2017-06-18 at 10:04 +0200, Stephan Müller wrote: > Am Samstag, 17. Juni 2017, 05:45:57 CEST schrieb Lee Duncan: > > Hi Lee, > > > In your testing, how long might a process

Re: [PATCH v2 08/15] [media] cxd2880: Add top level of the driver

2017-06-25 Thread Mauro Carvalho Chehab
Em Sun, 25 Jun 2017 09:15:06 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 23 Jun 2017 10:02:39 -0300 > Mauro Carvalho Chehab escreveu: > > > Em Mon, 19 Jun 2017 16:56:13 +0900 > > "Takiguchi, Yasunari" escreveu: > > > > > >> +static int cxd2880_get_frontend_t(struct dvb_frontend *fe, >

Re: [PATCH NET V4 1/2] net: phy: Add phy loopback support in net phy framework

2017-06-25 Thread Yunsheng Lin
Hi, Andrew On 2017/6/24 21:44, Andrew Lunn wrote: >> @@ -1087,7 +1087,7 @@ int phy_suspend(struct phy_device *phydev) >> { >> struct phy_driver *phydrv = to_phy_driver(phydev->mdio.dev.driver); >> struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; >> -int ret = 0; >> +int

linux-next: manual merge of the v4l-dvb-next tree with the v4l-dvb-fixes tree

2017-06-25 Thread Stephen Rothwell
Hi Mauro, Today's linux-next merge of the v4l-dvb-next tree got conflicts in: Documentation/media/uapi/dvb/fe-diseqc-send-burst.rst Documentation/media/uapi/dvb/fe-set-tone.rst Documentation/media/uapi/dvb/fe-set-voltage.rst between commit: affd250dec17 ("[media] dvb uapi docs: enums

[PATCH NET V5 2/2] net: hns: Use phy_driver to setup Phy loopback

2017-06-25 Thread Lin Yun Sheng
Use function set_loopback in phy_driver to setup phy loopback when doing ethtool self test. Signed-off-by: Lin Yun Sheng --- drivers/net/ethernet/hisilicon/hns/hnae.h| 1 + drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 92 +++- 2 files changed, 26

[PATCH NET V5 1/2] net: phy: Add phy loopback support in net phy framework

2017-06-25 Thread Lin Yun Sheng
This patch add set_loopback in phy_driver, which is used by Mac driver to enable or disable a phy. it also add a generic genphy_loopback function, which use BMCR loopback bit to enable or disable a phy. Signed-off-by: Lin Yun Sheng --- drivers/net/phy/marvell.c| 1 +

[PATCH NET V5 0/2] Add loopback support in phy_driver and hns ethtool fix

2017-06-25 Thread Lin Yun Sheng
This Patch Set add set_loopback in phy_driver and use it to setup loopback when doing ethtool phy self_test. Patch V5: Removing non loopback related code change. Patch V4: 1. Remove c45 checking 2. Add -ENOTSUPP when function pointer is null, take mutex in

Linux 4.12-rc7

2017-06-25 Thread Linus Torvalds
It's been another week, and we have another -rc. It's fairly small, and there were no huge surprises, so if nothing untoward happens this upcoming week, this will be the final rc. But as usual, I reserve the right to just drag things out if I end up feeling uncomfortable about things for any

Re: [PATCH] net/icmp: restore source address if packet is NATed

2017-06-25 Thread David Miller
From: "Jason A. Donenfeld" Date: Mon, 26 Jun 2017 00:52:09 +0200 > On Sun, Jun 25, 2017 at 5:49 PM, David Miller wrote: >> You definitely can't just rewrite header fields here either. The >> SKB could be shared, for example. > > I was afraid of that. It's easy to rework this particular patch,

Re: [PATCH v13 05/14] ASoC: sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls.

2017-06-25 Thread Chen-Yu Tsai
On Sat, Jun 24, 2017 at 2:24 PM, Danny Milosavljevic wrote: > Since it's now possible to have a DAPM mixer control with multiple channels, > use it to cut down the total number of controls. > > Signed-off-by: Danny Milosavljevic > --- > sound/soc/sunxi/sun4i-codec.c | 27

Re: [PATCH 3/3] iio: adc: mt7622: Add compatible node for mt7622.

2017-06-25 Thread zhiyong tao
On Sat, 2017-06-24 at 21:02 +0100, Jonathan Cameron wrote: > On Thu, 22 Jun 2017 13:44:34 +0800 > Zhiyong Tao wrote: > > > This commit adds mt7622 compatible node. > > > > Signed-off-by: Zhiyong Tao > > --- > > drivers/iio/adc/mt6577_auxadc.c |1 + > > 1 file changed, 1 insertion(+) > >

[PATCH v2 00/22] Intel FPGA Device Drivers

2017-06-25 Thread Wu Hao
Hi All, Here is v2 patch-series adding drivers for Intel FPGA devices. The Intel FPGA driver provides interfaces for userspace applications to configure, enumerate, open, and access FPGA accelerators on platforms equipped with Intel(R) PCIe based FPGA solutions and enables system level

[PATCH v2 02/22] fpga: add FPGA device framework

2017-06-25 Thread Wu Hao
During FPGA device (e.g PCI-based) discovery, platform devices are registered for different FPGA function units. But the device node path isn't quite friendly to applications. Consider this case, applications want to access child device's sysfs file for some information. 1) Access using

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

2017-06-25 Thread Wu Hao
Add a document for Intel FPGA driver overview. Signed-off-by: Enno Luebbers Signed-off-by: Xiao Guangrong Signed-off-by: Wu Hao v2: added FME fpga-mgr/bridge/region platform driver to driver organization. updated open discussion per current implementation. fixed some typos. ---

[PATCH v2 05/22] fpga: mgr: add status for fpga-mgr

2017-06-25 Thread Wu Hao
This patch adds status to fpga-manager data structure, to allow driver to store full/partial reconfiguration errors and other status information. one sysfs interface created for user space application to read fpga-manager status. Signed-off-by: Wu Hao ---

[PATCH v2 12/22] fpga: intel: fme: add header sub feature support

2017-06-25 Thread Wu Hao
From: Kang Luwei The header register set is always present for FPGA Management Engine (FME), this patch implements init and uinit function for header sub feature and introduce several read-only sysfs interfaces for the capability and status. Sysfs interfaces: * /sys/class/fpga///ports_num

[PATCH v2 17/22] fpga: intel: add fpga region platform driver for FME

2017-06-25 Thread Wu Hao
This patch adds fpga region platform driver for Intel FPGA Management Engine. It register a fpga region with given fpga manager / bridge device. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao Signed-off-by: Christopher Rauer Signed-off-by: Wu Hao ---

[PATCH v2 16/22] fpga: intel: add fpga bridge platform driver for FME

2017-06-25 Thread Wu Hao
This patch adds fpga bridge platform driver for Intel FPGA Management Engine. It implements the enable_set call back for fpga bridge. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao Signed-off-by: Christopher Rauer Signed-off-by: Wu Hao ---

[PATCH v2 22/22] fpga: intel: afu: add FPGA_PORT_DMA_MAP/UNMAP ioctls support

2017-06-25 Thread Wu Hao
DMA memory regions are required for Accelerated Function Unit (AFU) usage. These two ioctls allow user space applications to map user memory regions for dma, and unmap them after use. Iova is returned from driver to user space application via FPGA_PORT_DMA_MAP ioctl. Application needs to unmap it

[PATCH v2 18/22] fpga: intel: add FPGA Accelerated Function Unit driver basic framework

2017-06-25 Thread Wu Hao
On Intel FPGA devices, the Accelerated Function Unit (AFU), can be reprogrammed for different functions. It connects to the FPGA infrastructure("blue bistream") via a Port. Port CSRs are implemented separately from the AFU CSRs to provide control and status of the Port. Once valid green bitstream

[PATCH v2 13/22] fpga: intel: fme: add FPGA_GET_API_VERSION/CHECK_EXTENSION ioctls support

2017-06-25 Thread Wu Hao
FPGA_GET_API_VERSION and FPGA_CHECK_EXTENSION ioctls are common ones which need to be supported by all feature devices drivers including FME and AFU. Userspace application can use these ioctl interfaces to get the API info and check if specific extension is supported or not in current driver.

[PATCH v2 19/22] fpga: intel: afu: add header sub feature support

2017-06-25 Thread Wu Hao
The header register set is always present for the Port/AFU, it is mainly for capability, control and status of the ports that AFU connected to. This patch implements header sub feature support. Below user interfaces are created by this patch. Sysfs interface: * /sys/class/fpga///id Read-only.

[PATCH v2 20/22] fpga: intel: afu add FPGA_GET_API_VERSION/CHECK_EXTENSION ioctls support

2017-06-25 Thread Wu Hao
FPGA_GET_API_VERSION and FPGA_CHECK_EXTENSION ioctls are common ones which need to be supported by all feature devices drivers including FME and AFU. This patch implements above 2 ioctls in Intel FPGA Accelerated Function Unit (AFU) driver. Signed-off-by: Tim Whisonant Signed-off-by: Enno

[PATCH v2 21/22] fpga: intel: afu: add user afu sub feature support

2017-06-25 Thread Wu Hao
From: Xiao Guangrong User Accelerated Function Unit sub feature exposes the MMIO region of the AFU. After valid green bitstream (GBS) is programmed and port is enabled, then this MMIO region could be accessed. This patch adds support to enumerate the AFU MMIO region and expose it to userspace

[PATCH v2 11/22] fpga: intel: add FPGA Management Engine driver basic framework

2017-06-25 Thread Wu Hao
From: Kang Luwei The FPGA Management Engine (FME) provides power, thermal management, performance counters, partial reconfiguration and other functions. For each function, it is packaged into a private feature linked to the FME feature device in the 'Device Feature List'. It's a platform device

[PATCH v2 14/22] fpga: intel: fme: add partial reconfiguration sub feature support

2017-06-25 Thread Wu Hao
From: Kang Luwei Partial Reconfiguration (PR) is the most important function for FME. It allows reconfiguration for given Port/Accelerated Function Unit (AFU). It creates platform devices for fpga-mgr, fpga-regions and fpga-bridges, and invokes fpga-region's interface (fpga_region_program_fpga)

[PATCH v2 09/22] fpga: intel: pcie: adds fpga_for_each_port callback for fme device

2017-06-25 Thread Wu Hao
For FPGA Management Engine (FME), it requires fpga_for_each_port callback for actions on ports, so export this function from PCIe driver by adding the callback to the platform data. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao Signed-off-by: Christopher

[PATCH v2 03/22] fpga: bridge: remove OF dependency for fpga-bridge

2017-06-25 Thread Wu Hao
This patch removes OF dependency of fpga-bridge, it allows drivers to use fpga-bridge class without device tree support. Signed-off-by: Wu Hao --- drivers/fpga/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index ed600d5..c1d8f41 100644

[PATCH v2 10/22] fpga: intel: add feature device infrastructure

2017-06-25 Thread Wu Hao
From: Xiao Guangrong This patch abstracts the common operations of the sub features, and defines the feature_ops data structure, including init, uinit and ioctl function pointers. And this patch adds some common helper functions for FME and AFU drivers, e.g feature_dev_use_begin/end which are

[PATCH v2 15/22] fpga: intel: add fpga manager platform driver for FME

2017-06-25 Thread Wu Hao
This patch adds fpga manager driver for Intel FPGA Management Engine(FME). It implements fpga_manager_ops for FPGA Partial Reconfiguration function. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao Signed-off-by: Christopher Rauer Signed-off-by: Kang Luwei

[PATCH v2 06/22] fpga: intel: add FPGA PCIe device driver

2017-06-25 Thread Wu Hao
From: Zhang Yi The Intel FPGA device appears as a PCIe device on the system. This patch implements the basic framework of the driver for Intel PCIe device which locates between CPU and Accelerated Function Units (AFUs). Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by:

[PATCH v2 08/22] fpga: intel: pcie: add chardev support for feature devices

2017-06-25 Thread Wu Hao
From: Xiao Guangrong For feature devices drivers, both the FPGA Management Engine (FME) and Accelerated Function Unit (AFU) driver need to expose user interfaces via the device file, for example, mmap and ioctls. This patch adds chardev support in the pcie driver for feature devices, FME and

[PATCH v2 07/22] fpga: intel: pcie: parse feature list and create platform device for features.

2017-06-25 Thread Wu Hao
From: Xiao Guangrong Device Feature List structure creates a link list of feature headers within the MMIO space to provide an extensible way of adding features. The Intel FPGA PCIe driver walks through the feature headers to enumerate feature devices, FPGA Management Engine (FME) and FPGA Port

[PATCH v2 04/22] fpga: mgr: add region_id to fpga_image_info

2017-06-25 Thread Wu Hao
This patch adds region_id to fpga_image_info data structure, it allows driver to pass region id information to fpga-mgr via fpga_image_info for fpga reconfiguration function. Signed-off-by: Wu Hao --- include/linux/fpga/fpga-mgr.h | 1 + 1 file changed, 1 insertion(+) diff --git

<    1   2   3   4   5   6   >