Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1434167pxj; Fri, 4 Jun 2021 14:29:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5DPZ7xJE4yeHpL/H0boJCNd7C9W4bqBGGoXeiOSlEPKKEO2qlItpZ5XzlZ8o5tnZiJGiE X-Received: by 2002:a17:906:390f:: with SMTP id f15mr6271492eje.270.1622842178914; Fri, 04 Jun 2021 14:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622842178; cv=none; d=google.com; s=arc-20160816; b=TXhxX7ChqjHQSirOFv/RcVUsV03fiuF6RTyNwXY2zBUt7hEQsFUb/cHRjmcPG5Sluo l4OLgYChryh05AlV7sLMvIN/7HJ/5+5tSEgr7Oid6SRIsvKG3qdUPLWYppB5wVYN47GX 3MaAvy+oW3uaUwE4lMQEgA5qgy9dCJ7Rlvv6OpcLN2uyRAghYowIxfpAvHfzAcNV/bCG eTzSEHZrGYraOO9yXNvL70Z5RVO0vcEG0XqeJEa9NPk6wtPHSNO9nC9/P7xeCIb1iky/ 6afvWiH1diGlJu6THcFasqqN0xFGxiNfsoLnuzs5F/8HWj/gikNpyMpszXQjcjztQHr3 oDDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4UyrG9Z9DorUurxry+5VL+nEcP5Ybc7uiEG9qyPmX1Y=; b=UaogfjyuiMu4PvGExGfT7SM08kaXHYWfJXBO2yKBffyMGHJTtV3Gcetm+YIihrRwRF BumpxHEfmC22oet2o/cpP+rkMMHE2bBRRC2N0Iv+XFABPrDeGl5yNjxes+w5Ea+665I+ Ahwi/HOkumD8tY5qAYkIWtlQHPKLUofrgq9BDY0RJjjw2hv+igxIqDqE5ul7wL8k0c2Q XGoT+u37w1WYcAKvDIvbDcnNJTo79172HZMygpMKK0hlsJsMvGK40sSFpZvM/2Wc5QHS kjzV1FhAbFf0qNFNrDm4llkaXgRYhzBW/jn+OmtirfdoZcdPKHX7wMhGn/lZFJSvOnva oOTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fWNPBRRD; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f29si3276962ejj.667.2021.06.04.14.29.10; Fri, 04 Jun 2021 14:29:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fWNPBRRD; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231336AbhFDV35 (ORCPT + 99 others); Fri, 4 Jun 2021 17:29:57 -0400 Received: from mail-pj1-f50.google.com ([209.85.216.50]:42813 "EHLO mail-pj1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231189AbhFDV34 (ORCPT ); Fri, 4 Jun 2021 17:29:56 -0400 Received: by mail-pj1-f50.google.com with SMTP id l23-20020a17090a0717b029016ae774f973so5965287pjl.1; Fri, 04 Jun 2021 14:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4UyrG9Z9DorUurxry+5VL+nEcP5Ybc7uiEG9qyPmX1Y=; b=fWNPBRRDnEYp18yVR/nkNS+p/+5DWMyQHXNN7sp3So+WCCvaPgC1xAqotIrfTP5N8V ZHu14j6sRYezqdTGaI2WYCj14wS3dKzwk3zMOJZTjZzgkfueePHpTIoLSt8aDSGQ5UjE c1/XbGU0lHwGbymsMF1UAggKTNy1j2mwlJHmPoYPvzZFOL7aOO/NyRe2+PBW9FtYidIP qN0IaamR2M+TJyMdPhonjPhar6AilQ487eHD9d19+0uVroaibZ4EOoLQxz49CFwMLJFi ImHOLLPWdaHtiCJZIN+7G0RmcIjUOe+lRnxLtxSF/R5fv4wYE4ko0CxxbbGNeHVBi1D8 Z4eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4UyrG9Z9DorUurxry+5VL+nEcP5Ybc7uiEG9qyPmX1Y=; b=Bf04aU1qyWhM7QSe60KEztBHc8tNabMLfTxi58FaoeH/TERJeJXyDoSEDKi8FQpt1/ RjA9kw1Q0u8DIjtfvuhtpsu250FeOk2TxlaXypxCYRDBQScGvm6v8Zk1OYShQnJbgs7P uMq62H1yzuX4+kqHWNgRInFUfTYBWqoeDXo1jbKwSeMttaH0QPsOb5OpTgv9kIGH6OPa 3+ucyjZkiRue2lP7r1X2sVVEw8woQNy6oZzueGSTC56Bj/EqNSHxoUtonItlD+Q1iQFk mDVQbYD5/2e3rCbmYaDoLwcCieT9sSDwylNmD6U9CVhU2lxcg6JG7F63vBckc2KPNARi QWcQ== X-Gm-Message-State: AOAM533eeWnSLU50apomofrnP9IZp5xoNtYE14wz0tp7lfW8RgntdEvQ ifXaZz0Pq/XatIRHff7dKszBgcjDGuYa3CEm7CkcXMrJXhFDEg== X-Received: by 2002:a17:90a:17ad:: with SMTP id q42mr19181275pja.181.1622842029398; Fri, 04 Jun 2021 14:27:09 -0700 (PDT) MIME-Version: 1.0 References: <20210522131827.67551-4-verdre@v0yd.nl> <20210604211447.GA2240001@bjorn-Precision-5520> In-Reply-To: <20210604211447.GA2240001@bjorn-Precision-5520> From: Andy Shevchenko Date: Sat, 5 Jun 2021 00:26:52 +0300 Message-ID: Subject: Re: [RFC PATCH 3/3] mwifiex: pcie: add reset_wsid quirk for Surface 3 To: Bjorn Helgaas Cc: =?UTF-8?Q?Jonas_Dre=C3=9Fler?= , Amitkumar Karwar , Ganapathi Bhat , Sharvari Harisangam , Xinming Hu , Kalle Valo , "David S. Miller" , Jakub Kicinski , Tsuchiya Yuto , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Maximilian Luz , Andy Shevchenko , Bjorn Helgaas , =?UTF-8?Q?Pali_Roh=C3=A1r?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sat, Jun 5, 2021 at 12:15 AM Bjorn Helgaas wrote: > On Sat, May 22, 2021 at 03:18:27PM +0200, Jonas Dre=C3=9Fler wrote: > > From: Tsuchiya Yuto > > > > This commit adds reset_wsid quirk and uses this quirk for Surface 3 on > > card reset. > > > > To reset mwifiex on Surface 3, it seems that calling the _DSM method > > exists in \_SB.WSID [1] device is required. > > > > On Surface 3, calling the _DSM method removes/re-probes the card by > > itself. So, need to place the reset function before performing FLR and > > skip performing any other reset-related works. > > Maybe this is a nit-pick, but I understand "probing" to be something > the OS does, namely what we normally call "enumeration," i.e., > discovering a device. > > So it sounds like the _DSM causes a logical hot-removal of the card, > which the PCI hotplug driver should notice and it should remove the > driver and remove the pci_dev. > > And the _DSM also causes a hot-add (reading the code below, it looks > like this is actually a second _DSM), _DSM can be only one (single) per device node in ACPI. But _DSM may have "functions", that's what we see here. > which the PCI hotplug driver > should also notice and enumerate the bus (i.e., it reads config space > looking for a device). This all would cause a new pci_dev to be > allocated, resources assigned for its BARs, and the driver .probe() > method to be called again? > > That seems like a lot, so maybe I didn't understand what's actually > happening. --=20 With Best Regards, Andy Shevchenko