Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2819870ybt; Mon, 22 Jun 2020 07:50:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVx0RgLTlFg7ExebYCy99qv6lgRgOaZYpD7oWWiFffhR0Zi1Oh3abCIiV5Af0ygCEZf/5l X-Received: by 2002:a17:906:3c4c:: with SMTP id i12mr15567027ejg.464.1592837428950; Mon, 22 Jun 2020 07:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592837428; cv=none; d=google.com; s=arc-20160816; b=u5t7a4U4M2t1dYtv+XxEG6KT6fvDXhecyND+P/xOdo/ZwudmVzTLQFpUT8Hkmf6WhT dxUigq6fVYkdJN6KD5ux19VnstYONUKEFoDTVlXP2NAlPT7MlY3sA1XmFZmzRsDJec4s uG9jh2A3wVOihA7j1Gk7l4E+17I4pSbZJwTc2Iiq/kO6psXfdtwpSiIkfZBk4wAdeEJ1 au8gwQFYQoGRu7dUjtaOv/FIyBI6ojZfBe9af6sZJEBn1wyYwhISWCBEvnG7ZEk0JrCL 57bydP/gNJjZYsV0ZnFEGYjA5t+KHi6td9T85mw3EcP5Jo9LhkgAa5TIQERCohA6vxK9 UdUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=naZjlXqAUuz9QFqq0p2KUyyeqf2h2ajScjOSS4MNLek=; b=BAnzHif/GJcTbSHjZDkp9Xnx1m30dVfu+XAozxSYOvvgSokEOhBb8oam+pJXUbjDeW X5ZbUkg7Nvbito8x4wo6XcOQG1Bto7SXeMe3l979hDoKPixUYkqf8kW3nXu3s9L6itsM Cn8N5GwIaPikUTNh00+lj8YbJZTA34QMYrWp1xKQXmfbp2ney2lchG6ErK0FzSLkOCYb TUGVpb/zrjNflqRZxvkcfzxWo+t/0G15P2vCNHVQPiXRawzHicv3V3ILSgMYjHV4YjfF yIaFU2h4Aqqf93XwIsaX7+G0a1zflKEHtWIuuTd+kTBzE7YvGLUG9cdWS8JbRDw+5NVl SCuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iZAt9jWI; 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 d15si9228560edp.112.2020.06.22.07.50.05; Mon, 22 Jun 2020 07:50:28 -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=iZAt9jWI; 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 S1729322AbgFVOtL (ORCPT + 99 others); Mon, 22 Jun 2020 10:49:11 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:44052 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728504AbgFVOtK (ORCPT ); Mon, 22 Jun 2020 10:49:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592837349; 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=naZjlXqAUuz9QFqq0p2KUyyeqf2h2ajScjOSS4MNLek=; b=iZAt9jWIDdGmUycXcEExUMtQwPB4mAEGmrh+FKOLhyf00tQ8fp+aHiKUONC2CgcxB/o1gC 4byHJy2zFc5J0HbajANz673LFxUAGuPKG57FBoDYRnDHj17Yg33DxcMznocvl7DLG6Tgm8 DiWA9q7dYPxj2919VZwtJodp42DVtzE= Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-416-6gWTBsdxPpudXkp1QfgPCg-1; Mon, 22 Jun 2020 10:49:05 -0400 X-MC-Unique: 6gWTBsdxPpudXkp1QfgPCg-1 Received: by mail-oi1-f200.google.com with SMTP id e6so8159416oib.0 for ; Mon, 22 Jun 2020 07:49:05 -0700 (PDT) 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; bh=naZjlXqAUuz9QFqq0p2KUyyeqf2h2ajScjOSS4MNLek=; b=ZrwXUZBHbnT9ETgtuae0nJbr6Fitp3dNNtRNorjhV6tBVcOWOWVCzkkb4krs3GUhtI BT12yegpXdtDaSnKdQ4yhYQn23oUb8KdpiZANbwixhGgDs5opkmGL05CKUMVIMnaQqE8 wl8wPRPJOvJ8X0aJTCn81gCxMyGB89Kk+J7IZc877oI2dnLiqiun8dm+et/G5uZ0qNy7 fkW0r/p4kVV9/s66crJVX9l/fkRMwXaz+w7Fr/WzBh2QqxySotDHvPq44hqhTcqD9nlQ aoJJ+9RDvtlyrB/Ha11V/i/TlILdfTQDkEQAZg33zHi9iNZjqfNfWYSM/qYJmRBzpOTf IxBw== X-Gm-Message-State: AOAM532i7i35S2c285YPJZRIBzOXv8c/+m7YCKhTlaEZF1KCsdqJdL/k qtnuUlGXT8rW3+birWugUxPndq9uCfmtEUf5+hvTB5I3IZDEVSz8ArAwB/mgTowGaaftiVK5Ygn T8lsggEWVD9Y5t5paruWhcNGEUp80kHHsmRi/5IgGIJ0= X-Received: by 2002:a9d:39b6:: with SMTP id y51mr12985163otb.175.1592837344596; Mon, 22 Jun 2020 07:49:04 -0700 (PDT) X-Received: by 2002:a9d:39b6:: with SMTP id y51mr12985144otb.175.1592837344375; Mon, 22 Jun 2020 07:49:04 -0700 (PDT) MIME-Version: 1.0 References: <20200618090556.pepjdbnba2gqzcbe@butterfly.localdomain> <20200618111859.GC698688@lore-desk.lan> <20200619150132.2zrc3ojqhtbn432u@butterfly.localdomain> <20200621205412.GB271428@localhost.localdomain> In-Reply-To: <20200621205412.GB271428@localhost.localdomain> From: Oleksandr Natalenko Date: Mon, 22 Jun 2020 16:48:53 +0200 Message-ID: Subject: Re: mt7612 suspend/resume issue To: Lorenzo Bianconi Cc: 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hello, Lorenzo. On Sun, Jun 21, 2020 at 10:54 PM Lorenzo Bianconi wrote: > > > +static int __maybe_unused > > > +mt76x2e_suspend(struct pci_dev *pdev, pm_message_t state) > > > +{ > > > + struct mt76_dev *mdev = pci_get_drvdata(pdev); > > > + struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); > > > + int i, err; > > can you please double-check what is the PCI state requested during suspend? Do you mean ACPI S3 (this is the state the system enters)? If not, what should I check and where? Thanks. -- Best regards, Oleksandr Natalenko (post-factum) Principal Software Maintenance Engineer