Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp255601pxb; Thu, 25 Feb 2021 01:24:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxz+tlNjwgDD3Rj0QHRUc2hcQN8lmaa9MSiHoSAuxOvGpH9Xna/Rus7tqKjTaq7qp4NwXvo X-Received: by 2002:a17:906:6d4b:: with SMTP id a11mr1857607ejt.413.1614245073404; Thu, 25 Feb 2021 01:24:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614245073; cv=none; d=google.com; s=arc-20160816; b=HJ33xZO8l1q+Jt6JiyAuzZHtyJQKXfRGRgLIq4nPiYmtS+jnpXwocNVkizD1Lq7n9e fdImbSUNeE/F/EzWmW49tIN1xpJ2rG60tgd72jO34niWaXXM/Bzh6+fQClsLzbFmxF3K s/zEIEp8F26rYer4QMPA8ed82IOhzILks7NVjK8YWJTLxEiQOiV9qjSk2wvQO7UQKyHZ ePXSxXHCaOgbkHJA1qrEHGkGeb6wnhrti8DvTpwlh5qbeBCWcphqhBAuFrLFcuU1EZNt K3yuKw13m++cbO89iVI9sHysAS+ovUBTuxytKp12AUTW98ss17Ep4SA9tUKikroYS/Rg PeQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=kjY3YWrArb7e1auQGb2M/I7sB1u1U1g/YZLxN9Rl800=; b=w/KEGorlqyCQ8VyYHkaSlPizMr6BsXa9XKX4YUiLiGpyNwAvS46u/umgMmvecCPZ+4 5XSf2xRwxbfRKk3KHS+HynKDOMEpzIJ3zAOy0lo5dUppyNgJhh+d0s+EcsVYEfk2C7H0 cJbwdP6j6vJuOSCPccm3ng6Pg5FfteNBELDaBRPyaDf2s5qtO0DFWxFcFFdE4AHufiK3 yupH+ha1WhAqzlgyELyFUqVTWG8Dwtu4qOUcZTsu0QjcruY1XrhQtYAaV7dORwL/6310 3U1dd1K2lxhTcoqlFpcsFlIXYzXJE7eA5b4D6y7bUflZMmMASKYcn8hC5TGETKnKkZrl ZloA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="ROu/egn/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si3045726ede.504.2021.02.25.01.24.10; Thu, 25 Feb 2021 01:24:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@mediatek.com header.s=dk header.b="ROu/egn/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231950AbhBYDfj (ORCPT + 99 others); Wed, 24 Feb 2021 22:35:39 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:38103 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229466AbhBYDfi (ORCPT ); Wed, 24 Feb 2021 22:35:38 -0500 X-UUID: 370eee8b7744405d9cddd96f74e00801-20210225 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=kjY3YWrArb7e1auQGb2M/I7sB1u1U1g/YZLxN9Rl800=; b=ROu/egn/o8mV6ahwqK0C3xgYpHrYFB0Tx5QVbeuDRlVB7nHzohGoh4kXqve+ZdIn9mLQb15TACgDOqGTsgScq6cDyVXi5sWMyNohnQod3l0WRNlqG/sTFzyA1flbE6BhD3xNFfVchlZYsz+uHdJ5F43ZYFq7arXytwb68URxXb8=; X-UUID: 370eee8b7744405d9cddd96f74e00801-20210225 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 638520649; Thu, 25 Feb 2021 11:34:54 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 25 Feb 2021 11:34:50 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 25 Feb 2021 11:34:49 +0800 Message-ID: <1614224089.25750.14.camel@mhfsdcap03> Subject: Re: [v8,6/7] PCI: mediatek-gen3: Add system PM support From: Jianjun Wang To: Krzysztof =?UTF-8?Q?Wilczy=C5=84ski?= CC: Bjorn Helgaas , Rob Herring , , Lorenzo Pieralisi , Ryder Lee , Philipp Zabel , "Matthias Brugger" , , , , , , "Sj Huang" , , , , , , , Date: Thu, 25 Feb 2021 11:34:49 +0800 In-Reply-To: References: <20210224061132.26526-1-jianjun.wang@mediatek.com> <20210224061132.26526-7-jianjun.wang@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: B8240DFBE026559C95C4FF794CAECB89FE75F5E7653980143DBA6B8E787D410D2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgS3J6eXN6dG9mLA0KDQpUaGFua3MgZm9yIHlvdXIgcmV2aWV3LA0KDQpPbiB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