[PATCH] wlcore: Allow scans when in AP mode

2016-10-07 Thread Xander Huff
From: James Minor When in AP mode, scans can be done without changing firmware to the multi-role firmware. Allow the interface to scan if forced in the scan request. Signed-off-by: James Minor Signed-off-by: Xander Huff Reviewed-by: Ben Shelton Reviewed-by: Jaeden Amero --- drivers/net

[PATCH] net: macb: NULL out phydev after removing mdio bus

2016-10-07 Thread Xander Huff
From: Nathan Sullivan To ensure the dev->phydev pointer is not used after becoming invalid in mdiobus_unregister, set it to NULL. This happens when removing the macb driver without first taking its interface down, since unregister_netdev will end up calling macb_close. Signed-off-by: Xan

[PATCH v2] net: macb: Increase DMA TX buffer size

2016-08-24 Thread Xander Huff
From: Nathan Sullivan In recent testing with the RT patchset, we have seen cases where the transmit ring can fill even with up to 200 txbds in the ring. Increase the size of the DMA TX ring to avoid overruns. Signed-off-by: Xander Huff Signed-off-by: Nathan Sullivan --- drivers/net/ethernet

[PATCH v2] Revert "phy: IRQ cannot be shared"

2016-08-24 Thread Xander Huff
e... most probably I thought that the kernel IRQ handling code exited the loop over the IRQ actions once IRQ_HANDLED was returned -- which is obviously not so in reality..." Signed-off-by: Xander Huff Signed-off-by: Nathan Sullivan --- Note: this reverted code fails "CHECK: Alignmen

Re: [PATCH] phy: request shared IRQ

2016-08-24 Thread Xander Huff
On 8/24/2016 1:41 PM, Sergei Shtylyov wrote: Hello. On 08/24/2016 08:53 PM, Xander Huff wrote: From: Nathan Sullivan On hardware with multiple PHY devices hooked up to the same IRQ line, allow them to share it. Note that it had been allowed until my (erroneous?) commit

[PATCH] net: macb: Increase DMA buffer size

2016-08-24 Thread Xander Huff
From: Nathan Sullivan In recent testing with the RT patchset, we have seen cases where the transmit ring can fill even with up to 200 txbds in the ring. Increase the size of the DMA rings to avoid overruns. Signed-off-by: Nathan Sullivan Acked-by: Ben Shelton Acked-by: Jaeden Amero Natinst-R

[PATCH] phy: request shared IRQ

2016-08-24 Thread Xander Huff
From: Nathan Sullivan On hardware with multiple PHY devices hooked up to the same IRQ line, allow them to share it. Signed-off-by: Nathan Sullivan Signed-off-by: Xander Huff Acked-by: Ben Shelton Acked-by: Jaeden Amero --- drivers/net/phy/phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH] net: phy: micrel: remove suspend/resume

2016-08-23 Thread Xander Huff
= genphy_resume, }, { .phy_id = PHY_ID_KSZ8051, .phy_id_mask= MICREL_PHY_ID_MASK, It doesn't appear that KSZ9031 is affected by this errata; no mention of suspend: http://ww1.microchip.com/downloads/en/DeviceDoc/KSZ9031MNX_Errata_Rev%20A_A2_032515.pdf -- Xander Huff

Re: [PATCH] phy: micrel: Reenable interrupts during on resume for ksz9031

2016-08-22 Thread Xander Huff
On 8/22/2016 3:43 PM, Xander Huff wrote: Like the ksz8081, the ksz9031 has the behavior where it will clear the interrupt enable bits when leaving power down. This takes advantage of the solution provided by f5aba91. Signed-off-by: Xander Huff Signed-off-by: Nathan Sullivan Natinst

[PATCH] phy: micrel: Reenable interrupts during on resume for ksz9031

2016-08-22 Thread Xander Huff
Like the ksz8081, the ksz9031 has the behavior where it will clear the interrupt enable bits when leaving power down. This takes advantage of the solution provided by f5aba91. Signed-off-by: Xander Huff Signed-off-by: Nathan Sullivan Natinst-ReviewBoard-ID: 149877 --- drivers/net/phy/micrel.c

[PATCH] phy: micrel: Reenable interrupts during resume for ksz9031

2016-08-22 Thread Xander Huff
Like the ksz8081, the ksz9031 has the behavior where it will clear the interrupt enable bits when leaving power down. This takes advantage of the solution provided by f5aba91. Signed-off-by: Xander Huff Signed-off-by: Nathan Sullivan --- drivers/net/phy/micrel.c | 2 +- 1 file changed, 1

Re: [RESEND RESEND RESEND PATCH v2] mtd: nand_bbt: scan for next free bbt block if writing bbt fails

2015-09-04 Thread Xander Huff
On 8/26/2015 7:07 PM, Brian Norris wrote: On Wed, Aug 26, 2015 at 03:57:00PM +, Bean Huo 霍斌斌 (beanhuo) wrote: On Tue, Aug 25, 2015 at 12:49:26PM -0500, Xander Huff wrote: diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c index 63a1a36..09f9e62 100644 --- a/drivers

[RESEND RESEND RESEND PATCH v2] mtd: nand_bbt: scan for next free bbt block if writing bbt fails

2015-08-25 Thread Xander Huff
Jeff Westfahl . Signed-off-by: Ben Shelton Reviewed-by: Jaeden Amero Suggested-by: Jeff Westfahl Signed-off-by: Xander Huff --- This v2 patch is in reply to comments from Brian Norris on 7/22/13. See the following links for context: http://lists.infradead.org/pipermail/linux-mtd/2013-July/047596.html

[PATCH v4] iio: adc: xilinx-xadc: Push interrupts into hardirq context

2015-08-11 Thread Xander Huff
/iio/devices/iio:device0: $ sudo cyclictest -S -m -p 98 # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 7.84 7.70 7.63 3/182 4260 T: 0 ( 2559) P:98 I:1000 C:241557018 Min: 11 Act: 18 Avg: 21 Max: 74 T: 1 ( 2560) P:98 I:1500 C:161038006 Min: 10 Act: 21 Avg: 20 Max: 73 Signed-off-by: Xander

[RESEND RESEND PATCH v2] mtd: nand_bbt: scan for next free bbt block if writing bbt fails

2015-08-11 Thread Xander Huff
Jeff Westfahl . Signed-off-by: Ben Shelton Reviewed-by: Jaeden Amero Suggested-by: Jeff Westfahl Signed-off-by: Xander Huff --- This v2 patch is in reply to comments from Brian Norris on 7/22/13. See the following links for context: http://lists.infradead.org/pipermail/linux-mtd/2013-July/047596.html

Re: [PATCH v3] iio: adc: xilinx-xadc: Push interrupts into threaded context

2015-08-03 Thread Xander Huff
s able to do a fair amount of tests with it on our device. I'll get to work on your suggestions and hopefully having a v4 out sometime next week. -- Xander Huff Staff Software Engineer National Instruments -- To unsubscribe from this list: send the line "unsubscribe linux-kernel&quo

[RESEND PATCH v2] mtd: nand_bbt: scan for next free bbt block if writing bbt fails

2015-07-22 Thread Xander Huff
Jeff Westfahl . Signed-off-by: Ben Shelton Reviewed-by: Jaeden Amero Suggested-by: Jeff Westfahl Signed-off-by: Xander Huff --- This v2 patch is in reply to comments from Brian Norris on 7/22/13. See the following links for context: http://lists.infradead.org/pipermail/linux-mtd/2013-July/047596.html

[PATCH v3] iio: adc: xilinx-xadc: Push interrupts into threaded context

2015-07-20 Thread Xander Huff
: $ sudo cyclictest -S -m -p 98 # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 7.81 7.64 7.541 2/247 5751 T: 0 ( 1568) P:98 I:1000 C:23845515 Min: 11 Act: 22 Avg: 21 Max: 71 T: 1 ( 1569) P:98 I:1500 C:15897239 Min: 11 Act: 21 Avg: 22 Max: 68 Signed-off-by: Xander Huff --- drivers/iio/adc

Re: [PATCH v2] iio: adc: xilinx-xadc: Push interrupts into threaded context

2015-07-15 Thread Xander Huff
>zynq_unmask_work, + msecs_to_jiffies(XADC_ZYNQ_UNMASK_TIMEOUT)); + Now that we are in the threaded context do we need the work queue stuff. Seems reasonable to try to remove it. I'll do some testing and send out a v3 if it works, thanks. -- Xander Huff Staff S

Re: [PATCH v2] iio: adc: xilinx-xadc: Push interrupts into threaded context

2015-07-15 Thread Xander Huff
On 7/14/2015 9:28 AM, Sebastian Andrzej Siewior wrote: * Xander Huff | 2015-07-08 16:38:22 [-0500]: drivers/iio/adc/xilinx-xadc-core.c | 35 --- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc

[PATCH v2] iio: adc: xilinx-xadc: Push interrupts into threaded context

2015-07-08 Thread Xander Huff
: $ sudo cyclictest -S -m -p 98 # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 7.81 7.64 7.541 2/247 5751 T: 0 ( 1568) P:98 I:1000 C:23845515 Min: 11 Act: 22 Avg: 21 Max: 71 T: 1 ( 1569) P:98 I:1500 C:15897239 Min: 11 Act: 21 Avg: 22 Max: 68 Signed-off-by: Xander Huff --- drivers/iio/adc

[PATCH RFC] wext: Add event stream wrappers that return E2BIG when values don't fit

2015-01-29 Thread Xander Huff
reviously showed up as a PSK network now correctly showing up as EAP. Side effects: A user space app which before did not get E2BIG and instead got a clipped off buffer might now get E2BIG instead, if the passed buffer is not large enough. Signed-off-by: James Minor Signed-off-by: Xander Huf

Re: [PATCH -rt] lockdep: selftest: fix warnings due to missing PREEMPT_RT conditionals

2015-01-28 Thread Xander Huff
On 1/28/2015 1:08 PM, Xander Huff wrote: From: Josh Cartwright "lockdep: Selftest: Only do hardirq context test for raw spinlock" disabled the execution of certain tests with PREEMPT_RT_FULL, but did not prevent the tests from still being defined. This leads to warnings like: .

[PATCH -rt] lockdep: selftest: fix warnings due to missing PREEMPT_RT conditionals

2015-01-28 Thread Xander Huff
pping the test definitions in #ifndef CONFIG_PREEMPT_RT_FULL conditionals. Signed-off-by: Josh Cartwright Signed-off-by: Xander Huff Acked-by: Gratian Crisan --- lib/locking-selftest.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/lib/locking-selftest.c b/li

[PATCH] lockdep: selftest: fix warnings due to missing PREEMPT_RT conditionals

2015-01-27 Thread Xander Huff
pping the test definitions in #ifndef CONFIG_PREEMPT_RT_FULL conditionals. Signed-off-by: Josh Cartwright Signed-off-by: Xander Huff Acked-by: Gratian Crisan --- lib/locking-selftest.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/lib/locking-selftest.c b/li

[PATCH 2/2] net: add device_poll functionality common to all net devices

2015-01-26 Thread Xander Huff
From: Jeff Westfahl The device_poll feature is generic to any device. Most net devices should be able to use a set of common functionality to implement device_poll, such as CAP_NET_ADMIN and rtnl_lock. Add this common functionality for all net devices to use. This is a standalone feature that sh

[PATCH 1/2] driver core: add device_poll interface

2015-01-26 Thread Xander Huff
From: Jeff Westfahl Add the device_poll interface to the driver core. This is a generic interface that any struct device can take advantage of to dynamically switch between using interrupts and polling. Many drivers can be easily modified to take advantage of this feature if desired. This interf

Re: [PATCH RESEND] igb: Reset TXPBSIZE to default value

2015-01-16 Thread Xander Huff
On 1/16/2015 1:41 PM, Vick, Matthew wrote: On 1/16/15, 10:59 AM, "Xander Huff" wrote: From: Jeff Westfahl The TXPBSIZE register of the i210 resets to its default value only at power-on. It doesn't reset if you reboot the system, only if you pull power. If something (another

[PATCH RESEND] igb: Reset TXPBSIZE to default value

2015-01-16 Thread Xander Huff
t function correctly. It detects a hang of the transmitter and continuously resets the adapter. Here we set this value to its default when resetting the i210 to resolve this issue. Signed-off-by: Jeff Westfahl Signed-off-by: Xander Huff --- drivers/net/ethernet/intel/igb/e1000_82575.c | 4 d

[PATCH v3 3/3] net/macb: Create gem_ethtool_ops for new statistics functions

2015-01-15 Thread Xander Huff
10/100 MACB does not have the same statistics possibilities as GEM. Separate macb_ethtool_ops to make a new GEM-specific struct with the new statistics functions included. Signed-off-by: Xander Huff --- Re-sending to properly include David Laight drivers/net/ethernet/cadence/macb.c | 15

[PATCH v3 2/3] net/macb: Add whitespace around arithmetic operators

2015-01-15 Thread Xander Huff
Spaces should surround add, multiply, and bitshift operators. Signed-off-by: Xander Huff --- Re-sending to properly include David Laight drivers/net/ethernet/cadence/macb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b

[PATCH v3 1/3] net/macb: Fix comments to meet style guidelines

2015-01-15 Thread Xander Huff
Change comments to not exceed 80 characters per line. Update block comments in macb.h to start on the line after /*. Signed-off-by: Xander Huff --- Re-sending to properly include David Laight drivers/net/ethernet/cadence/macb.h | 734 ++-- 1 file changed, 284

[PATCH v3 1/3] net/macb: Fix comments to meet style guidelines

2015-01-15 Thread Xander Huff
Change comments to not exceed 80 characters per line. Update block comments in macb.h to start on the line after /*. Signed-off-by: Xander Huff --- drivers/net/ethernet/cadence/macb.h | 734 ++-- 1 file changed, 284 insertions(+), 450 deletions(-) diff --git a

[PATCH v3 2/3] net/macb: Add whitespace around arithmetic operators

2015-01-15 Thread Xander Huff
Spaces should surround add, multiply, and bitshift operators. Signed-off-by: Xander Huff --- drivers/net/ethernet/cadence/macb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index

[PATCH v3 3/3] net/macb: Create gem_ethtool_ops for new statistics functions

2015-01-15 Thread Xander Huff
10/100 MACB does not have the same statistics possibilities as GEM. Separate macb_ethtool_ops to make a new GEM-specific struct with the new statistics functions included. Signed-off-by: Xander Huff --- drivers/net/ethernet/cadence/macb.c | 15 +-- 1 file changed, 13 insertions

Re: [PATCH v2 2/2] fixup! net/macb: improved ethtool statistics support

2015-01-15 Thread Xander Huff
On 1/15/2015 4:35 AM, Nicolas Ferre wrote: #define GEM_OTX 0x0100 /* Octets transmitted */ I see, it's modified hereafter! Why not integrate this part in previous patch? I split these up the way I did by using the --fixup argument to allow the rebase

[PATCH v2 1/2] fixup! net/macb: Adding comments to various #defs to make interpretation easier

2015-01-14 Thread Xander Huff
Put #define comments into a single line. Signed-off-by: Xander Huff --- drivers/net/ethernet/cadence/macb.h | 107 +--- 1 file changed, 26 insertions(+), 81 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h

[PATCH v2 2/2] fixup! net/macb: improved ethtool statistics support

2015-01-14 Thread Xander Huff
Add spaces around arithmetic operators. Make a separate gem_ethtool_ops for the new statistics functions. Adjust new block comments to match the existing comments in macb.h. Signed-off-by: Xander Huff --- drivers/net/ethernet/cadence/macb.c | 25 +++-- drivers/net/ethernet/cadence/macb.h | 203

Re: [PATCH 1/2] fixup! net/macb: Adding comments to various #defs to make interpretation easier

2015-01-14 Thread Xander Huff
On 1/14/2015 3:09 PM, David Miller wrote: As I mentioned, this won't do. I've already applied your original patches to net-next, therefore you will have to submit fixups relative to that. These fixup commits are relative to an updated net-next, specifically "237de6e Merge branch 'hip04'". D

[PATCH 2/2] fixup! net/macb: improved ethtool statistics support

2015-01-14 Thread Xander Huff
Signed-off-by: Xander Huff --- drivers/net/ethernet/cadence/macb.c | 25 +++-- drivers/net/ethernet/cadence/macb.h | 203 +--- 2 files changed, 68 insertions(+), 160 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence

[PATCH 1/2] fixup! net/macb: Adding comments to various #defs to make interpretation easier

2015-01-14 Thread Xander Huff
Signed-off-by: Xander Huff --- drivers/net/ethernet/cadence/macb.h | 107 +--- 1 file changed, 26 insertions(+), 81 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index 378b218..d7b93d0 100644 --- a/drivers

[PATCH 2/2] net/macb: improved ethtool statistics support

2015-01-13 Thread Xander Huff
gisters and sum them into macb.ethtool_stats. Add the necessary infrastructure to make this accessible via `ethtool -S`. Update gem_update_stats to utilize ethtool_stats. Signed-off-by: Xander Huff --- drivers/net/ethernet/cadence/macb.c | 55 +++- drivers/net/ethernet/caden

[PATCH 1/2] net/macb: Adding comments to various #defs to make interpretation easier

2015-01-13 Thread Xander Huff
ogrammable SoC TechnicalReference Manual, v1.9.1 (UG-585)" Signed-off-by: Xander Huff --- drivers/net/ethernet/cadence/macb.h | 269 ++-- 1 file changed, 162 insertions(+), 107 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet