qca_spi: collection of improvements
Subsystems (3)
Stefan Wahren
maintainerv4 cover qca_spi: collection of improvements
This series contains a wild collection of improvements for the qca_spi driver. This is a follow-up series to the recent bugfixes [1].
Patch 1, 2 & 3 in this series is the initially intended rework of netdev_open/close. Patch 4 & 10 are minor functional improvements and the rest is clean-up.
Changes in V4:
- keep thread handling in netdev_open, but improve this by two separate patches ( 1 & 2 )
- add missing link to bugfix series
Changes in V3:
- rebase on net-next-20240124
- improve commit message in Patch 8
- add Reviewed-by's from Jacob Keller
- add Patch 13 for mailmap as suggested by Jacob
- add Patch 14 for MAINTAINERS entry
Changes in V2:
- rebase on net-next-20231218
- improve cover letter
[1] - https://lore.kernel.org/netdev/[email protected]/
Stefan Wahren (15):
qca_spi: Add check for kthread_stop
qca_spi: Improve SPI thread creation
qca_spi: Improve SPI IRQ handling
qca_spi: Avoid skb_copy_expand in TX path
qca_7k_common: Drop unnecessary function description
qca_7k_common: Drop unused len from qcafrm_handle
qca_spi: Add QCASPI prefix to ring defines
qca_spi: Introduce QCASPI_RX_MAX_FRAMES
qca_spi: Improve calculation of RX buffer size
qca_spi: Log expected signature in error case
qca_spi: Adjust log of SPI_REG_RDBUF_BYTE_AVA
qca_7k: Replace BSD boilerplate with SPDX
qca_7k: Replace old mail address
mailmap: add entry for Stefan Wahren
MAINTAINERS: add entry for qca7k driver(s)
.mailmap | 1 + MAINTAINERS | 7 ++ drivers/net/ethernet/qualcomm/qca_7k.c | 17 +---- drivers/net/ethernet/qualcomm/qca_7k.h | 16 +---- drivers/net/ethernet/qualcomm/qca_7k_common.c | 17 +---- drivers/net/ethernet/qualcomm/qca_7k_common.h | 29 +------- drivers/net/ethernet/qualcomm/qca_debug.c | 21 ++---- drivers/net/ethernet/qualcomm/qca_debug.h | 15 +--- drivers/net/ethernet/qualcomm/qca_spi.c | 71 +++++++++---------- drivers/net/ethernet/qualcomm/qca_spi.h | 22 ++---- drivers/net/ethernet/qualcomm/qca_uart.c | 17 +---- 11 files changed, 58 insertions(+), 175 deletions(-)
--
2.34.1
Stefan Wahren
maintainerPATCH v4 1/15 qca_spi: Add check for kthread_stop
We better not rely on that spi_thread points to a running thread. So add an check for this.
--- drivers/net/ethernet/qualcomm/qca_spi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/ethernet/qualcomm/qca_spi.c +4 -2
@@ -730,8 +730,10 @@ qcaspi_netdev_close(struct net_device *dev)qcaspi_write_register (qca,SPI_REG_INTR_ENABLE ,0 , wr_verify);free_irq (qca->spi_dev->irq, qca); -kthread_stop (qca->spi_thread); - qca->spi_thread =NULL ; +if (qca->spi_thread) { +kthread_stop (qca->spi_thread); + qca->spi_thread =NULL ; + }qcaspi_flush_tx_ring (qca);return 0 ;
--
2.34.1
Stefan Wahren
maintainerPATCH v4 2/15 qca_spi: Improve SPI thread creation
In reply to Stefan WahrenDirectly storing the result of kthread_run within the private driver data makes it harder to identify if the pointer has a running thread or not. So better use a local variable for the result check and we don't have to care about error pointer in the rest of the code.
--- drivers/net/ethernet/qualcomm/qca_spi.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
drivers/net/ethernet/qualcomm/qca_spi.c +7 -4
@@ -687,6 +687,7 @@ static int qcaspi_netdev_open(struct net_device *dev) {struct qcaspi *qca =netdev_priv (dev); +struct task_struct *thread;int ret =0 ;if (!qca)
@@ -697,15 +698,17 @@ qcaspi_netdev_open(struct net_device *dev) qca->sync =QCASPI_SYNC_UNKNOWN ;qcafrm_fsm_init_spi (&qca->frm_handle); - qca->spi_thread =kthread_run ((void *)qcaspi_spi_thread, - qca,"%s" , dev->name); + thread =kthread_run ((void *)qcaspi_spi_thread, + qca,"%s" , dev->name); -if (IS_ERR (qca->spi_thread)) { +if (IS_ERR (thread)) {netdev_err (dev,"%s: unable to start kernel thread.\n" ,QCASPI_DRV_NAME ); -return PTR_ERR (qca->spi_thread); +return PTR_ERR (thread); } + qca->spi_thread = thread; + ret =request_irq (qca->spi_dev->irq, qcaspi_intr_handler,0 , dev->name, qca);if (ret) {
--
2.34.1
Stefan Wahren
maintainerPATCH v4 3/15 qca_spi: Improve SPI IRQ handling
In reply to Stefan WahrenThe functions qcaspi_netdev_open/close are responsible of request & free of the SPI interrupt, which wasn't the best choice because allocation problems are discovered not during probe. So let us split IRQ allocation & enabling, so we can take advantage of a device managed IRQ.
--- drivers/net/ethernet/qualcomm/qca_spi.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-)
drivers/net/ethernet/qualcomm/qca_spi.c +11 -10
@@ -688,7 +688,6 @@ qcaspi_netdev_open(struct net_device *dev) {struct qcaspi *qca =netdev_priv (dev);struct task_struct *thread; -int ret =0 ;if (!qca)return -EINVAL ;
@@ -709,14 +708,7 @@ qcaspi_netdev_open(struct net_device *dev) qca->spi_thread = thread; - ret =request_irq (qca->spi_dev->irq, qcaspi_intr_handler,0 , - dev->name, qca); -if (ret) { -netdev_err (dev,"%s: unable to get IRQ %d (irqval=%d).\n" , -QCASPI_DRV_NAME , qca->spi_dev->irq, ret); -kthread_stop (qca->spi_thread); -return ret; - } +enable_irq (qca->spi_dev->irq);/* SPI thread takes care of TX queue */
@@ -731,7 +723,7 @@ qcaspi_netdev_close(struct net_device *dev)netif_stop_queue (dev);qcaspi_write_register (qca,SPI_REG_INTR_ENABLE ,0 , wr_verify); -free_irq (qca->spi_dev->irq, qca); +disable_irq (qca->spi_dev->irq);if (qca->spi_thread) {kthread_stop (qca->spi_thread);
@@ -989,6 +981,15 @@ qca_spi_probe(struct spi_device *spi)spi_set_drvdata (spi, qcaspi_devs); + ret =devm_request_irq (&spi->dev, spi->irq, qcaspi_intr_handler, +IRQF_NO_AUTOEN , qca->net_dev->name, qca); +if (ret) { +dev_err (&spi->dev,"Unable to get IRQ %d (irqval=%d).\n" , + spi->irq, ret); +free_netdev (qcaspi_devs); +return ret; + } + ret =of_get_ethdev_address (spi->dev.of_node, qca->net_dev);if (ret) {eth_hw_addr_random (qca->net_dev);
--
2.34.1
Stefan Wahren
maintainerPATCH v4 4/15 qca_spi: Avoid skb_copy_expand in TX path
In reply to Stefan WahrenThe skb spare room needs to be expanded for SPI header, footer and possible padding within the TX path. So announce the necessary space in order to avoid expensive skb_copy_expand calls.
--- drivers/net/ethernet/qualcomm/qca_spi.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/qualcomm/qca_spi.c +2 -0
@@ -878,6 +878,8 @@ qcaspi_netdev_setup(struct net_device *dev)qcaspi_set_ethtool_ops (dev); dev->watchdog_timeo =QCASPI_TX_TIMEOUT ; dev->priv_flags &= ~IFF_TX_SKB_SHARING ; + dev->needed_tailroom =ALIGN (QCAFRM_FOOTER_LEN +QCAFRM_MIN_LEN ,4 ); + dev->needed_headroom =ALIGN (QCAFRM_HEADER_LEN ,4 ); dev->tx_queue_len =100 ;/* MTU range: 46 - 1500 */
--
2.34.1
Stefan Wahren
maintainerPATCH v4 5/15 qca_7k_common: Drop unnecessary function description
In reply to Stefan Wahrenqcafrm_fsm_decode has the almost the same function description in qca_7k_common.c. So drop the comment here.
--- drivers/net/ethernet/qualcomm/qca_7k_common.h | 11 ----------- 1 file changed, 11 deletions(-)
drivers/net/ethernet/qualcomm/qca_7k_common.h +0 -11
@@ -128,17 +128,6 @@ static inline void qcafrm_fsm_init_uart(struct qcafrm_handle *handle) handle->state = handle->init; } -/* Gather received bytes and try to extract a full Ethernet frame -* by following a simple state machine. -* -* Return: QCAFRM_GATHER No Ethernet frame fully received yet. -* QCAFRM_NOHEAD Header expected but not found. -* QCAFRM_INVLEN QCA7K frame length is invalid -* QCAFRM_NOTAIL Footer expected but not found. -* > 0 Number of byte in the fully received -* Ethernet frame -*/ -s32 qcafrm_fsm_decode (struct qcafrm_handle *handle,u8 *buf,u16 buf_len,u8 recv_byte);#endif /* _QCA_FRAMING_H */
--
2.34.1
Stefan Wahren
maintainerPATCH v4 6/15 qca_7k_common: Drop unused len from qcafrm_handle
In reply to Stefan WahrenThis member is never used. So drop it.
--- drivers/net/ethernet/qualcomm/qca_7k_common.h | 3 --- 1 file changed, 3 deletions(-)
drivers/net/ethernet/qualcomm/qca_7k_common.h +0 -3
@@ -107,9 +107,6 @@ struct qcafrm_handle {/* Offset in buffer (borrowed for length too) */ u16 offset; - -/* Frame length as kept by this module */ -u16 len; };u16 qcafrm_create_header (u8 *buf,u16 len);
--
2.34.1
Stefan Wahren
maintainerPATCH v4 7/15 qca_spi: Add QCASPI prefix to ring defines
In reply to Stefan WahrenAll defines in qca_spi.h except of the two ring limit defines have a QCASPI prefix. Since the name is quite generic add the QCASPI prefix to avoid possible name conflicts.
--- drivers/net/ethernet/qualcomm/qca_debug.c | 6 +++--- drivers/net/ethernet/qualcomm/qca_spi.c | 4 ++-- drivers/net/ethernet/qualcomm/qca_spi.h | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-)
drivers/net/ethernet/qualcomm/qca_debug.c +3 -3
@@ -255,7 +255,7 @@ qcaspi_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ring,struct qcaspi *qca =netdev_priv (dev); ring->rx_max_pending =QCASPI_RX_MAX_FRAMES ; - ring->tx_max_pending =TX_RING_MAX_LEN ; + ring->tx_max_pending =QCASPI_TX_RING_MAX_LEN ; ring->rx_pending =QCASPI_RX_MAX_FRAMES ; ring->tx_pending = qca->txr.count; }
@@ -275,8 +275,8 @@ qcaspi_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ring,if (qca->spi_thread)kthread_park (qca->spi_thread); - qca->txr.count =max_t (u32, ring->tx_pending,TX_RING_MIN_LEN ); - qca->txr.count =min_t (u16, qca->txr.count,TX_RING_MAX_LEN ); + qca->txr.count =max_t (u32, ring->tx_pending,QCASPI_TX_RING_MIN_LEN ); + qca->txr.count =min_t (u16, qca->txr.count,QCASPI_TX_RING_MAX_LEN );if (qca->spi_thread)kthread_unpark (qca->spi_thread);
drivers/net/ethernet/qualcomm/qca_spi.c +2 -2
@@ -476,7 +476,7 @@ qcaspi_flush_tx_ring(struct qcaspi *qca)* has been replaced by netif_tx_lock_bh() and so on. */ netif_tx_lock_bh (qca->net_dev); -for (i =0 ; i <TX_RING_MAX_LEN ; i++) { +for (i =0 ; i <QCASPI_TX_RING_MAX_LEN ; i++) {if (qca->txr.skb[i]) {dev_kfree_skb (qca->txr.skb[i]); qca->txr.skb[i] =NULL ;
@@ -890,7 +890,7 @@ qcaspi_netdev_setup(struct net_device *dev)memset (qca,0 ,sizeof (struct qcaspi ));memset (&qca->txr,0 ,sizeof (qca->txr)); - qca->txr.count =TX_RING_MAX_LEN ; + qca->txr.count =QCASPI_TX_RING_MAX_LEN ; }static const struct of_device_id qca_spi_of_match[] = {
drivers/net/ethernet/qualcomm/qca_spi.h +3 -3
@@ -39,8 +39,8 @@#define QCASPI_GOOD_SIGNATURE 0xAA55 -#define TX_RING_MAX_LEN 10 -#define TX_RING_MIN_LEN 2 +#define QCASPI_TX_RING_MAX_LEN 10 +#define QCASPI_TX_RING_MIN_LEN 2/* sync related constants */ #define QCASPI_SYNC_UNKNOWN 0
@@ -54,7 +54,7 @@#define QCASPI_EVENT_CPUON 1struct tx_ring { -struct sk_buff *skb[TX_RING_MAX_LEN ]; +struct sk_buff *skb[QCASPI_TX_RING_MAX_LEN ];u16 head;u16 tail;u16 size;
--
2.34.1
Stefan Wahren
maintainerPATCH v4 8/15 qca_spi: Introduce QCASPI_RX_MAX_FRAMES
In reply to Stefan WahrenCurrently qca_spi reserves enough space for 4 complete Ethernet over SPI frames in the receive buffer. Unfortunately this is hidden under a magic number. So replace it with a more self explaining define.
--- drivers/net/ethernet/qualcomm/qca_spi.c | 2 +- drivers/net/ethernet/qualcomm/qca_spi.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/qualcomm/qca_spi.c +1 -1
@@ -829,7 +829,7 @@ qcaspi_netdev_init(struct net_device *dev) qca->burst_len = qcaspi_burst_len; qca->spi_thread =NULL ; qca->buffer_size = (dev->mtu +VLAN_ETH_HLEN +QCAFRM_HEADER_LEN + -QCAFRM_FOOTER_LEN +4 ) *4 ; +QCAFRM_FOOTER_LEN +4 ) *QCASPI_RX_MAX_FRAMES ;memset (&qca->stats,0 ,sizeof (struct qcaspi_stats ));
drivers/net/ethernet/qualcomm/qca_spi.h +1 -0
@@ -41,6 +41,7 @@#define QCASPI_TX_RING_MAX_LEN 10#define QCASPI_TX_RING_MIN_LEN 2 +#define QCASPI_RX_MAX_FRAMES 4/* sync related constants */ #define QCASPI_SYNC_UNKNOWN 0
--
2.34.1
Stefan Wahren
maintainerPATCH v4 9/15 qca_spi: Improve calculation of RX buffer size
In reply to Stefan WahrenThere are two points with the calculation of RX buffer size which are not optimal:
1. dev->mtu is a mutual parameter and it's currently initialized with QCAFRM_MAX_MTU. But for RX buffer size calculation we always need the maximum possible MTU. So better use the define directly.
2. This magic number 4 represent the hardware generated frame length which is specific to SPI. We better replace this with the suitable define.
There is no functional change.
--- drivers/net/ethernet/qualcomm/qca_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/qualcomm/qca_spi.c +2 -2
@@ -828,8 +828,8 @@ qcaspi_netdev_init(struct net_device *dev) qca->clkspeed = qcaspi_clkspeed; qca->burst_len = qcaspi_burst_len; qca->spi_thread =NULL ; - qca->buffer_size = (dev->mtu +VLAN_ETH_HLEN +QCAFRM_HEADER_LEN + -QCAFRM_FOOTER_LEN +4 ) *QCASPI_RX_MAX_FRAMES ; + qca->buffer_size = (QCAFRM_MAX_MTU +VLAN_ETH_HLEN +QCAFRM_HEADER_LEN + +QCAFRM_FOOTER_LEN +QCASPI_HW_PKT_LEN ) *QCASPI_RX_MAX_FRAMES ;memset (&qca->stats,0 ,sizeof (struct qcaspi_stats ));
--
2.34.1
Stefan Wahren
maintainerPATCH v4 10/15 qca_spi: Log expected signature in error case
In reply to Stefan WahrenMost of the users doesn't know the expected signature of the QCA700x. So provide it within the error message. Btw use lowercase for hex as in the rest of the driver.
--- drivers/net/ethernet/qualcomm/qca_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/qualcomm/qca_spi.c +2 -2
@@ -1006,8 +1006,8 @@ qca_spi_probe(struct spi_device *spi)qcaspi_read_register (qca,SPI_REG_SIGNATURE , &signature);if (signature !=QCASPI_GOOD_SIGNATURE ) { -dev_err (&spi->dev,"Invalid signature (0x%04X)\n" , - signature); +dev_err (&spi->dev,"Invalid signature (expected 0x%04x, read 0x%04x)\n" , +QCASPI_GOOD_SIGNATURE , signature);free_netdev (qcaspi_devs);return -EFAULT ; }
--
2.34.1
Stefan Wahren
maintainerPATCH v4 11/15 qca_spi: Adjust log of SPI_REG_RDBUF_BYTE_AVA
In reply to Stefan WahrenAll known SPI registers of the QCA700x are 16 bit long. So adjust the formater width accordingly.
--- drivers/net/ethernet/qualcomm/qca_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/qualcomm/qca_spi.c +1 -1
@@ -359,7 +359,7 @@ qcaspi_receive(struct qcaspi *qca)/* Read the packet size. */ qcaspi_read_register (qca,SPI_REG_RDBUF_BYTE_AVA , &available); -netdev_dbg (net_dev,"qcaspi_receive: SPI_REG_RDBUF_BYTE_AVA: Value: %08x\n" , +netdev_dbg (net_dev,"qcaspi_receive: SPI_REG_RDBUF_BYTE_AVA: Value: %04x\n" , available);if (available >QCASPI_HW_BUF_LEN +QCASPI_HW_PKT_LEN ) {
--
2.34.1
Stefan Wahren
maintainerPATCH v4 12/15 qca_7k: Replace BSD boilerplate with SPDX
In reply to Stefan WahrenFrom: Stefan Wahren <[email protected]>
According to MODULE_LICENSE the driver is under a dual license. So replace the BSD license text with the proper SPDX tag.
--- drivers/net/ethernet/qualcomm/qca_7k.c | 17 +---------------- drivers/net/ethernet/qualcomm/qca_7k.h | 16 +--------------- drivers/net/ethernet/qualcomm/qca_7k_common.c | 15 +-------------- drivers/net/ethernet/qualcomm/qca_7k_common.h | 15 +-------------- drivers/net/ethernet/qualcomm/qca_debug.c | 15 +-------------- drivers/net/ethernet/qualcomm/qca_debug.h | 15 +-------------- drivers/net/ethernet/qualcomm/qca_spi.c | 15 +-------------- drivers/net/ethernet/qualcomm/qca_spi.h | 15 +-------------- drivers/net/ethernet/qualcomm/qca_uart.c | 15 +-------------- 9 files changed, 9 insertions(+), 129 deletions(-)
drivers/net/ethernet/qualcomm/qca_7k.c +1 -16
@@ -1,22 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause /* -* * Copyright (c) 2011, 2012, Qualcomm Atheros Communications Inc. * Copyright (c) 2014, I2SE GmbH -* -* Permission to use, copy, modify, and/or distribute this software -* for any purpose with or without fee is hereby granted, provided -* that the above copyright notice and this permission notice appear -* in all copies. -* -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL -* THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR -* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN -* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -* */ /* This module implements the Qualcomm Atheros SPI protocol for
drivers/net/ethernet/qualcomm/qca_7k.h +1 -15
@@ -1,21 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ /* * Copyright (c) 2011, 2012, Qualcomm Atheros Communications Inc. * Copyright (c) 2014, I2SE GmbH -* -* Permission to use, copy, modify, and/or distribute this software -* for any purpose with or without fee is hereby granted, provided -* that the above copyright notice and this permission notice appear -* in all copies. -* -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL -* THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR -* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN -* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -* */ /* Qualcomm Atheros SPI register definition.
drivers/net/ethernet/qualcomm/qca_7k_common.c +1 -14
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause /* * Copyright (c) 2011, 2012, Atheros Communications Inc. * Copyright (c) 2014, I2SE GmbH -* -* Permission to use, copy, modify, and/or distribute this software -* for any purpose with or without fee is hereby granted, provided -* that the above copyright notice and this permission notice appear -* in all copies. -* -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL -* THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR -* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN -* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* Atheros ethernet framing. Every Ethernet frame is surrounded
drivers/net/ethernet/qualcomm/qca_7k_common.h +1 -14
@@ -1,20 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ /* * Copyright (c) 2011, 2012, Atheros Communications Inc. * Copyright (c) 2014, I2SE GmbH -* -* Permission to use, copy, modify, and/or distribute this software -* for any purpose with or without fee is hereby granted, provided -* that the above copyright notice and this permission notice appear -* in all copies. -* -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL -* THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR -* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN -* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* Atheros Ethernet framing. Every Ethernet frame is surrounded by an atheros
drivers/net/ethernet/qualcomm/qca_debug.c +1 -14
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause /* * Copyright (c) 2011, 2012, Qualcomm Atheros Communications Inc. * Copyright (c) 2014, I2SE GmbH -* -* Permission to use, copy, modify, and/or distribute this software -* for any purpose with or without fee is hereby granted, provided -* that the above copyright notice and this permission notice appear -* in all copies. -* -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL -* THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR -* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN -* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* This file contains debugging routines for use in the QCA7K driver.
drivers/net/ethernet/qualcomm/qca_debug.h +1 -14
@@ -1,20 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ /* * Copyright (c) 2011, 2012, Qualcomm Atheros Communications Inc. * Copyright (c) 2014, I2SE GmbH -* -* Permission to use, copy, modify, and/or distribute this software -* for any purpose with or without fee is hereby granted, provided -* that the above copyright notice and this permission notice appear -* in all copies. -* -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL -* THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR -* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN -* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* This file contains debugging routines for use in the QCA7K driver.
drivers/net/ethernet/qualcomm/qca_spi.c +1 -14
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause /* * Copyright (c) 2011, 2012, Qualcomm Atheros Communications Inc. * Copyright (c) 2014, I2SE GmbH -* -* Permission to use, copy, modify, and/or distribute this software -* for any purpose with or without fee is hereby granted, provided -* that the above copyright notice and this permission notice appear -* in all copies. -* -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL -* THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR -* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN -* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* This module implements the Qualcomm Atheros SPI protocol for
drivers/net/ethernet/qualcomm/qca_spi.h +1 -14
@@ -1,20 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ /* * Copyright (c) 2011, 2012, Qualcomm Atheros Communications Inc. * Copyright (c) 2014, I2SE GmbH -* -* Permission to use, copy, modify, and/or distribute this software -* for any purpose with or without fee is hereby granted, provided -* that the above copyright notice and this permission notice appear -* in all copies. -* -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL -* THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR -* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN -* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* Qualcomm Atheros SPI register definition.
drivers/net/ethernet/qualcomm/qca_uart.c +1 -14
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause /* * Copyright (c) 2011, 2012, Qualcomm Atheros Communications Inc. * Copyright (c) 2017, I2SE GmbH -* -* Permission to use, copy, modify, and/or distribute this software -* for any purpose with or without fee is hereby granted, provided -* that the above copyright notice and this permission notice appear -* in all copies. -* -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL -* THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR -* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN -* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* This module implements the Qualcomm Atheros UART protocol for
--
2.34.1
Stefan Wahren
maintainerPATCH v4 13/15 qca_7k: Replace old mail address
In reply to Stefan WahrenFrom: Stefan Wahren <[email protected]>
The company I2SE has been acquired a long time ago. Switch to my private mail address before the I2SE account is deactivated.
--- drivers/net/ethernet/qualcomm/qca_7k_common.c | 2 +- drivers/net/ethernet/qualcomm/qca_spi.c | 2 +- drivers/net/ethernet/qualcomm/qca_uart.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/ethernet/qualcomm/qca_7k_common.c +1 -1
@@ -149,5 +149,5 @@ EXPORT_SYMBOL_GPL(qcafrm_fsm_decode);MODULE_DESCRIPTION ("Qualcomm Atheros QCA7000 common" );MODULE_AUTHOR ("Qualcomm Atheros Communications" ); -MODULE_AUTHOR ("Stefan Wahren <[email protected]>" ); +MODULE_AUTHOR ("Stefan Wahren <[email protected]>" );MODULE_LICENSE ("Dual BSD/GPL" );
drivers/net/ethernet/qualcomm/qca_spi.c +1 -1
@@ -1043,6 +1043,6 @@ module_spi_driver(qca_spi_driver);MODULE_DESCRIPTION ("Qualcomm Atheros QCA7000 SPI Driver" );MODULE_AUTHOR ("Qualcomm Atheros Communications" ); -MODULE_AUTHOR ("Stefan Wahren <[email protected]>" ); +MODULE_AUTHOR ("Stefan Wahren <[email protected]>" );MODULE_LICENSE ("Dual BSD/GPL" );MODULE_VERSION (QCASPI_DRV_VERSION );
drivers/net/ethernet/qualcomm/qca_uart.c +1 -1
@@ -397,6 +397,6 @@ module_serdev_device_driver(qca_uart_driver);MODULE_DESCRIPTION ("Qualcomm Atheros QCA7000 UART Driver" );MODULE_AUTHOR ("Qualcomm Atheros Communications" ); -MODULE_AUTHOR ("Stefan Wahren <[email protected]>" ); +MODULE_AUTHOR ("Stefan Wahren <[email protected]>" );MODULE_LICENSE ("Dual BSD/GPL" );MODULE_VERSION (QCAUART_DRV_VERSION );
--
2.34.1
Stefan Wahren
maintainerPATCH v4 14/15 mailmap: add entry for Stefan Wahren
In reply to Stefan WahrenAdd a .mailmap entry because my old i2se.com address will be deactivated in the near future.
--- .mailmap | 1 + 1 file changed, 1 insertion(+)
.mailmap +1 -0
@@ -568,6 +568,7 @@ Simon Kelley <[email protected]> Sricharan Ramabadhran <[email protected]> <[email protected]> Srinivas Ramana <[email protected]> <[email protected]> Sriram R <[email protected]> <[email protected]> +Stefan Wahren <[email protected]> <[email protected]> Stéphane Witzmann <[email protected]> Stephen Hemminger <[email protected]> <[email protected]> Stephen Hemminger <[email protected]> <[email protected]>
--
2.34.1
Stefan Wahren
maintainerPATCH v4 15/15 MAINTAINERS: add entry for qca7k driver(s)
In reply to Stefan WahrenSince upstreaming i contributed a lot to this driver(s), so add myself as a maintainer.
--- MAINTAINERS | 7 +++++++ 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
@@ -17990,6 +17990,13 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git F: Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml F: drivers/net/wireless/ath/ath9k/ +QUALCOMM ATHEROS QCA7K ETHERNET DRIVER +M: Stefan Wahren <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/net/qca,qca7000.txt +F: drivers/net/ethernet/qualcomm/qca* + QUALCOMM BAM-DMUX WWAN NETWORK DRIVER M: Stephan Gerhold <[email protected]> L: [email protected]
--
2.34.1
This series was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 8 lines · On Sun, 28 Jan 2024 21:10:44 +0100 you wrote:
This series contains a wild collection of improvements for the
qca_spidriver. This is a follow-up series to the recent bugfixes [1].Patch 1, 2 & 3 in this series is the initially intended rework of netdev_open/close. Patch 4 & 10 are minor functional improvements and the rest is clean-up.
[...]
Here is the summary with links:
- [V4,01/15,net-next] qca_spi: Add check for kthread_stop
(no matching commit)
- [V4,02/15,net-next] qca_spi: Improve SPI thread creation
(no matching commit)
- [V4,03/15,net-next] qca_spi: Improve SPI IRQ handling
(no matching commit)
- [V4,04/15,net-next] qca_spi: Avoid skb_copy_expand in TX path (no matching commit)
- [V4,05/15,net-next] qca_7k_common: Drop unnecessary function description (no matching commit)
- [V4,06/15,net-next] qca_7k_common: Drop unused len from qcafrm_handle (no matching commit)
- [V4,07/15,net-next] qca_spi: Add QCASPI prefix to ring defines (no matching commit)
- [V4,08/15,net-next] qca_spi: Introduce QCASPI_RX_MAX_FRAMES (no matching commit)
- [V4,09/15,net-next] qca_spi: Improve calculation of RX buffer size (no matching commit)
- [V4,10/15,net-next] qca_spi: Log expected signature in error case (no matching commit)
- [V4,11/15,net-next] qca_spi: Adjust log of SPI_REG_RDBUF_BYTE_AVA (no matching commit)
- [V4,12/15,net-next] qca_7k: Replace BSD boilerplate with SPDX (no matching commit)
- [V4,13/15,net-next] qca_7k: Replace old mail address
(no matching commit)
- [V4,14/15,net-next] mailmap: add entry for Stefan Wahren
https://git.kernel.org/netdev/net-next/c/a47996ebbe40
- [V4,15/15,net-next] MAINTAINERS: add entry for qca7k driver(s) (no matching commit)
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html