Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2822344ybt; Mon, 22 Jun 2020 07:54:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS+SyJ2SaFwWOjIffbC4FZTQYNFtvfnwwgD26bhcRqXlz615VjADvvzHAhLyoe2TCYVjuJ X-Received: by 2002:a17:906:3407:: with SMTP id c7mr2868835ejb.284.1592837662405; Mon, 22 Jun 2020 07:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592837662; cv=none; d=google.com; s=arc-20160816; b=o4434PZr0ruu3sygu7n6Oaufn1YGn5LlMclP6nsTojLwbm9qCw2r6U6KK0/j/sPNjQ +YxlmfZVxjrD3/Ypr5dNAt9M1O0M4jgS/X06wE2ld9z6JXJB3NALLeTIamt+M8oWgVSG q9f/Od79Nbq6pLNQnjiHr/bE7b/RpDlMEekRSQtqKQLxhyFMnVxFpps3xCYPjLLo8Vj/ pnHl2pZOvXbWPzYs55gS81yQxuPL1g7JZd5XX2oTmTEdLkDOYEf5wiqGiBkPq+Zh4JrZ un/14oDwEt2XBFXUnq9x+I3PPiDuA8FcSnRJQBmaqUaH+HbhUHfjlFtQmlZC2Sf2T6so 6y0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=P7taa7KigpgUZeLwSBQmyXWitMWaWACRV2B/k/C5al0=; b=e59mihEMQpC5Ie+njSY5hIsAR6m4WBeS6jvQPH5bznfA4MLHDloWLK1Dqt3BkImEJY G3dS4ghleN8mN8oB7gwfXPTi/zpLEnUeeVxok1RvsE4GI04P6TL0tuamvVx8FWy2lvPE oO6ueFiFSoXalu3S+1SDqYJcpvi0L2npADGwkMaYw6ZaiVD8parC36/zSkH8fPX9JdBW AMYYdsh5Ol26/VMVcAs/oV9W+CM/Jp+3fHNiyiv6sghX3CqzL7VhXYhelt3iBCon+IX+ cwdUUPMzi+coQTEUH6Bdj2bTFWY/Nf3K4IrolVz4N95xy2zaox2/fjlYXKcRpp8xvzKx +zgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gRStwUcL; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t24si11039314edc.527.2020.06.22.07.53.58; Mon, 22 Jun 2020 07:54:22 -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=@redhat.com header.s=mimecast20190719 header.b=gRStwUcL; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729319AbgFVOxs (ORCPT + 99 others); Mon, 22 Jun 2020 10:53:48 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:21864 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729280AbgFVOxr (ORCPT ); Mon, 22 Jun 2020 10:53:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592837625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=P7taa7KigpgUZeLwSBQmyXWitMWaWACRV2B/k/C5al0=; b=gRStwUcLtw61tpAoCwUgIqKOCrQA4OKSb9xWCrKE8qnzqjz5H7e4XFay7W9ZwO79e4TNSf nTV64SA6n7zpvQ7+5shsboCatJyJgpI+0HvxqxvsGXIzeNsO4mI8rOa01P8Ep3voHo0zQx 6Dva+E5yASxXfEz5gb7GYs42vltpcQA= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-340-EazmJF60OC-3O3DTayO21w-1; Mon, 22 Jun 2020 10:53:43 -0400 X-MC-Unique: EazmJF60OC-3O3DTayO21w-1 Received: by mail-wr1-f70.google.com with SMTP id w4so10952123wrl.13 for ; Mon, 22 Jun 2020 07:53:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=P7taa7KigpgUZeLwSBQmyXWitMWaWACRV2B/k/C5al0=; b=pobp+Mc3oS44gs27WzSL4TYVyNj4eVc4YPPr0umZMOR+qwTM1rXTH+Naf+M50DsIDy jbp4KGfxrXjkh8aWX2fLhUdbHWZ+NNs5Jes52ObFUM5xw8ty7XnSDqZKEjN1JXdnxs+D hoeuxDncLDh02JV4S50awk0chpdzMmRJDLeAvtr/4LJR5koU2cof14cpzJsoFDl8m2Xa +/EZ8EFKI5vn/qFQ4L2A974xLYeU0UOBmG9T5ZuWsap5OG/JI0mB5beEFSqw4CJq/a8p uwINauBU++rQY1CFn/0UtIg0AYHzsP+JwOcklhmuckiBa6/lUvYABJZEzCjqhbMVxEoq mcIw== X-Gm-Message-State: AOAM531EEykFWZp0tOG0LFv7HikqtDemObW6wfFnCfDsnyJ/oI5uvZ6D oVlKHZFtdoMIYrE6gETRZUQwH0CKRy/FYfbu5cuWm8pOwmcJwf5PUbK4++xnBen/jusZtBPGsTn IVHUHgcrFL7ioA66E01yjz2guQ4Q= X-Received: by 2002:a5d:4e81:: with SMTP id e1mr5512127wru.22.1592837622435; Mon, 22 Jun 2020 07:53:42 -0700 (PDT) X-Received: by 2002:a5d:4e81:: with SMTP id e1mr5512094wru.22.1592837622169; Mon, 22 Jun 2020 07:53:42 -0700 (PDT) Received: from localhost ([151.48.138.186]) by smtp.gmail.com with ESMTPSA id e25sm19318997wrc.69.2020.06.22.07.53.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 07:53:41 -0700 (PDT) Date: Mon, 22 Jun 2020 16:53:38 +0200 From: Lorenzo Bianconi To: Oleksandr Natalenko Cc: Lorenzo Bianconi , Lorenzo Bianconi , Felix Fietkau , Ryder Lee , Kalle Valo , "David S. Miller" , Jakub Kicinski , Matthias Brugger , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, LKML Subject: Re: mt7612 suspend/resume issue Message-ID: <20200622145338.GB27892@localhost.localdomain> References: <20200618090556.pepjdbnba2gqzcbe@butterfly.localdomain> <20200618111859.GC698688@lore-desk.lan> <20200619150132.2zrc3ojqhtbn432u@butterfly.localdomain> <20200621205412.GB271428@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DBIVS5p969aUjpLe" Content-Disposition: inline In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --DBIVS5p969aUjpLe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Hello, Lorenzo. >=20 > On Sun, Jun 21, 2020 at 10:54 PM Lorenzo Bianconi wr= ote: > > > > +static int __maybe_unused > > > > +mt76x2e_suspend(struct pci_dev *pdev, pm_message_t state) > > > > +{ > > > > + struct mt76_dev *mdev =3D pci_get_drvdata(pdev); > > > > + struct mt76x02_dev *dev =3D container_of(mdev, struct mt76x02_d= ev, mt76); > > > > + int i, err; > > > > can you please double-check what is the PCI state requested during susp= end? >=20 > Do you mean ACPI S3 (this is the state the system enters)? If not, > what should I check and where? yes, right. Just for debugging, can you please force the card in PCI_D0 dur= ing the suspend? Regards, Lorenzo >=20 > Thanks. >=20 > --=20 > Best regards, > Oleksandr Natalenko (post-factum) > Principal Software Maintenance Engineer >=20 --DBIVS5p969aUjpLe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCXvDF7wAKCRA6cBh0uS2t rJ4uAP9lKuUy0QTisY2SFP33vemkDckUeiQV2JsSGBnBdJ4FIQD/Yo4wkX1kg1Dr YM/2gw/OmT+M00BF1XWr3MJF0Tx7sQo= =rEPw -----END PGP SIGNATURE----- --DBIVS5p969aUjpLe--