linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: linux-pci@vger.kernel.org
Cc: Lukas Wunner <lukas@wunner.de>,
	linux-kernel@vger.kernel.org, mmyangfl@gmail.com
Subject: Enumeration issue with QCA9005 AR9462
Date: Mon, 20 Aug 2018 18:06:24 -0500	[thread overview]
Message-ID: <20180820230624.GB154536@bhelgaas-glaptop.roam.corp.google.com> (raw)

mmyangfl@gmail.com reported a problem [1]: on v4.17, a QCA9005 AR9462
wifi device was present at boot, but disappeared after suspend/resume.

He/she also tested a recent kernel (5c60a7389d79, from Thu Aug 16),
where the suspend/resume problem doesn't seem to happen, but the wifi
device isn't enumerated correctly at boot-time.

  pci 0000:00:1c.3: PCIe Root Port to [bus 03-07]
  pci 0000:03:00.0: [1ae9:0101] PCIe Switch Upstream Port to [bus 04-07]
  pci 0000:04:00.0: [1ae9:0200] PCIe Switch Downstream Port to [bus 05]
  pci 0000:05:00.0: [168c:0034] QCA9005 AR9462 wifi NIC

These messages are extracted from [2]:

[    0.928714] pciehp 0000:04:00.0:pcie204: Slot #0 AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug+ Surprise+ Interlock- NoCompl- LLActRep+
[    0.928752] pciehp 0000:04:00.0:pcie204: Slot(0-1): Card not present
[    0.928811] pciehp 0000:04:00.0:pcie204: Slot(0-1): Link Up
[    0.928815] pciehp 0000:04:00.0:pcie204: Slot(0-1): No adapter

After manually executing:

  echo 1 > /sys/devices/pci0000\:00/0000\:00\:1c.3/0000\:03\:00.0/0000\:04\:00.0/rescan

the wifi NIC is discovered correctly:

[  114.649896] pci 0000:05:00.0: [168c:0034] type 00 class 0x028000
[  114.649977] pci 0000:05:00.0: reg 0x10: [mem 0xf7400000-0xf747ffff 64bit]
[  114.650090] pci 0000:05:00.0: reg 0x30: [mem 0xf7480000-0xf748ffff pref]

[1] https://bugzilla.kernel.org/show_bug.cgi?id=200839
[2] https://bugzilla.kernel.org/attachment.cgi?id=277923

             reply	other threads:[~2018-08-20 23:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-20 23:06 Bjorn Helgaas [this message]
2018-08-21  5:47 ` Enumeration issue with QCA9005 AR9462 Lukas Wunner
2018-08-21  7:25   ` Lukas Wunner
2018-08-21 16:50     ` Bjorn Helgaas
2018-08-21 20:24       ` Rajat Jain

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=20180820230624.GB154536@bhelgaas-glaptop.roam.corp.google.com \
    --to=helgaas@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lukas@wunner.de \
    --cc=mmyangfl@gmail.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;
as well as URLs for NNTP newsgroup(s).