From: Michal Kazior <michal.kazior@tieto.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH v2 01/10] ath10k: decouple pci init/deinit logic
Date: Fri, 14 Jun 2013 14:02:00 +0200 [thread overview]
Message-ID: <51BB0638.9020802@tieto.com> (raw)
In-Reply-To: <87wqpxnarh.fsf@kamboji.qca.qualcomm.com>
On 13/06/13 20:09, Kalle Valo wrote:
> So when booting the firwmware we call:
>
> hif_power_up()
> hif_start()
>
> and when we want to kill the firmware we do:
>
> hif_stop()
> hif_power_down()
>
> [...]
You're right. I'll fix that.
> I noticed ath10k_pci_ce_init() also allocs host memory etc. If possible,
> in the future we might want to refactor the function into two:
> ath10k_pci_ce_init() and ath10k_pci_ce_start(). And the former would be
> called only from ath10k_pci_probe(). That way we would not need to do
> any memory allocation during start time.
>
> But no need to refactor it right now, this is good enough for the first
> implementation.
There's also some an asymmetry here.
We should be enabling/disabling irqs when we start/stop, shouldn't we?
But then again we need interrupts _before_ start() for BMI phase, while
it's a also a good idea to disable them upon stop(). We do stop CE
interrupts by poking up device registers, but we don't unregister irq
handlers. There might be a race in there that we're not aware
of/observed yet.
I'm thinking of having only 3 functions: start_bmi_phase,
start_htc_phase, stop (that would handle either state transition). But
that would require the aforementioned proper alloc/init/setup separation
to be done first.
-- Pozdrawiam / Best regards, Michal Kazior.
next prev parent reply other threads:[~2013-06-14 12:02 UTC|newest]
Thread overview: 72+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-12 12:53 [ath9k-devel] [PATCH v2 00/10] ath10k: device setup refactor Michal Kazior
2013-06-12 12:53 ` [ath9k-devel] [PATCH v2 01/10] ath10k: decouple pci init/deinit logic Michal Kazior
2013-06-13 18:09 ` Kalle Valo
2013-06-14 12:02 ` Michal Kazior [this message]
2013-06-14 12:14 ` Kalle Valo
2013-06-12 12:53 ` [ath9k-devel] [PATCH v2 02/10] ath10k: decouple core start/stop logic Michal Kazior
2013-06-12 12:53 ` [ath9k-devel] [PATCH v2 03/10] ath10k: allow deferred regd update Michal Kazior
2013-06-13 18:08 ` Kalle Valo
2013-06-14 12:03 ` Michal Kazior
2013-06-12 12:53 ` [ath9k-devel] [PATCH v2 04/10] ath10k: reset BMI state upon init Michal Kazior
2013-06-12 12:53 ` [ath9k-devel] [PATCH v2 05/10] ath10k: decouple suspend code Michal Kazior
2013-06-12 12:53 ` [ath9k-devel] [PATCH v2 06/10] ath10k: move free_vdev_map initialization Michal Kazior
2013-06-12 12:53 ` [ath9k-devel] [PATCH v2 07/10] ath10k: make sure all resources are freed upon ath10k_stop() Michal Kazior
2013-06-12 12:54 ` [ath9k-devel] [PATCH v2 08/10] ath10k: defer hw setup to start/stop mac80211 hooks Michal Kazior
2013-06-14 12:23 ` Kalle Valo
2013-06-14 12:43 ` Michal Kazior
2013-06-12 12:54 ` [ath9k-devel] [PATCH v2 09/10] ath10k: skip updating some params during resume Michal Kazior
2013-06-12 12:54 ` [ath9k-devel] [PATCH v2 10/10] ath10k: store firmware files in memory Michal Kazior
2013-06-25 7:59 ` [ath9k-devel] [PATCH v3 0/9] ath10k: device setup refactor Michal Kazior
2013-06-25 7:59 ` [ath9k-devel] [PATCH v3 1/9] ath10k: decouple pci start/stop logic Michal Kazior
2013-07-05 6:29 ` Kalle Valo
2013-07-05 7:05 ` Michal Kazior
2013-06-25 7:59 ` [ath9k-devel] [PATCH v3 2/9] ath10k: decouple core " Michal Kazior
2013-06-25 7:59 ` [ath9k-devel] [PATCH v3 3/9] ath10k: allow deferred regd update Michal Kazior
2013-06-25 7:59 ` [ath9k-devel] [PATCH v3 4/9] ath10k: reset BMI state upon init Michal Kazior
2013-06-25 7:59 ` [ath9k-devel] [PATCH v3 5/9] ath10k: decouple suspend code Michal Kazior
2013-07-05 6:51 ` Kalle Valo
2013-07-05 7:12 ` Michal Kazior
2013-07-05 7:20 ` Kalle Valo
2013-06-25 7:59 ` [ath9k-devel] [PATCH v3 6/9] ath10k: move free_vdev_map initialization Michal Kazior
2013-07-05 7:03 ` Kalle Valo
2013-06-25 7:59 ` [ath9k-devel] [PATCH v3 7/9] ath10k: make sure all resources are freed upon ath10k_stop() Michal Kazior
2013-06-25 7:59 ` [ath9k-devel] [PATCH v3 8/9] ath10k: defer hw setup to start/stop mac80211 hooks Michal Kazior
2013-06-25 7:59 ` [ath9k-devel] [PATCH v3 9/9] ath10k: store firmware files in memory Michal Kazior
2013-06-25 8:09 ` [ath9k-devel] [PATCH v3 10/10] ath10k: skip fw stats debugfs interface if device is down Michal Kazior
2013-07-05 7:09 ` Kalle Valo
2013-07-16 7:19 ` [PATCH v3 00/10] ath10k: device setup refactor Michal Kazior
2013-07-16 7:19 ` [PATCH v3 01/10] ath10k: decouple pci start/stop logic Michal Kazior
2013-07-16 7:19 ` [PATCH v3 02/10] ath10k: decouple core " Michal Kazior
2013-07-16 7:19 ` [PATCH v3 03/10] ath10k: allow deferred regd update Michal Kazior
2013-07-16 7:19 ` [PATCH v3 04/10] ath10k: reset BMI state upon init Michal Kazior
2013-07-16 7:19 ` [PATCH v3 05/10] ath10k: decouple suspend code Michal Kazior
2013-07-16 7:19 ` [PATCH v3 06/10] ath10k: move free_vdev_map initialization Michal Kazior
2013-07-16 7:19 ` [PATCH v3 07/10] ath10k: make sure all resources are freed upon ath10k_stop() Michal Kazior
2013-07-16 7:19 ` [PATCH v3 08/10] ath10k: defer hw setup to start/stop mac80211 hooks Michal Kazior
2013-07-16 7:19 ` [PATCH v3 09/10] ath10k: store firmware files in memory Michal Kazior
2013-07-16 7:19 ` [PATCH v3 10/10] ath10k: skip fw stats debugfs interface if device is down Michal Kazior
2013-07-16 7:27 ` [PATCH v3 00/10] ath10k: device setup refactor Michal Kazior
2013-07-16 7:38 ` [PATCH v4 " Michal Kazior
2013-07-16 7:38 ` Michal Kazior
2013-07-16 7:38 ` [PATCH v4 01/10] ath10k: decouple pci start/stop logic Michal Kazior
2013-07-16 7:38 ` Michal Kazior
2013-07-16 7:38 ` [PATCH v4 02/10] ath10k: decouple core " Michal Kazior
2013-07-16 7:38 ` Michal Kazior
2013-07-16 7:38 ` [PATCH v4 03/10] ath10k: allow deferred regd update Michal Kazior
2013-07-16 7:38 ` Michal Kazior
2013-07-16 7:38 ` [PATCH v4 04/10] ath10k: reset BMI state upon init Michal Kazior
2013-07-16 7:38 ` Michal Kazior
2013-07-16 7:38 ` [PATCH v4 05/10] ath10k: decouple suspend code Michal Kazior
2013-07-16 7:38 ` Michal Kazior
2013-07-16 7:38 ` [PATCH v4 06/10] ath10k: move free_vdev_map initialization Michal Kazior
2013-07-16 7:38 ` Michal Kazior
2013-07-16 7:38 ` [PATCH v4 07/10] ath10k: make sure all resources are freed upon ath10k_stop() Michal Kazior
2013-07-16 7:38 ` Michal Kazior
2013-07-16 7:38 ` [PATCH v4 08/10] ath10k: defer hw setup to start/stop mac80211 hooks Michal Kazior
2013-07-16 7:38 ` Michal Kazior
2013-07-16 7:38 ` [PATCH v4 09/10] ath10k: store firmware files in memory Michal Kazior
2013-07-16 7:38 ` Michal Kazior
2013-07-16 7:38 ` [PATCH v4 10/10] ath10k: skip fw stats debugfs interface if device is down Michal Kazior
2013-07-16 7:38 ` Michal Kazior
2013-07-19 10:18 ` [PATCH v4 00/10] ath10k: device setup refactor Kalle Valo
2013-07-19 10:18 ` Kalle Valo
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=51BB0638.9020802@tieto.com \
--to=michal.kazior@tieto.com \
--cc=ath9k-devel@lists.ath9k.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 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.