From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Ben Hutchings <bhutchings@solarflare.com>
Cc: David Miller <davem@davemloft.net>,
netdev@vger.kernel.org, linux-net-drivers@solarflare.com
Subject: Re: [PATCH net-next 07/16] sfc: Limit scope of a Falcon A1 IRQ workaround
Date: Mon, 26 Aug 2013 16:31:37 +0400 [thread overview]
Message-ID: <521B4AA9.9000906@cogentembedded.com> (raw)
In-Reply-To: <1377471823.2586.76.camel@deadeye.wl.decadent.org.uk>
Hello.
On 26-08-2013 3:03, Ben Hutchings wrote:
> We unconditionally acknowledge legacy interrupts just before disabling
> them. This workaround is needed on Falcon A1 but probably not on
> later chips where the legacy interrupt mechanism is different. It was
> also originally done after the IRQ handler was removed, not before.
> Restore the original behaviour for Falcon A1 only by doing this
> acknowledgement in the efx_nic_type::fini operation.
> Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
> ---
> drivers/net/ethernet/sfc/falcon.c | 4 ++--
> drivers/net/ethernet/sfc/nic.c | 7 -------
> drivers/net/ethernet/sfc/nic.h | 1 -
> 3 files changed, 2 insertions(+), 10 deletions(-)
> diff --git a/drivers/net/ethernet/sfc/falcon.c b/drivers/net/ethernet/sfc/falcon.c
> index f8de382..4492129 100644
> --- a/drivers/net/ethernet/sfc/falcon.c
> +++ b/drivers/net/ethernet/sfc/falcon.c
> @@ -336,7 +336,7 @@ static void falcon_prepare_flush(struct efx_nic *efx)
> *
> * NB most hardware supports MSI interrupts
> */
> -inline void falcon_irq_ack_a1(struct efx_nic *efx)
> +static inline void falcon_irq_ack_a1(struct efx_nic *efx)
Does inline make sense still when this now is referenced indirectly?
> {
> efx_dword_t reg;
>
> @@ -2343,7 +2343,7 @@ const struct efx_nic_type falcon_a1_nic_type = {
> .remove = falcon_remove_nic,
> .init = falcon_init_nic,
> .dimension_resources = falcon_dimension_resources,
> - .fini = efx_port_dummy_op_void,
> + .fini = falcon_irq_ack_a1,
> .monitor = falcon_monitor,
> .map_reset_reason = falcon_map_reset_reason,
> .map_reset_flags = falcon_map_reset_flags,
WBR, Sergei
next prev parent reply other threads:[~2013-08-26 12:31 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-25 22:56 Pull request: sfc-next 2013-08-25 Ben Hutchings
2013-08-25 23:00 ` [PATCH net-next 01/16] sfc: Make MCDI independent of Siena Ben Hutchings
2013-08-25 23:00 ` [PATCH net-next 02/16] sfc: Add GFP flags to efx_nic_alloc_buffer() and make most callers allow blocking Ben Hutchings
2013-08-25 23:01 ` [PATCH net-next 03/16] sfc: Make struct efx_special_buffer less special Ben Hutchings
2013-08-25 23:01 ` [PATCH net-next 04/16] sfc: Rename Falcon-architecture register definitions Ben Hutchings
2013-08-25 23:02 ` [PATCH net-next 05/16] sfc: Remove efx_process_channel_now() Ben Hutchings
2013-08-25 23:03 ` [PATCH net-next 06/16] sfc: Rework IRQ enable/disable Ben Hutchings
2013-08-25 23:03 ` [PATCH net-next 07/16] sfc: Limit scope of a Falcon A1 IRQ workaround Ben Hutchings
2013-08-26 12:31 ` Sergei Shtylyov [this message]
2013-08-26 22:47 ` Ben Hutchings
2013-08-25 23:05 ` [PATCH net-next 08/16] sfc: Stop RX refill before flushing RX queues Ben Hutchings
2013-08-25 23:06 ` [PATCH net-next 09/16] sfc: Remove bogus call to efx_release_tx_buffers() Ben Hutchings
2013-08-25 23:07 ` [PATCH net-next 10/16] sfc: Refactor queue teardown sequence to allow for EF10 flush behaviour Ben Hutchings
2013-08-25 23:26 ` [PATCH net-next 11/16] sfc: Move and rename Falcon/Siena common NIC operations Ben Hutchings
2013-08-25 23:27 ` [PATCH net-next 12/16] sfc: Translate MCDI error numbers received in events Ben Hutchings
2013-08-25 23:29 ` [PATCH net-next 13/16] sfc: Update MCDI protocol definitions for EF10 Ben Hutchings
2013-08-25 23:32 ` [PATCH net-next 14/16] sfc: Add support for MCDI v2 Ben Hutchings
2013-08-25 23:33 ` [PATCH net-next 15/16] sfc: Fix race in completion handling Ben Hutchings
2013-08-25 23:34 ` [PATCH net-next 16/16] sfc: Update and improve kernel-doc for efx_mcdi_state & efx_mcdi_iface Ben Hutchings
2013-08-27 16:18 ` Pull request: sfc-next 2013-08-25 David Miller
2013-08-27 16:26 ` Ben Hutchings
2013-08-27 16:37 ` David Miller
2013-08-27 16:52 ` Ben Hutchings
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=521B4AA9.9000906@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=bhutchings@solarflare.com \
--cc=davem@davemloft.net \
--cc=linux-net-drivers@solarflare.com \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).