[PATCH v5] wlcore: spi: add wl18xx support

2016-07-16 Thread Reizer, Eyal
Add support for using with both wl12xx and wl18xx. - all wilink family needs special init command for entering wspi mode. extra clock cycles should be sent after the spi init command while the cs pin is high. - Use inverted chip select for sending a dummy 4 bytes command that completes the i

[PATCH] net: ti: cpmac: Use the correct function to free some resources.

2016-07-16 Thread Christophe JAILLET
In 'cpmac_open', 'dma_alloc_coherent' has been used to allocate some resources, so we need to free them using 'dma_free_coherent' instead of 'kfree'. Also, we don't need to free these resources if the allocation has failed. So I have slighly modified the goto label in this case. Signed-off-by: Ch

RE: [PATCH RESEND] iwlwifi, Do not implement thermal zone unless ucode is loaded

2016-07-16 Thread Grumbach, Emmanuel
> On 07/15/2016 07:25 AM, Stanislaw Gruszka wrote: > > On Thu, Jul 14, 2016 at 09:44:22AM +, Grumbach, Emmanuel wrote: > >>> If I understad correctly this error happen 100% of the time, not > >>> only during init. Hence seems there is an issue here, i.e. cur_ucode > >>> is not marked correctly

Re: [PATCH 0/6]NET:AX25:ROSE Adds device use count, adds trap to prevent kernel crash, plus other cleanup

2016-07-16 Thread David Miller
First, this is really a poorly formatted submission. All of this: Subject: [PATCH 0/6]NET:AX25:ROSE Adds device use count, adds trap to prevent kernel crash, plus other cleanup [PATCH 1/6]NET:AX25:ROSE Adds device use count for core of protocol. over a

Re: [PATCH] net/mlx5_core/health: Remove deprecated create_singlethread_workqueue

2016-07-16 Thread Leon Romanovsky
On Sat, Jul 16, 2016 at 01:29:20PM +0530, Bhaktipriya Shridhar wrote: > The workqueue health->wq was used as per device private health thread. > This was done so that system error handling could be processed > concurrently. Not exactly, AFAIK it was intended to perform delayed work and not relevan

Re: [PATCH net] net: cavium: liquidio: Avoid dma_unmap_single on uninitialized ndata

2016-07-16 Thread David Miller
From: Florian Fainelli Date: Fri, 15 Jul 2016 16:42:16 -0700 > The label lio_xmit_failed is used 3 times through liquidio_xmit() but it > always makes a call to dma_unmap_single() using potentially > uninitialized variables from "ndata" variable. Out of the 3 gotos, 2 run > after ndata has been i

Re: [PATCH net] net: nb8800: Fix SKB leak in nb8800_receive()

2016-07-16 Thread David Miller
From: Florian Fainelli Date: Fri, 15 Jul 2016 16:41:16 -0700 > In case nb8800_receive() fails to allocate a fragment, we would leak the > SKB freshly allocated and just return, instead, free it. > > Reported-by: coverity (CID 1341750) > Signed-off-by: Florian Fainelli Applied.

Re: [PATCH net] et131x: Fix logical vs bitwise check in et131x_tx_timeout()

2016-07-16 Thread David Miller
From: Florian Fainelli Date: Fri, 15 Jul 2016 16:40:22 -0700 > We should be using a logical check here instead of a bitwise operation > to check if the device is closed already in et131x_tx_timeout(). > > Reported-by: coverity (CID 146498) > Fixes: 38df6492eb511 ("et131x: Add PCIe gigabit ethern

Re: [PATCH net-next] bpf: bpf_event_entry_gen's alloc needs to be in atomic context

2016-07-16 Thread David Miller
From: Daniel Borkmann Date: Sat, 16 Jul 2016 01:15:55 +0200 > Should have been obvious, only called from bpf() syscall via map_update_elem() > that calls bpf_fd_array_map_update_elem() under RCU read lock and thus this > must also be in GFP_ATOMIC, of course. > > Fixes: 3b1efb196eee ("bpf, maps:

Re: [PATCH net-next] sctp: fix GSO for IPv6

2016-07-16 Thread David Miller
From: Marcelo Ricardo Leitner Date: Fri, 15 Jul 2016 16:40:02 -0300 > commit 90017accff61 ("sctp: Add GSO support") didn't register SCTP GSO > offloading for IPv6 and yet didn't put any restrictions on generating > GSO packets while in IPv6, which causes all IPv6 GSO'ed packets to be > silently d

Re: [PATCH net-next] sctp: recvmsg should be able to run even if sock is in closing state

2016-07-16 Thread David Miller
From: Marcelo Ricardo Leitner Date: Fri, 15 Jul 2016 16:38:19 -0300 > Commit d46e416c11c8 missed to update some other places which checked for > the socket being TCP-style AND Established state, as Closing state has > some overlapping with the previous understanding of Established. > > Without t

Re: [PATCH] net: usb: ax88172x: use phy_ethtool_{get|set}_link_ksettings

2016-07-16 Thread David Miller
From: Philippe Reynes Date: Fri, 15 Jul 2016 15:25:36 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH v1 0/3] Add Hisilicon MDIO bus driver and FEMAC driver

2016-07-16 Thread David Miller
From: Dongpo Li Date: Fri, 15 Jul 2016 16:26:32 +0800 > This patch set adds a Hisilicon MDIO bus driver and > a Fast Ethernet MAC(FEMAC) driver. > We also abstract a general interface "of_phy_get_and_connect" > for PHY connect. User will have no bother with getting > "phy-mode" and "phy-handle" a

Re: [PATCH] net: cpsw: make TI_CPSW_PHY_SEL invisible

2016-07-16 Thread David Miller
From: Uwe Kleine-König Date: Fri, 15 Jul 2016 10:12:15 +0200 > TI_CPSW_PHY_SEL depended on TI_CPSW and was selected by the latter. So > there is no reason to have this symbol visible. > > A further optimisation would be to put the code for both symbols into a > single module which would allow to

Re: [PATCH 2/2] wan/fsl_ucc_hdlc: rewrite error handling to make it clearer

2016-07-16 Thread David Miller
From: Zhao Qiang Date: Fri, 15 Jul 2016 10:38:25 +0800 > It was used err_xxx for labeled statement, it is > not easy to understand, now use free_xxx for labeled > statement. > > Signed-off-by: Zhao Qiang Applied.

Re: [PATCH 1/2] wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv'

2016-07-16 Thread David Miller
From: Zhao Qiang Date: Fri, 15 Jul 2016 10:38:24 +0800 > 'uhdlc_priv' has freed twice, drop the first one. > > Signed-off-by: Zhao Qiang Applied.

Re: [PATCH net-next v2] net: ipmr/ip6mr: add support for keeping an entry age

2016-07-16 Thread David Miller
From: Nikolay Aleksandrov Date: Thu, 14 Jul 2016 19:28:27 +0300 > In preparation for hardware offloading of ipmr/ip6mr we need an > interface that allows to check (and later update) the age of entries. > Relying on stats alone can show activity but not actual age of the entry, > furthermore when

Re: [PATCH net] vlan: use a valid default mtu value for vlan over macsec

2016-07-16 Thread David Miller
From: Paolo Abeni Date: Thu, 14 Jul 2016 18:00:10 +0200 > macsec can't cope with mtu frames which need vlan tag insertion, and > vlan device set the default mtu equal to the underlying dev's one. > By default vlan over macsec devices use invalid mtu, dropping > all the large packets. > This patch

Re: [PATCH] rndis_host: Set random MAC for ZTE MF910

2016-07-16 Thread David Miller
From: Bjørn Mork Date: Fri, 15 Jul 2016 19:42:28 +0200 > David Laight writes: >> From: Bjørn Mork >> Not only that, there certainly used to be manufacturers that used 'locally >> administered' addresses on all their cards (as well as those that used >> unallocated >> address blocks). > > Sure.

Re: [PATCH net-next 0/4] net: bridge: simplify receive path and consolidate forwarding paths

2016-07-16 Thread David Miller
From: Nikolay Aleksandrov Date: Thu, 14 Jul 2016 06:09:58 +0300 > This set tries to simplify the receive and forwarding paths. Patch 01 is > a trivial style adjustment, patch 02 removes one conditional from the > unicast fast path, patch 03 removes another conditional and more imporantly > remove

Re: [PATCH] dt: bindings: Add a generic ethernet device binding

2016-07-16 Thread David Miller
From: Hans de Goede Date: Sat, 16 Jul 2016 12:12:37 +0200 > Hi, > > On 15-07-16 19:51, David Miller wrote: >> From: Hans de Goede >> Date: Fri, 15 Jul 2016 08:40:00 +0200 >> >>> Hi, >>> >>> On 15-07-16 01:17, David Miller wrote: From: Hans de Goede Date: Wed, 13 Jul 2016 12:20:04 +02

[PATCH 2/2] net: ethernet: adi: bfin_mac: use phy_ethtool_{get|set}_link_ksettings

2016-07-16 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. There was a check on CAP_NET_ADMIN in bfin_mac_ethtool_setsettings, but this check is already done in dev_ethtool, so no need to repeat it before calling the g

[PATCH 1/2] net: ethernet: adi: bfin_mac: use phydev from struct net_device

2016-07-16 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet

Re: [PATCH] sctp: load transport header after sk_filter

2016-07-16 Thread Willem de Bruijn
> Do not cache pointers into the skb linear segment across sk_filter. > The function call can trigger pskb_expand_head. > > Signed-off-by: Willem de Bruijn This is targeted at net. I forgot to pass the right --subject-prefix='PATCH net'

[PATCH] sctp: load transport header after sk_filter

2016-07-16 Thread Willem de Bruijn
From: Willem de Bruijn Do not cache pointers into the skb linear segment across sk_filter. The function call can trigger pskb_expand_head. Signed-off-by: Willem de Bruijn --- No Fixes tag: existed at the start of git log. It is probably not necessary to store chunk->sctp_hdr at all, as chunk

Re: [PATCH v0 00/10] Convert Netgear WNR854T to devicetree

2016-07-16 Thread Andrew Lunn
> There's one major flaw; unicast traffic is never received on any port. > Broadcast traffic is received however, and on the correct port. Thus > an external machine can make an ARP request and get a response, for > example. With a manually-entered ARP entry, the router can send pings > out to a re

Re: [PATCH] dt: bindings: Add a generic ethernet device binding

2016-07-16 Thread Arnd Bergmann
On Saturday, July 16, 2016 12:18:40 PM CEST Hans de Goede wrote: > Hi, > > On 15-07-16 22:42, Arnd Bergmann wrote: > > On Wednesday, July 13, 2016 12:20:04 PM CEST Hans de Goede wrote: > >> +&mmc1 { > >> + non-removable; > >> + status = "okay"; > >> + > >> + sdio_wifi: sdio_wifi@

Re: [PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-16 Thread Arnd Bergmann
On Saturday, July 16, 2016 3:29:04 PM CEST Jamie Lentin wrote: > + > +#define WNR854T_PCI_SLOT0_OFFS 7 > +#define WNR854T_PCI_SLOT0_IRQ_PIN4 > + > +static void __init wnr854t_pci_preinit(void) > +{ > + int pin; > + > + /* > + * Configure PCI GPIO IRQ pins > + */ > +

iproute2 mpls max labels

2016-07-16 Thread Magnus Bergroth
Wanted to use more than the default maximum of 8 mpls labels. Max labels seems to be hardcode to 8 in two places. --- iproute2-4.6.0/lib/utils.c2016-05-18 20:56:02.0 +0200 +++ iproute2-4.6.0-bergroth/lib/utils.c2016-07-16 20:12:10.714958071 +0200 @@ -476,7 +476,7 @@ addr-

Re: [PATCH v0 03/10] arm: orion5x: Add clk support for mv88f5181

2016-07-16 Thread Sergei Shtylyov
Hello. On 7/16/2016 5:29 PM, Jamie Lentin wrote: Referring to values in the u-boot port, add support for the mv88f5181 Signed-off-by: Jamie Lentin [...] diff --git a/drivers/clk/mvebu/orion.c b/drivers/clk/mvebu/orion.c index fd12956..a6e5bee 100644 --- a/drivers/clk/mvebu/orion.c +++ b/dr

[net-next v2 6/6] cxgb3i,cxgb4i: fix symbol not declared sparse warning

2016-07-16 Thread Varun Prakash
Fix following sparse warnings warning: symbol 'cxgb3i_ofld_init' was not declared. Should it be static? warning: symbol 'cxgb4i_cplhandlers' was not declared. Should it be static? warning: symbol 'cxgb4i_ofld_init' was not declared. Should it be static? Signed-off-by: Varun Prakash Reviewed-by: S

[net-next v2 4/6] cxgb3i: add iSCSI DDP support

2016-07-16 Thread Varun Prakash
Add iSCSI DDP support in cxgb3i driver using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash Reviewed-by: Steve Wise --- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 119 - 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/cx

[net-next v2 5/6] libcxgb: export ppm release and tagmask set api

2016-07-16 Thread Varun Prakash
Export cxgbi_ppm_release() to release ppod manager and cxgbi_tagmask_set() to set tag mask, they are used by cxgb3i, cxgb4i and cxgbit. Signed-off-by: Varun Prakash Reviewed-by: Steve Wise --- drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c | 2 ++ drivers/scsi/cxgbi/cxgb3i/cxgb3i.c

[net-next v2 3/6] cxgb4i,libcxgbi: add iSCSI DDP support

2016-07-16 Thread Varun Prakash
Add iSCSI DDP support in cxgb4i driver using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash --- drivers/scsi/cxgbi/Makefile| 2 + drivers/scsi/cxgbi/cxgb3i/Kbuild | 1 + drivers/scsi/cxgbi/cxgb3i/Kconfig | 1 + drivers/scsi/cxgbi/cxgb4i/Kbuild | 1 + drivers

[net-next v2 0/6] common library for Chelsio drivers

2016-07-16 Thread Varun Prakash
Hi, This patch series adds common library module(libcxgb.ko) for Chelsio drivers to remove duplicate code. This series moves common iSCSI DDP Page Pod manager code from cxgb4.ko to libcxgb.ko, earlier this code was used by only cxgbit.ko now it is used by three Chelsio iSCSI drivers cxgb3i,

[net-next v2 1/6] libcxgb: add library module for Chelsio drivers

2016-07-16 Thread Varun Prakash
Add common library module(libcxgb.ko) for Chelsio drivers to remove duplicate code. Code for iSCSI DDP Page Pod Manager is moved from cxgb4.ko to libcxgb.ko. Earlier only cxgbit.ko was using this code, now cxgb3i and cxgb4i will also use common Page Pod manager code. In future this module will ha

[net-next v2 2/6] cxgb3i,cxgb4i,libcxgbi: remove iSCSI DDP support

2016-07-16 Thread Varun Prakash
Remove old ddp code from cxgb3i,cxgb4i,libcxgbi. Next two commits adds DDP support using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash --- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 128 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 142 - drivers/scsi/cxgbi/libcxgbi.c

Re;跨境电子商务物流供应商.为中小微企業提供出口退税和单证報關出口物流运输

2016-07-16 Thread Paul Tsang
Dear Sir/Miss This is the e-mail from Paul of HAOCHING INT'L LOGISTICS LTD in China. Our company is a well-staffed freight forwarding and logistics service company ,located in Shenzhen/Dongguan/Guangzhou/Zhongshan GuangDong Province china,and provide safety, convenient & speedy logistic servic

Re: [PATCH v0 09/10] net: phy: Re-attempt custom DT configuration after configuration

2016-07-16 Thread Andrew Lunn
On Sat, Jul 16, 2016 at 03:29:07PM +0100, Jamie Lentin wrote: > marvell,reg-init is generally used to apply a custom LED configuration > on boot. However this is then blatted in m88e1121_config_aneg when the > interface is brought up. Re-apply any custom configuration afterwards, > to keep custom L

Re: [PATCH v0 08/10] net: phy: Try looking for a phy-handle property to find the OF node

2016-07-16 Thread Andrew Lunn
On Sat, Jul 16, 2016 at 03:29:06PM +0100, Jamie Lentin wrote: > If PHY is registered via. a DSA switch, the MDIO bus the phy is on does > not exist in devicetree, but there may be a reference to the PHY node > on the physical MDIO bus to use. O.K, i see what you are trying to achieve, it makes sen

Re: [PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-16 Thread Andrew Lunn
> + pmx_reset_switch: pmx-reset-switch { > + marvell,pins = "mpp1"; > + marvell,function = "gpio"; > + }; Ah! I think i interpreted that wrong. This does not reset the Ethernet switch. It is actually a switch on the front to reset the whole box? How about calling i

Re: [PATCH v0 07/10] arm: orion5x: Remove old non-DT-based WNR854T support

2016-07-16 Thread Andrew Lunn
On Sat, Jul 16, 2016 at 03:29:05PM +0100, Jamie Lentin wrote: Again, you need a commit log. It could be something like: The setup file for the wnr854t has bit rotted to such an extent it no longer works. Replace it with a working device tree description. Andrew

Re: [PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-16 Thread Andrew Lunn
> + chosen { > + bootargs = "console=ttyS0,115200n8 earlyprintk"; > + linux,stdout-path = &uart0; > + }; You can put the board rate etc in the stdout-patch. Something like: stdout-path = "serial0:115200n8"; > + gpio-leds { > + compa

Re: [PATCH v0 05/10] arm: orion5x: Add DT include for mv88f5181

2016-07-16 Thread Andrew Lunn
On Sat, Jul 16, 2016 at 03:29:03PM +0100, Jamie Lentin wrote: You need to put somewhere here for the commit log. Otherwise this looks O.K. Andrew > Signed-off-by: Jamie Lentin > --- > .../bindings/arm/marvell/marvell,orion5x.txt | 1 + > arch/arm/boot/dts/orion5x-mv88f5181.dt

Re: [PATCH v0 04/10] arm: orion5x: Generalise mv88f5181l pinctrl support for 88f5181

2016-07-16 Thread Andrew Lunn
On Sat, Jul 16, 2016 at 03:29:02PM +0100, Jamie Lentin wrote: > As far as I'm aware the mv88f5181-b1 and mv88f5181l are the same at the > pinctrl level, so re-use the definitions for both. Good, you add a new compatibile string. So it if turns out they are not identical, we can fix it later withou

Re: [PATCH v0 03/10] arm: orion5x: Add clk support for mv88f5181

2016-07-16 Thread Andrew Lunn
On Sat, Jul 16, 2016 at 03:29:01PM +0100, Jamie Lentin wrote: > Referring to values in the u-boot port, add support for the mv88f5181 > > Signed-off-by: Jamie Lentin Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v0 02/10] arm: orion5x: Add documentation for SoC and board bindings

2016-07-16 Thread Andrew Lunn
On Sat, Jul 16, 2016 at 03:29:00PM +0100, Jamie Lentin wrote: > Copy the format for kirkwood/dove to orion5x > > Signed-off-by: Jamie Lentin Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v0 01/10] arm: orion5x: Add required properties for orion-wdt to DT node

2016-07-16 Thread Andrew Lunn
On Sat, Jul 16, 2016 at 03:28:59PM +0100, Jamie Lentin wrote: > orion-wdt refuses to start without these properties defined, so lift > definitions out of kirkwood/dove.dtsi > > Signed-off-by: Jamie Lentin Reviewed-by: Andrew Lunn Andrew > --- > arch/arm/boot/dts/orion5x.dtsi | 3 ++- >

Re: [net-next 3/6] cxgb4i,libcxgbi: add iSCSI DDP support

2016-07-16 Thread Varun Prakash
On Fri, Jul 15, 2016 at 07:43:10PM +0530, Steve Wise wrote: > > Add iSCSI DDP support in cxgb4i driver > > using common iSCSI DDP Page Pod Manager. > > > > Signed-off-by: Varun Prakash > > --- > > drivers/scsi/cxgbi/Makefile| 2 + > > drivers/scsi/cxgbi/cxgb3i/Kbuild | 1 + > > dri

Re: [net-next 2/6] cxgb3i,cxgb4i,libcxgbi: remove iSCSI DDP support

2016-07-16 Thread Varun Prakash
On Fri, Jul 15, 2016 at 07:35:32PM +0530, Steve Wise wrote: > > Remove old ddp code from cxgb3i,cxgb4i,libcxgbi. > > > > Next two commits adds DDP support using > > common iSCSI DDP Page Pod Manager. > > > > Signed-off-by: Varun Prakash > > --- > > drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 128 -

[PATCH v0 01/10] arm: orion5x: Add required properties for orion-wdt to DT node

2016-07-16 Thread Jamie Lentin
orion-wdt refuses to start without these properties defined, so lift definitions out of kirkwood/dove.dtsi Signed-off-by: Jamie Lentin --- arch/arm/boot/dts/orion5x.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/orion5x.dtsi b/arch/arm/boot/dts/orion

[PATCH v0 10/10] arm: orion5x: Configure Netgear WNR854T network port LEDs

2016-07-16 Thread Jamie Lentin
The default bootloader leaves the LEDs orange, and the 88E1121R driver applies it's own inappropriate configuration. Configure as per manual, i.e. orange = 100 / green = 1000 / blink = activity Signed-off-by: Jamie Lentin --- arch/arm/boot/dts/orion5x-netgear-wnr854t.dts | 45 +++

[PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-16 Thread Jamie Lentin
This is a router based on the mv88f5181 chipset. http://www.netgear.com/support/product/WNR854T.aspx http://wiki.openwrt.org/toh/netgear/wnr854t Signed-off-by: Jamie Lentin --- .../bindings/arm/marvell/marvell,orion5x.txt | 1 + arch/arm/boot/dts/Makefile | 1 +

[PATCH v0 04/10] arm: orion5x: Generalise mv88f5181l pinctrl support for 88f5181

2016-07-16 Thread Jamie Lentin
As far as I'm aware the mv88f5181-b1 and mv88f5181l are the same at the pinctrl level, so re-use the definitions for both. Signed-off-by: Jamie Lentin --- .../bindings/pinctrl/marvell,orion-pinctrl.txt | 4 ++-- drivers/pinctrl/mvebu/pinctrl-orion.c | 23 +++---

[PATCH v0 03/10] arm: orion5x: Add clk support for mv88f5181

2016-07-16 Thread Jamie Lentin
Referring to values in the u-boot port, add support for the mv88f5181 Signed-off-by: Jamie Lentin --- .../devicetree/bindings/clock/mvebu-core-clock.txt | 1 + drivers/clk/mvebu/orion.c | 70 ++ 2 files changed, 71 insertions(+) diff --git a/Documen

[PATCH v0 00/10] Convert Netgear WNR854T to devicetree

2016-07-16 Thread Jamie Lentin
This is an attempt to resurrect the mainline WNR854T support (I had no luck getting a non-DT kernel to boot). First 2 patches are trivial, the next 3 add DT bindings for the SoC, then the old board file is swapped out for DT. The final 3 patches configure the PHY leds as Netgear intended. There's

[PATCH v0 08/10] net: phy: Try looking for a phy-handle property to find the OF node

2016-07-16 Thread Jamie Lentin
If PHY is registered via. a DSA switch, the MDIO bus the phy is on does not exist in devicetree, but there may be a reference to the PHY node on the physical MDIO bus to use. Signed-off-by: Jamie Lentin --- drivers/net/phy/marvell.c | 22 -- 1 file changed, 16 insertions(+),

[PATCH v0 02/10] arm: orion5x: Add documentation for SoC and board bindings

2016-07-16 Thread Jamie Lentin
Copy the format for kirkwood/dove to orion5x Signed-off-by: Jamie Lentin --- .../bindings/arm/marvell/marvell,orion5x.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/marvell/marvell,orion5x.txt diff --git a/Docum

[PATCH v0 07/10] arm: orion5x: Remove old non-DT-based WNR854T support

2016-07-16 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- arch/arm/mach-orion5x/Makefile| 1 - arch/arm/mach-orion5x/wnr854t-setup.c | 185 -- 2 files changed, 186 deletions(-) delete mode 100644 arch/arm/mach-orion5x/wnr854t-setup.c diff --git a/arch/arm/mach-orion5x/Makefile b

[PATCH v0 09/10] net: phy: Re-attempt custom DT configuration after configuration

2016-07-16 Thread Jamie Lentin
marvell,reg-init is generally used to apply a custom LED configuration on boot. However this is then blatted in m88e1121_config_aneg when the interface is brought up. Re-apply any custom configuration afterwards, to keep custom LED configuration. Signed-off-by: Jamie Lentin --- drivers/net/phy/m

[PATCH v0 05/10] arm: orion5x: Add DT include for mv88f5181

2016-07-16 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- .../bindings/arm/marvell/marvell,orion5x.txt | 1 + arch/arm/boot/dts/orion5x-mv88f5181.dtsi | 35 ++ 2 files changed, 36 insertions(+) create mode 100644 arch/arm/boot/dts/orion5x-mv88f5181.dtsi diff --git a/Documentation/dev

Re: [PATCH v6 05/12] Add sample for adding simple drop program to link

2016-07-16 Thread Jamal Hadi Salim
On 16-07-11 09:37 AM, Jesper Dangaard Brouer wrote: On Mon, 11 Jul 2016 07:09:26 -0400 Jamal Hadi Salim wrote: $ perf record -a samples/bpf/xdp1 $( [..] So - devil's advocate speaking: I can filter and drop with this very specific NIC at 10x as fast in hardware, correct? After avoiding

Re: [RFC PATCH net-next 1/1] Introduce skbmod action

2016-07-16 Thread Jamal Hadi Salim
On 16-07-12 01:10 PM, Cong Wang wrote: On Mon, Jul 11, 2016 at 5:12 AM, Jamal Hadi Salim wrote: From: Jamal Hadi Salim This action is intended to be an upgrade from a usability perspective from pedit. Compare this: Definitely agree we need a more user-friendly interface. pedit is a good

[PATCH] net/sched/sch_htb: clamp xstats tokens to fit into 32-bit int

2016-07-16 Thread Konstantin Khlebnikov
In kernel HTB keeps tokens in signed 64-bit in nanoseconds. In netlink protocol these values are converted into pshed ticks (64ns for now) and truncated to 32-bit. In struct tc_htb_xstats fields "tokens" and "ctokens" are declared as unsigned 32-bit but they could be negative thus tool 'tc' prints

Re: [PATCH v5] wlcore: spi: add wl18xx support

2016-07-16 Thread Rob Herring
On Sun, Jul 10, 2016 at 08:32:40AM +, Reizer, Eyal wrote: > Add support for using with both wl12xx and wl18xx. > > - all wilink family needs special init command for entering wspi mode. > extra clock cycles should be sent after the spi init command while the > cs pin is high. > - Use inver

Re: [PATCH net] net: nb8800: Fix SKB leak in nb8800_receive()

2016-07-16 Thread Måns Rullgård
Florian Fainelli writes: > In case nb8800_receive() fails to allocate a fragment, we would leak the > SKB freshly allocated and just return, instead, free it. > > Reported-by: coverity (CID 1341750) > Signed-off-by: Florian Fainelli Acked-by: Mans Rullgard > --- > drivers/net/ethernet/aurora

Re: [PATCH] dt: bindings: Add a generic ethernet device binding

2016-07-16 Thread Hans de Goede
Hi, On 15-07-16 22:42, Arnd Bergmann wrote: On Wednesday, July 13, 2016 12:20:04 PM CEST Hans de Goede wrote: +&mmc1 { + non-removable; + status = "okay"; + + sdio_wifi: sdio_wifi@1 { + compatible = "generic,ethernet" + reg = <1>; + }; +}; F

Re: [PATCH] dt: bindings: Add a generic ethernet device binding

2016-07-16 Thread Hans de Goede
Hi, On 15-07-16 19:51, David Miller wrote: From: Hans de Goede Date: Fri, 15 Jul 2016 08:40:00 +0200 Hi, On 15-07-16 01:17, David Miller wrote: From: Hans de Goede Date: Wed, 13 Jul 2016 12:20:04 +0200 On some boards (android tablets) different batches use different sdio wifi modules. Th

[PATCH 6/6]NET:AX25:ROSE Removes a conditional return and corrects the return value.

2016-07-16 Thread Richard Stearn
Subject: [PATCH 6/6]NET:AX25:ROSE Removes a conditional return and corrects the return value. Removes a conditional return and corrects the return value. The ROSE header is always finished (as it is not dependant on daddr) so the test for daddr is not required. Return value fixed as positive add

[PATCH 1/1]NET:AX25:NETROM Corrects the returned added header length.

2016-07-16 Thread Richard Stearn
Subject: [PATCH 1/1]NET:AX25:NETROM Corrects the returned added header length. Corrects the returned added header length. Signed-off-by: Richard Stearn --- net/netrom/nr_dev.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/netrom/nr_dev.c b/net/netrom/nr_dev.c ind

[PATCH 2/6]NET:AX25:ROSE Add device use counting for ROSE neighbour lists

2016-07-16 Thread Richard Stearn
Subject: [PATCH 2/6]NET:AX25:ROSE Add device use counting for ROSE neighbour lists Adds device use counting for ROSE neighbour lists Signed-off-by: Richard Stearn --- net/rose/rose_route.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/net/rose/rose_rout

[PATCH 5/6]NET:AX25:ROSE Adds the log priority to a printk

2016-07-16 Thread Richard Stearn
Subject: [PATCH 5/6]NET:AX25:ROSE Adds the log priority to a printk Adds the log priority to a printk. Signed-off-by: Richard Stearn --- net/rose/rose_route.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c index 56e53d5..9f256

[PATCH 3/6]NET:AX25:ROSE Traps calls to rose_route_frame with a NULL ax25 callback

2016-07-16 Thread Richard Stearn
Subject: [PATCH 3/6]NET:AX25:ROSE Traps calls to rose_route_frame with a NULL ax25 callback Traps calls to rose_route_frame with a NULL ax25 callback to prevent a kernel crash. Calling rose_route_frame with a NULL ax25 callback parameter indicates a locally generated frame. The existing code doe

[PATCH 1/6]NET:AX25:ROSE Add device use count

2016-07-16 Thread Richard Stearn
Subject: [PATCH 1/6]NET:AX25:ROSE Add device use count Adds device use count for core of protocol. Prevents kernel crash on device shutdown. Signed-off-by: Richard Stearn --- net/rose/af_rose.c |7 ++- net/rose/rose_loopback.c |1 + 2 files changed, 7 insertions(+), 1 deletion(

[PATCH 4/6]NET:AX25:ROSE Fixes to rose_header

2016-07-16 Thread Richard Stearn
Subject: [PATCH 4/6]NET:AX25:ROSE Fixes to rose_header Adds comments on the header fields. Removes address copy. Added comments detailing the ROSE header fields being built. Removes an address copy that is irrelevant for this ROSE header as there are no addresses in the header and the copy corrupt

[PATCH 0/6]NET:AX25:ROSE Adds device use count, adds trap to prevent kernel crash, plus other cleanup

2016-07-16 Thread Richard Stearn
Subject: [PATCH 0/6]NET:AX25:ROSE Adds device use count, adds trap to prevent kernel crash, plus other cleanup [PATCH 1/6]NET:AX25:ROSE Adds device use count for core of protocol. [PATCH 2/6]NET:AX25:ROSE Adds device use counting for ROSE neighbour lists [PATCH 3/6]NET:AX25:ROSE Traps calls to r

Re: [PATCH] net:ppp: replace too strict capability restriction on opening /dev/ppp

2016-07-16 Thread Shanker Wang
Hi Richard, Sorry for the late reply after dealing with my personal issues. After reading the code, I find out that when /dev/ppp is opened, the instance is in “unattached” state and `file->private_data` is null correspondingly. After creating a new instance, attaching to a instance or attaching

Proposal

2016-07-16 Thread Teresa Au
I have a Business proposal for you,contact me via my personal E-mail for more detail's: ms_teresa_a...@outlook.com

RE: [PATCH v3 5/8] thunderbolt: Communication with the ICM (firmware)

2016-07-16 Thread Winkler, Tomas
> -Original Message- > From: Levy, Amir (Jer) > Sent: Thursday, July 14, 2016 17:50 > To: Winkler, Tomas ; > andreas.noe...@gmail.com; gre...@linuxfoundation.org; > bhelg...@google.com > Cc: linux-...@vger.kernel.org; linux-ker...@vger.kernel.org; > netdev@vger.kernel.org; thunderbolt-lin

[PATCH] dwc_eth_qos: Remove deprecated create_singlethread_workqueue

2016-07-16 Thread Bhaktipriya Shridhar
alloc_workqueue replaces deprecated create_singlethread_workqueue(). A dedicated workqueue has been used since the workitem viz lp->txtimeout_reinit is involved in reinitialization if a TX timeout occurs, which is necessary to guarantee forward progress in packet processing. As a network device ca

[PATCH] net/mlx5_core/health: Remove deprecated create_singlethread_workqueue

2016-07-16 Thread Bhaktipriya Shridhar
The workqueue health->wq was used as per device private health thread. This was done so that system error handling could be processed concurrently. The workqueue has a single workitem(&health->work) and hence doesn't require ordering. It is involved in handling the health of the deviceand is not be

[PATCH] igb: fix adjusting ptp timestamps for tx/rx latency

2016-07-16 Thread Kshitiz Gupta
Fix PHY delay compensation math in igb_ptp_tx_hwtstamp() and igb_ptp_rx_rgtstamp. Add PHY delay compensation in igb_ptp_rx_pktstamp(). In the IGB driver, there are two functions that retrieve timestamps received by the PHY - igb_ptp_rx_rgtstamp() and igb_ptp_rx_pktstamp(). The previous commit only