Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp742322pxb; Thu, 25 Feb 2021 14:03:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxi7uBUT7mlmQzcG+Xprs0an3nt5dv9O/bLxngNTNnSJtSxqrw8RBdrF6P8m2W3oeY8ipWT X-Received: by 2002:a05:6402:268f:: with SMTP id w15mr46602edd.333.1614290587695; Thu, 25 Feb 2021 14:03:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614290587; cv=none; d=google.com; s=arc-20160816; b=CACAqEHLsIw0KouZp8uf2tvPezDmtNolpQ29B76urW2IKypmVOvw6/vbUfo1twWXku x4edgK3nawDrosTwbu429hh3xmmVn52JE5JLAMKUo8Xpq6iAeyphLCeOxElcLWptpQix 9xw2uNGzezRjVTK8q7GhDr/ErNMJHuEDvvbufKJinNJ18kR5UXpU5gsBz13BrXerucuI OQ0GAEyJ01qNrfWNtaAG4bn/wLffapsuE0E5mZ3+QqKzZF+Eb1TPtb67x27SGGGdFjah uGQud4xSWx5s7BAjDDbLtsa/+aV5rDEBlVdWZr3V6yvy1L7HpRRCxMGUduSiWX0EFv2Q 3ICA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hwZzks7Q+wOWRhrZQ3mgFpMbrn31iT5NyLTYPPzf06c=; b=v7+0dIgIAalaOX0+DJ+bLRvmEhiTF3FlEy1kWCCB4t4lTBowJDyrzN4B/l255o86K4 OzTB3jvfyiizQ2l2cXTs1E3kvKyyZcC5iaucpiB6oYMWBgr3RvRHHzJSweEajbK/UUm4 EkgrG4ffN3g/1uYO9WmUMFdmzHzOSJc9oCbIONs96vtDU7jjZ828q2V4HEQwtMEUgAdN xaWx1JnTdwqZVrVJxcBgRKw0MF3DdL7hgIEnqc7kEYU0brae7uWI+1OPwkigObsC4+U6 bEfqgBn4/p4srrqmd33z1bQqoOO6BKS2S06QIu5RLZolfiph7X3Cuysn3N1GKL272V44 ZNYQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id si30si4202740ejb.625.2021.02.25.14.02.45; Thu, 25 Feb 2021 14:03:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233819AbhBYWBy (ORCPT + 99 others); Thu, 25 Feb 2021 17:01:54 -0500 Received: from mail-lf1-f52.google.com ([209.85.167.52]:40962 "EHLO mail-lf1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234567AbhBYWBU (ORCPT ); Thu, 25 Feb 2021 17:01:20 -0500 Received: by mail-lf1-f52.google.com with SMTP id d24so10855222lfs.8; Thu, 25 Feb 2021 14:01:03 -0800 (PST) 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=hwZzks7Q+wOWRhrZQ3mgFpMbrn31iT5NyLTYPPzf06c=; b=dwYUkxZJcVcClAxL/wTopQTpUl16CZi8XH44rK7oWGM/+BLPoqsD1uEgNu+xd6XkZa IjemA/8ZmB8WUqA+A2KbF35y+EzMCgzBmX37OTwIuyJBVKQmdw7TkOvChqsdbcilC1EX dMoJyQXmiPWqZe0g5W+7qBMm/wV8632DRj66nSFGyayVpKylC2SoeglYnVR7XrSYEsxP m9bBm/AcF3TS8YvEgZoSTwG98p5UWxZpTJcRqJzNZCp1Vo6/lIvHj2OaXfJtA6BHkbw1 vnJEa5n35Nfx9ZTDxa8KE5Tx0jD8p1xANlDEAvlK9VEo7roP8+N8W4IB76qRmMlDjfTL N/8Q== X-Gm-Message-State: AOAM532//eOltAWY8uQacjVjuekEeVOAwj1Zi9YSoLoxxKcxTEbBTMLK 9qrXcBXySz9uJiJ0qZywaz8= X-Received: by 2002:a19:b47:: with SMTP id 68mr2844434lfl.343.1614290436989; Thu, 25 Feb 2021 14:00:36 -0800 (PST) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id r9sm1228682lfn.200.2021.02.25.14.00.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 14:00:36 -0800 (PST) Date: Thu, 25 Feb 2021 23:00:34 +0100 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Jianjun Wang Cc: Bjorn Helgaas , Rob Herring , maz@kernel.org, Lorenzo Pieralisi , Ryder Lee , Philipp Zabel , Matthias Brugger , linux-pci@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sj Huang , youlin.pei@mediatek.com, chuanjia.liu@mediatek.com, qizhong.cheng@mediatek.com, sin_jieyang@mediatek.com, drinkcat@chromium.org, Rex-BC.Chen@mediatek.com, anson.chuang@mediatek.com Subject: Re: [v8,6/7] PCI: mediatek-gen3: Add system PM support Message-ID: References: <20210224061132.26526-1-jianjun.wang@mediatek.com> <20210224061132.26526-7-jianjun.wang@mediatek.com> <1614224089.25750.14.camel@mhfsdcap03> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1614224089.25750.14.camel@mhfsdcap03> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jianjun, [...] > Thanks for your review, Thank YOU for all the work here! [...] > > > Add suspend_noirq and resume_noirq callback functions to implement > > > PM system suspend hooks for MediaTek Gen3 PCIe controller. > > > > So, "systems suspend" and "resume" hooks, correct? > > The callback functions is suspend_noirq and resume_noirq, should I use > "systems suspend" and "resume" in the commit message? [...] What I meant was something along these lines: Add suspend_noirq and resume_noirq callback functions to implement PM system suspend and resume hooks for the MediaTek Gen3 PCIe controller. When the system suspends, trigger the PCIe link to enter the L2 state and pull down the PERST# pin, gating the clocks of the MAC layer, and then power-off the physical layer to provide power-saving. When the system resumes, the PCIe link should be re-established and the related control register values should be restored. The above is just a suggestion, thus feel tree to ignore it completely, and it's heavily based on your original commit message. Krzysztof