From: Stefan Wahren <wahrenst@gmx.net>
To: Andrew Lunn <andrew@lunn.ch>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 02/12 net-next] qca_spi: Improve SPI IRQ handling
Date: Sun, 17 Dec 2023 20:17:56 +0100 [thread overview]
Message-ID: <8cdac20c-e860-4157-95c0-6e8250e50af5@gmx.net> (raw)
In-Reply-To: <c5b81005-e309-46df-b534-b24814d10006@lunn.ch>
Hi Andrew,
Am 17.12.23 um 19:14 schrieb Andrew Lunn:
> On Thu, Dec 14, 2023 at 04:09:34PM +0100, Stefan Wahren wrote:
>> The 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.
> Could you replace the kernel thread with a threaded interrupt handler?
the kernel thread is responsible for receiving, transmitting and reset
handling (there is no GPIO reset in this driver) which must be
synchronized along the same SPI interface. The interrupt just signalize
a chip reset or a received packet is available.
Could you please elaborate this request more in detail:
What is the problem with the kernel thread?
Why should i use the threaded interrupt as a replacement instead of e.g.
workqueue?
Please don't get me wrong, but i need to convince my employer for such a
big rewrite.
Regards
>
> Andrew
next prev parent reply other threads:[~2023-12-17 19:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-14 15:09 [PATCH 00/12 net-next] qca_spi: collection of improvements Stefan Wahren
2023-12-14 15:09 ` [PATCH 01/12 net-next] qca_spi: Improve SPI thread creation Stefan Wahren
2023-12-14 15:09 ` [PATCH 02/12 net-next] qca_spi: Improve SPI IRQ handling Stefan Wahren
2023-12-17 18:14 ` Andrew Lunn
2023-12-17 19:17 ` Stefan Wahren [this message]
2023-12-17 22:48 ` Andrew Lunn
2023-12-18 10:23 ` Stefan Wahren
2023-12-14 15:09 ` [PATCH 03/12 net-next] qca_spi: Avoid skb_copy_expand in TX path Stefan Wahren
2023-12-14 15:09 ` [PATCH 04/12 net-next] qca_7k_common: Drop unnecessary function description Stefan Wahren
2023-12-14 15:09 ` [PATCH 05/12 net-next] qca_7k_common: Drop unused len from qcafrm_handle Stefan Wahren
2023-12-14 15:09 ` [PATCH 06/12 net-next] qca_spi: Add QCASPI prefix to ring defines Stefan Wahren
2023-12-14 15:09 ` [PATCH 07/12 net-next] qca_spi: Introduce QCASPI_RX_MAX_FRAMES Stefan Wahren
2023-12-14 15:09 ` [PATCH 08/12 net-next] qca_spi: Improve calculation of RX buffer size Stefan Wahren
2023-12-14 15:09 ` [PATCH 09/12 net-next] qca_spi: Log expected signature in error case Stefan Wahren
2023-12-14 15:09 ` [PATCH 10/12 net-next] qca_spi: Adjust log of SPI_REG_RDBUF_BYTE_AVA Stefan Wahren
2023-12-14 15:09 ` [PATCH 11/12 net-next] qca_7k: Replace BSD boilerplate with SPDX Stefan Wahren
2023-12-14 15:09 ` [PATCH 12/12 net-next] qca_7k: Replace old mail address Stefan Wahren
2023-12-16 2:25 ` [PATCH 00/12 net-next] qca_spi: collection of improvements Jakub Kicinski
2023-12-16 9:26 ` Stefan Wahren
2023-12-18 22:17 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8cdac20c-e860-4157-95c0-6e8250e50af5@gmx.net \
--to=wahrenst@gmx.net \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox