All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-4.9 0/7] Stable commits picked up from lede project
@ 2017-06-26  8:01 Amit Pundir
  2017-06-26  8:01 ` [PATCH for-4.9 1/7] of: Add check to of_scan_flat_dt() before accessing initial_boot_params Amit Pundir
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Amit Pundir @ 2017-06-26  8:01 UTC (permalink / raw)
  To: Greg KH; +Cc: Stable

Hi Greg,

For your consideration, stable commits taken from lede source tree
https://git.lede-project.org/?p=source.git for 4.9.y.

Cherry-picked and build tested on Linux 4.9.34 for
ARCH=arm/arm64/i386/x86_64/mips + allmodconfig.

Regards,
Amit Pundir


Hauke Mehrtens (1):
  spi: double time out tolerance

Joël Esponde (1):
  mtd: spi-nor: fix spansion quad enable

Matthias Reichl (1):
  dmaengine: bcm2835: Fix cyclic DMA period splitting

Russell King (1):
  net: phy: fix marvell phy status reading

Stanislaw Gruszka (1):
  rt2x00: avoid introducing a USB dependency in the rt2x00lib module

Tobias Wolf (1):
  of: Add check to of_scan_flat_dt() before accessing
    initial_boot_params

Yendapally Reddy Dhananjaya Reddy (1):
  net: phy: Initialize mdio clock at probe function

 drivers/dma/bcm2835-dma.c                      |  5 ++++-
 drivers/mtd/spi-nor/spi-nor.c                  |  7 +++++++
 drivers/net/phy/marvell.c                      |  2 --
 drivers/net/phy/mdio-bcm-iproc.c               |  6 ++----
 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c | 23 ++++++++---------------
 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c |  5 +++++
 drivers/of/fdt.c                               |  9 ++++++---
 drivers/spi/spi.c                              |  2 +-
 8 files changed, 33 insertions(+), 26 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH for-4.9 1/7] of: Add check to of_scan_flat_dt() before accessing initial_boot_params
  2017-06-26  8:01 [PATCH for-4.9 0/7] Stable commits picked up from lede project Amit Pundir
@ 2017-06-26  8:01 ` Amit Pundir
  2017-06-26  8:01 ` [PATCH for-4.9 2/7] mtd: spi-nor: fix spansion quad enable Amit Pundir
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Amit Pundir @ 2017-06-26  8:01 UTC (permalink / raw)
  To: Greg KH; +Cc: Stable, Tobias Wolf, Sergei Shtylyov, linux-mips, Ralf Baechle

From: Tobias Wolf <dev-NTEO@vplace.de>

commit 3ec754410cb3e931a6c4920b1a150f21a94a2bf4 upstream.

An empty __dtb_start to __dtb_end section might result in
initial_boot_params being null for arch/mips/ralink. This showed that the
boot process hangs indefinitely in of_scan_flat_dt().

Signed-off-by: Tobias Wolf <dev-NTEO@vplace.de>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14605/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
 drivers/of/fdt.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 6a43fd3d0576..502f5547a1f2 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -741,9 +741,12 @@ int __init of_scan_flat_dt(int (*it)(unsigned long node,
 	const char *pathp;
 	int offset, rc = 0, depth = -1;
 
-        for (offset = fdt_next_node(blob, -1, &depth);
-             offset >= 0 && depth >= 0 && !rc;
-             offset = fdt_next_node(blob, offset, &depth)) {
+	if (!blob)
+		return 0;
+
+	for (offset = fdt_next_node(blob, -1, &depth);
+	     offset >= 0 && depth >= 0 && !rc;
+	     offset = fdt_next_node(blob, offset, &depth)) {
 
 		pathp = fdt_get_name(blob, offset, NULL);
 		if (*pathp == '/')
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH for-4.9 2/7] mtd: spi-nor: fix spansion quad enable
  2017-06-26  8:01 [PATCH for-4.9 0/7] Stable commits picked up from lede project Amit Pundir
  2017-06-26  8:01 ` [PATCH for-4.9 1/7] of: Add check to of_scan_flat_dt() before accessing initial_boot_params Amit Pundir
@ 2017-06-26  8:01 ` Amit Pundir
  2017-06-26  8:01 ` [PATCH for-4.9 3/7] rt2x00: avoid introducing a USB dependency in the rt2x00lib module Amit Pundir
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Amit Pundir @ 2017-06-26  8:01 UTC (permalink / raw)
  To: Greg KH; +Cc: Stable, Joël Esponde, Cyrille Pitchen

From: Joël Esponde <joel.esponde@honeywell.com>

commit 807c16253319ee6ccf8873ae64f070f7eb532cd5 upstream.

With the S25FL127S nor flash part, each writing to the configuration
register takes hundreds of ms. During that  time, no more accesses to
the flash should be done (even reads).

This commit adds a wait loop after the register writing until the flash
finishes its work.

This issue could make rootfs mounting fail when the latter was done too
much closely to this quad enable bit setting step. And in this case, a
driver as UBIFS may try to recover the filesystem and may broke it
completely.

Signed-off-by: Joël Esponde <joel.esponde@honeywell.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
 drivers/mtd/spi-nor/spi-nor.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index d0fc165d7d66..21dde5249085 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -1255,6 +1255,13 @@ static int spansion_quad_enable(struct spi_nor *nor)
 		return -EINVAL;
 	}
 
+	ret = spi_nor_wait_till_ready(nor);
+	if (ret) {
+		dev_err(nor->dev,
+			"timeout while writing configuration register\n");
+		return ret;
+	}
+
 	/* read back and check it */
 	ret = read_cr(nor);
 	if (!(ret > 0 && (ret & CR_QUAD_EN_SPAN))) {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH for-4.9 3/7] rt2x00: avoid introducing a USB dependency in the rt2x00lib module
  2017-06-26  8:01 [PATCH for-4.9 0/7] Stable commits picked up from lede project Amit Pundir
  2017-06-26  8:01 ` [PATCH for-4.9 1/7] of: Add check to of_scan_flat_dt() before accessing initial_boot_params Amit Pundir
  2017-06-26  8:01 ` [PATCH for-4.9 2/7] mtd: spi-nor: fix spansion quad enable Amit Pundir
@ 2017-06-26  8:01 ` Amit Pundir
  2017-06-27 11:03   ` Greg KH
  2017-06-26  8:01 ` [PATCH for-4.9 4/7] net: phy: Initialize mdio clock at probe function Amit Pundir
                   ` (4 subsequent siblings)
  7 siblings, 1 reply; 12+ messages in thread
From: Amit Pundir @ 2017-06-26  8:01 UTC (permalink / raw)
  To: Greg KH; +Cc: Stable, Stanislaw Gruszka, Vishal Thanki, Kalle Valo

From: Stanislaw Gruszka <sgruszka@redhat.com>

commit 6232c17438ed01f43665197db5a98a4a4f77ef47 upstream.

As reported by Felix:

Though protected by an ifdef, introducing an usb symbol dependency in
the rt2x00lib module is a major inconvenience for distributions that
package kernel modules split into individual packages.

Get rid of this unnecessary dependency by calling the usb related
function from a more suitable place.

Cc: Vishal Thanki <vishalthanki@gmail.com>
Reported-by: Felix Fietkau <nbd@nbd.name>
Fixes: 8b4c0009313f ("rt2x00usb: Use usb anchor to manage URB")
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c | 23 ++++++++---------------
 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c |  5 +++++
 2 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c b/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
index b7273be9303d..c8d9075339cf 100644
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
@@ -1422,21 +1422,6 @@ void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev)
 	cancel_work_sync(&rt2x00dev->intf_work);
 	cancel_delayed_work_sync(&rt2x00dev->autowakeup_work);
 	cancel_work_sync(&rt2x00dev->sleep_work);
-#if IS_ENABLED(CONFIG_RT2X00_LIB_USB)
-	if (rt2x00_is_usb(rt2x00dev)) {
-		usb_kill_anchored_urbs(rt2x00dev->anchor);
-		hrtimer_cancel(&rt2x00dev->txstatus_timer);
-		cancel_work_sync(&rt2x00dev->rxdone_work);
-		cancel_work_sync(&rt2x00dev->txdone_work);
-	}
-#endif
-	if (rt2x00dev->workqueue)
-		destroy_workqueue(rt2x00dev->workqueue);
-
-	/*
-	 * Free the tx status fifo.
-	 */
-	kfifo_free(&rt2x00dev->txstatus_fifo);
 
 	/*
 	 * Kill the tx status tasklet.
@@ -1452,6 +1437,14 @@ void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev)
 	 */
 	rt2x00lib_uninitialize(rt2x00dev);
 
+	if (rt2x00dev->workqueue)
+		destroy_workqueue(rt2x00dev->workqueue);
+
+	/*
+	 * Free the tx status fifo.
+	 */
+	kfifo_free(&rt2x00dev->txstatus_fifo);
+
 	/*
 	 * Free extra components
 	 */
diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c b/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c
index 662705e31136..631df690adbe 100644
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c
@@ -740,6 +740,11 @@ void rt2x00usb_uninitialize(struct rt2x00_dev *rt2x00dev)
 {
 	struct data_queue *queue;
 
+	usb_kill_anchored_urbs(rt2x00dev->anchor);
+	hrtimer_cancel(&rt2x00dev->txstatus_timer);
+	cancel_work_sync(&rt2x00dev->rxdone_work);
+	cancel_work_sync(&rt2x00dev->txdone_work);
+
 	queue_for_each(rt2x00dev, queue)
 		rt2x00usb_free_entries(queue);
 }
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH for-4.9 4/7] net: phy: Initialize mdio clock at probe function
  2017-06-26  8:01 [PATCH for-4.9 0/7] Stable commits picked up from lede project Amit Pundir
                   ` (2 preceding siblings ...)
  2017-06-26  8:01 ` [PATCH for-4.9 3/7] rt2x00: avoid introducing a USB dependency in the rt2x00lib module Amit Pundir
@ 2017-06-26  8:01 ` Amit Pundir
  2017-06-26  8:01 ` [PATCH for-4.9 5/7] dmaengine: bcm2835: Fix cyclic DMA period splitting Amit Pundir
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Amit Pundir @ 2017-06-26  8:01 UTC (permalink / raw)
  To: Greg KH
  Cc: Stable, Yendapally Reddy Dhananjaya Reddy, Jon Mason, David S . Miller

From: Yendapally Reddy Dhananjaya Reddy <yendapally.reddy@broadcom.com>

commit bb1a619735b4660f21bce3e728b937640024b4ad upstream.

USB PHYs need the MDIO clock divisor enabled earlier to work.
Initialize mdio clock divisor in probe function. The ext bus
bit available in the same register will be used by mdio mux
to enable external mdio.

Signed-off-by: Yendapally Reddy Dhananjaya Reddy <yendapally.reddy@broadcom.com>
Fixes: ddc24ae1 ("net: phy: Broadcom iProc MDIO bus driver")
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
 drivers/net/phy/mdio-bcm-iproc.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/phy/mdio-bcm-iproc.c b/drivers/net/phy/mdio-bcm-iproc.c
index c0b4e65267af..46fe1ae919a3 100644
--- a/drivers/net/phy/mdio-bcm-iproc.c
+++ b/drivers/net/phy/mdio-bcm-iproc.c
@@ -81,8 +81,6 @@ static int iproc_mdio_read(struct mii_bus *bus, int phy_id, int reg)
 	if (rc)
 		return rc;
 
-	iproc_mdio_config_clk(priv->base);
-
 	/* Prepare the read operation */
 	cmd = (MII_DATA_TA_VAL << MII_DATA_TA_SHIFT) |
 		(reg << MII_DATA_RA_SHIFT) |
@@ -112,8 +110,6 @@ static int iproc_mdio_write(struct mii_bus *bus, int phy_id,
 	if (rc)
 		return rc;
 
-	iproc_mdio_config_clk(priv->base);
-
 	/* Prepare the write operation */
 	cmd = (MII_DATA_TA_VAL << MII_DATA_TA_SHIFT) |
 		(reg << MII_DATA_RA_SHIFT) |
@@ -163,6 +159,8 @@ static int iproc_mdio_probe(struct platform_device *pdev)
 	bus->read = iproc_mdio_read;
 	bus->write = iproc_mdio_write;
 
+	iproc_mdio_config_clk(priv->base);
+
 	rc = of_mdiobus_register(bus, pdev->dev.of_node);
 	if (rc) {
 		dev_err(&pdev->dev, "MDIO bus registration failed\n");
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH for-4.9 5/7] dmaengine: bcm2835: Fix cyclic DMA period splitting
  2017-06-26  8:01 [PATCH for-4.9 0/7] Stable commits picked up from lede project Amit Pundir
                   ` (3 preceding siblings ...)
  2017-06-26  8:01 ` [PATCH for-4.9 4/7] net: phy: Initialize mdio clock at probe function Amit Pundir
@ 2017-06-26  8:01 ` Amit Pundir
  2017-06-26  8:01 ` [PATCH for-4.9 6/7] spi: double time out tolerance Amit Pundir
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Amit Pundir @ 2017-06-26  8:01 UTC (permalink / raw)
  To: Greg KH; +Cc: Stable, Matthias Reichl, Martin Sperl, Vinod Koul

From: Matthias Reichl <hias@horus.com>

commit 2201ac6129fa162ac24da089a034bb0971648ebb upstream.

The code responsible for splitting periods into chunks that
can be handled by the DMA controller missed to update total_len,
the number of bytes processed in the current period, when there
are more chunks to follow.

Therefore total_len was stuck at 0 and the code didn't work at all.
This resulted in a wrong control block layout and audio issues because
the cyclic DMA callback wasn't executing on period boundaries.

Fix this by adding the missing total_len update.

Signed-off-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Tested-by: Clive Messer <clive.messer@digitaldreamtime.co.uk>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
 drivers/dma/bcm2835-dma.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c
index e18dc596cf24..6204cc32d09c 100644
--- a/drivers/dma/bcm2835-dma.c
+++ b/drivers/dma/bcm2835-dma.c
@@ -251,8 +251,11 @@ static void bcm2835_dma_create_cb_set_length(
 	 */
 
 	/* have we filled in period_length yet? */
-	if (*total_len + control_block->length < period_len)
+	if (*total_len + control_block->length < period_len) {
+		/* update number of bytes in this period so far */
+		*total_len += control_block->length;
 		return;
+	}
 
 	/* calculate the length that remains to reach period_length */
 	control_block->length = period_len - *total_len;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH for-4.9 6/7] spi: double time out tolerance
  2017-06-26  8:01 [PATCH for-4.9 0/7] Stable commits picked up from lede project Amit Pundir
                   ` (4 preceding siblings ...)
  2017-06-26  8:01 ` [PATCH for-4.9 5/7] dmaengine: bcm2835: Fix cyclic DMA period splitting Amit Pundir
@ 2017-06-26  8:01 ` Amit Pundir
  2017-06-26 11:54   ` Mark Brown
  2017-06-26  8:01 ` [PATCH for-4.9 7/7] net: phy: fix marvell phy status reading Amit Pundir
  2017-06-27 11:08 ` [PATCH for-4.9 0/7] Stable commits picked up from lede project Greg KH
  7 siblings, 1 reply; 12+ messages in thread
From: Amit Pundir @ 2017-06-26  8:01 UTC (permalink / raw)
  To: Greg KH; +Cc: Stable, Hauke Mehrtens, Mark Brown

From: Hauke Mehrtens <hauke@hauke-m.de>

commit 833bfade96561216aa2129516a5926a0326860a2 upstream.

The generic SPI code calculates how long the issued transfer would take
and adds 100ms in addition to the timeout as tolerance. On my 500 MHz
Lantiq Mips SoC I am getting timeouts from the SPI like this when the
system boots up:

m25p80 spi32766.4: SPI transfer timed out
blk_update_request: I/O error, dev mtdblock3, sector 2
SQUASHFS error: squashfs_read_data failed to read block 0x6e

After increasing the tolerance for the timeout to 200ms I haven't seen
these SPI transfer time outs any more.
The Lantiq SPI driver in use here has an extra work queue in between,
which gets triggered when the controller send the last word and the
hardware FIFOs used for reading and writing are only 8 words long.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
 drivers/spi/spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 838783c3fed0..24d4492d0168 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1004,7 +1004,7 @@ static int spi_transfer_one_message(struct spi_master *master,
 				ret = 0;
 				ms = 8LL * 1000LL * xfer->len;
 				do_div(ms, xfer->speed_hz);
-				ms += ms + 100; /* some tolerance */
+				ms += ms + 200; /* some tolerance */
 
 				if (ms > UINT_MAX)
 					ms = UINT_MAX;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH for-4.9 7/7] net: phy: fix marvell phy status reading
  2017-06-26  8:01 [PATCH for-4.9 0/7] Stable commits picked up from lede project Amit Pundir
                   ` (5 preceding siblings ...)
  2017-06-26  8:01 ` [PATCH for-4.9 6/7] spi: double time out tolerance Amit Pundir
@ 2017-06-26  8:01 ` Amit Pundir
  2017-06-27 11:08 ` [PATCH for-4.9 0/7] Stable commits picked up from lede project Greg KH
  7 siblings, 0 replies; 12+ messages in thread
From: Amit Pundir @ 2017-06-26  8:01 UTC (permalink / raw)
  To: Greg KH; +Cc: Stable, Russell King, David S . Miller

From: Russell King <rmk+kernel@armlinux.org.uk>

commit 898805e0cdf7fd860ec21bf661d3a0285a3defbd upstream.

The Marvell driver incorrectly provides phydev->lp_advertising as the
logical and of the link partner's advert and our advert.  This is
incorrect - this field is supposed to store the link parter's unmodified
advertisment.

This allows ethtool to report the correct link partner auto-negotiation
status.

Fixes: be937f1f89ca ("Marvell PHY m88e1111 driver fix")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
 drivers/net/phy/marvell.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c
index d6a541bde331..2f70f80de27f 100644
--- a/drivers/net/phy/marvell.c
+++ b/drivers/net/phy/marvell.c
@@ -1114,8 +1114,6 @@ static int marvell_read_status_page(struct phy_device *phydev, int page)
 		if (adv < 0)
 			return adv;
 
-		lpa &= adv;
-
 		if (status & MII_M1011_PHY_STATUS_FULLDUPLEX)
 			phydev->duplex = DUPLEX_FULL;
 		else
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH for-4.9 6/7] spi: double time out tolerance
  2017-06-26  8:01 ` [PATCH for-4.9 6/7] spi: double time out tolerance Amit Pundir
@ 2017-06-26 11:54   ` Mark Brown
  0 siblings, 0 replies; 12+ messages in thread
From: Mark Brown @ 2017-06-26 11:54 UTC (permalink / raw)
  To: Amit Pundir; +Cc: Greg KH, Stable, Hauke Mehrtens

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]

On Mon, Jun 26, 2017 at 01:31:30PM +0530, Amit Pundir wrote:

> After increasing the tolerance for the timeout to 200ms I haven't seen
> these SPI transfer time outs any more.
> The Lantiq SPI driver in use here has an extra work queue in between,
> which gets triggered when the controller send the last word and the
> hardware FIFOs used for reading and writing are only 8 words long.

This is pretty much just for that driver, like the commit message says
it's weirdly written due to poorly thought through hardware so has
noticably higher overhead than normal drivers.  It shouldn't do any harm
in stable since people probably shouldn't be running into errors.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH for-4.9 3/7] rt2x00: avoid introducing a USB dependency in the rt2x00lib module
  2017-06-26  8:01 ` [PATCH for-4.9 3/7] rt2x00: avoid introducing a USB dependency in the rt2x00lib module Amit Pundir
@ 2017-06-27 11:03   ` Greg KH
  0 siblings, 0 replies; 12+ messages in thread
From: Greg KH @ 2017-06-27 11:03 UTC (permalink / raw)
  To: Amit Pundir; +Cc: Stable, Stanislaw Gruszka, Vishal Thanki, Kalle Valo

On Mon, Jun 26, 2017 at 01:31:27PM +0530, Amit Pundir wrote:
> From: Stanislaw Gruszka <sgruszka@redhat.com>
> 
> commit 6232c17438ed01f43665197db5a98a4a4f77ef47 upstream.
> 
> As reported by Felix:
> 
> Though protected by an ifdef, introducing an usb symbol dependency in
> the rt2x00lib module is a major inconvenience for distributions that
> package kernel modules split into individual packages.
> 
> Get rid of this unnecessary dependency by calling the usb related
> function from a more suitable place.
> 
> Cc: Vishal Thanki <vishalthanki@gmail.com>
> Reported-by: Felix Fietkau <nbd@nbd.name>
> Fixes: 8b4c0009313f ("rt2x00usb: Use usb anchor to manage URB")
> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
> Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
> ---
>  drivers/net/wireless/ralink/rt2x00/rt2x00dev.c | 23 ++++++++---------------
>  drivers/net/wireless/ralink/rt2x00/rt2x00usb.c |  5 +++++
>  2 files changed, 13 insertions(+), 15 deletions(-)

I keep skipping this patch, but people keep submitting it, so I might as
well give in and take it this time :)

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH for-4.9 0/7] Stable commits picked up from lede project
  2017-06-26  8:01 [PATCH for-4.9 0/7] Stable commits picked up from lede project Amit Pundir
                   ` (6 preceding siblings ...)
  2017-06-26  8:01 ` [PATCH for-4.9 7/7] net: phy: fix marvell phy status reading Amit Pundir
@ 2017-06-27 11:08 ` Greg KH
  2017-06-27 11:12   ` Amit Pundir
  7 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2017-06-27 11:08 UTC (permalink / raw)
  To: Amit Pundir; +Cc: Stable

On Mon, Jun 26, 2017 at 01:31:24PM +0530, Amit Pundir wrote:
> Hi Greg,
> 
> For your consideration, stable commits taken from lede source tree
> https://git.lede-project.org/?p=source.git for 4.9.y.
> 
> Cherry-picked and build tested on Linux 4.9.34 for
> ARCH=arm/arm64/i386/x86_64/mips + allmodconfig.

All now queued up.  Also, some of these had to go into 4.11-stable, and
older stable trees.  You never want to apply a patch to an old stable
release and miss a newer one, that will just confuse users if they move
forward...

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH for-4.9 0/7] Stable commits picked up from lede project
  2017-06-27 11:08 ` [PATCH for-4.9 0/7] Stable commits picked up from lede project Greg KH
@ 2017-06-27 11:12   ` Amit Pundir
  0 siblings, 0 replies; 12+ messages in thread
From: Amit Pundir @ 2017-06-27 11:12 UTC (permalink / raw)
  To: Greg KH; +Cc: Stable

On 27 June 2017 at 16:38, Greg KH <gregkh@linuxfoundation.org> wrote:
> On Mon, Jun 26, 2017 at 01:31:24PM +0530, Amit Pundir wrote:
>> Hi Greg,
>>
>> For your consideration, stable commits taken from lede source tree
>> https://git.lede-project.org/?p=source.git for 4.9.y.
>>
>> Cherry-picked and build tested on Linux 4.9.34 for
>> ARCH=arm/arm64/i386/x86_64/mips + allmodconfig.
>
> All now queued up.  Also, some of these had to go into 4.11-stable, and
> older stable trees.  You never want to apply a patch to an old stable
> release and miss a newer one, that will just confuse users if they move
> forward...

Thanks for the headsup on 4.11-stable. I'll keep that in mind. I'm
preparing these, plus any additional patches to submit for 4.4 and
3.18 too.

Regards,
Amit Pundir

>
> thanks,
>
> greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-06-27 11:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-26  8:01 [PATCH for-4.9 0/7] Stable commits picked up from lede project Amit Pundir
2017-06-26  8:01 ` [PATCH for-4.9 1/7] of: Add check to of_scan_flat_dt() before accessing initial_boot_params Amit Pundir
2017-06-26  8:01 ` [PATCH for-4.9 2/7] mtd: spi-nor: fix spansion quad enable Amit Pundir
2017-06-26  8:01 ` [PATCH for-4.9 3/7] rt2x00: avoid introducing a USB dependency in the rt2x00lib module Amit Pundir
2017-06-27 11:03   ` Greg KH
2017-06-26  8:01 ` [PATCH for-4.9 4/7] net: phy: Initialize mdio clock at probe function Amit Pundir
2017-06-26  8:01 ` [PATCH for-4.9 5/7] dmaengine: bcm2835: Fix cyclic DMA period splitting Amit Pundir
2017-06-26  8:01 ` [PATCH for-4.9 6/7] spi: double time out tolerance Amit Pundir
2017-06-26 11:54   ` Mark Brown
2017-06-26  8:01 ` [PATCH for-4.9 7/7] net: phy: fix marvell phy status reading Amit Pundir
2017-06-27 11:08 ` [PATCH for-4.9 0/7] Stable commits picked up from lede project Greg KH
2017-06-27 11:12   ` Amit Pundir

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.