All of
 help / color / mirror / Atom feed
From: Kalle Valo <>
To: Miaoqing Pan <>
	Miaoqing Pan <>
Subject: Re: [PATCH] ath9k: fix sleeping in atomic context
Date: Sun, 29 Aug 2021 07:12:41 +0000 (UTC)	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Miaoqing Pan <> wrote:

> The problem is that gpio_free() can sleep and the cfg_soc() can be
> called with spinlocks held. One problematic call tree is:
> --> ath_reset_internal() takes &sc->sc_pcu_lock spin lock
>    --> ath9k_hw_reset()
>       --> ath9k_hw_gpio_request_in()
>          --> ath9k_hw_gpio_request()
>             --> ath9k_hw_gpio_cfg_soc()
> Remove gpio_free(), use error message instead, so we should make sure
> there is no GPIO conflict.
> Also remove ath9k_hw_gpio_free() from ath9k_hw_apply_gpio_override(),
> as gpio_mask will never be set for SOC chips.
> Signed-off-by: Miaoqing Pan <>
> Signed-off-by: Kalle Valo <>

Patch applied to ath-next branch of ath.git, thanks.

7c48662b9d56 ath9k: fix sleeping in atomic context


      reply	other threads:[~2021-08-29  7:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-09  4:05 [PATCH] ath9k: fix sleeping in atomic context Miaoqing Pan
2021-08-29  7:12 ` Kalle Valo [this message]

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \

* 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 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.