Received: by 10.223.185.116 with SMTP id b49csp4577189wrg; Tue, 6 Mar 2018 19:28:49 -0800 (PST) X-Google-Smtp-Source: AG47ELsk/YwtLSFPc24yDiJ4IEQRg8lAu0qzAUa7m0fZC6/TpwoyZWh+EZgy8q4oAO0aaS8QxCsA X-Received: by 10.99.109.79 with SMTP id i76mr16365592pgc.402.1520393329096; Tue, 06 Mar 2018 19:28:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520393329; cv=none; d=google.com; s=arc-20160816; b=KJz+eNzybJKoU6IMcLGT7MTvl6/NHy8w4W1gKPNvPYRIDLkstX3aqJQzRZejUfKzIe nECYytlnvWeJKZ3HpzZgg6+1CiPXYhQuaK8h/j+FlXpPgkY4v7qjP+ybjNYVozOQUpBg Kzby8w/CY1EPuXc1Pz1jmurNSZ8OPRIfhyWCu5985S+l66pSaJotuIbomkFghuVRvRTc HUxYu7NPEoYSRomAKL3Y0g4hmu+3L408ZP0QWLvr4+KzhYF34DKQz98gg4lixCBK+zH9 C3vAZpMjlly5Smmc1cVjsGzgD7ENWpLgA3yYJ0QD4OUEifBGw72zCKwdND6Q3ytvGbfP CcYg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=O2W+t6Mxr2jIBC9ceSw4zMDPnR5NXfhJ5EequYQpyUg=; b=Io4fNxmgOkrkcDJw8chaJHeaWX7q4M1NHGQAqytQMu6xFhgw4DhEhf+p/1M96wT43/ me2NfJwQTOYOkr1KUSbKOdfZ5wR0xUkLq6CEjwJRgvM/E1NtVPQnpy8XWOheA+OHLpuu k5gkVXWDcIOHCMnOsPxkahOdSXYET2fhDOElXbZjTtX8PV7sWpMLKwe221x3S16f6ysz OYkXkReXO/72wwz8NL4zdyfhyQvGJZQbl9k1tgDi81kM7bTSUMpjQs8hlwUrNlgC5LT8 tFZPg7Mx8jX9ic9GpS4etXGKJwgnniufJx/jzECZXUrNACy350Q08R4hbHqX8Ey50Iqm B/nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ANQa5Qq1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f30-v6si9081998plj.20.2018.03.06.19.28.34; Tue, 06 Mar 2018 19:28:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ANQa5Qq1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933198AbeCGD1W (ORCPT + 99 others); Tue, 6 Mar 2018 22:27:22 -0500 Received: from mail-vk0-f47.google.com ([209.85.213.47]:34590 "EHLO mail-vk0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932362AbeCGD1U (ORCPT ); Tue, 6 Mar 2018 22:27:20 -0500 Received: by mail-vk0-f47.google.com with SMTP id z190so521193vkg.1 for ; Tue, 06 Mar 2018 19:27:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=O2W+t6Mxr2jIBC9ceSw4zMDPnR5NXfhJ5EequYQpyUg=; b=ANQa5Qq1oqYfFObl63Xog9OW5eXsjWIcVyCP6qte5XHp9aoatmKV+qY2ZmbKQOxIx5 kHWWjO12a1nFZF3Vd5pm3Jxa6WgCiF/QG2K7wEM/v36A7/CrqEScNb6MNFVmX9P9vEME oosj2Zvhs7NyjgR8oSQER2gmmBLv/NpvuTZlw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=O2W+t6Mxr2jIBC9ceSw4zMDPnR5NXfhJ5EequYQpyUg=; b=p1gwfSMbcmJkZprEMiuWnew3ZzObN/GHyj/TXu6Umlcj8CtQn5qv3wSDxqWhIkA7ZB 208O4krtUX9JzfFBrSLDRdzd1RHzvLWObF0gn08ktuX2MQyV94cj/uC8HblcWofTNtb9 CqkBqRhY9tT0XjghLKz2N+LGgKzOrCjMQsRjlzQSqCzFgj/h2Kw67ZxJsdPPEDf17Kyb LRbrUZxiH/fkFGYBUpxGIoGZQenQ718MA089SPf2/Qh90SrepQkaTlnuyl/bxa/NyRza 6wvQs6ZL7XG9iQlVujyq5qGrlwoOIWpb9EiA/ALEJRdNekabAWjLTQkvWgFdaZR/0YeS miTw== X-Gm-Message-State: APf1xPA/G78FQHTMB68L6vmKyIUlrN/Cosn8Iw0eni4r9axLXRIn3+tn L2yVz5wcj8za2zqRD8L+ff6MY6m+Ejg= X-Received: by 10.31.72.130 with SMTP id v124mr15664768vka.144.1520393239829; Tue, 06 Mar 2018 19:27:19 -0800 (PST) Received: from mail-ua0-f173.google.com (mail-ua0-f173.google.com. [209.85.217.173]) by smtp.gmail.com with ESMTPSA id m33sm16887186uai.42.2018.03.06.19.27.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 19:27:18 -0800 (PST) Received: by mail-ua0-f173.google.com with SMTP id c40so541622uae.2 for ; Tue, 06 Mar 2018 19:27:18 -0800 (PST) X-Received: by 10.159.37.2 with SMTP id 2mr15430964uaz.73.1520393238211; Tue, 06 Mar 2018 19:27:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.0.99 with HTTP; Tue, 6 Mar 2018 19:26:57 -0800 (PST) In-Reply-To: <5A9F598E.4020704@rock-chips.com> References: <20180306030252.3197-1-jeffy.chen@rock-chips.com> <20180306032759.29069-1-jeffy.chen@rock-chips.com> <20180306032759.29069-4-jeffy.chen@rock-chips.com> <5A9F598E.4020704@rock-chips.com> From: Tomasz Figa Date: Wed, 7 Mar 2018 12:26:57 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 13/14] iommu/rockchip: Add runtime PM support To: JeffyChen Cc: Linux Kernel Mailing List , Ricky Liang , Robin Murphy , simon xue , Heiko Stuebner , "open list:ARM/Rockchip SoC..." , open@263.net, "list@263.net:IOMMU DRIVERS , Joerg Roedel , list@263.net:IOMMU DRIVERS , Joerg Roedel ," Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 7, 2018 at 12:16 PM, JeffyChen wrote: > Hi Tomasz, > > Thanks for your reply. > > On 03/06/2018 06:07 PM, Tomasz Figa wrote: >> >> Hi Jeffy, >> >> It looks like I missed some details of how runtime PM enable works >> before, so we might be able to simplify things. Sorry for not getting >> things right earlier > > > hmm, right, the enable state should be the same during those functions. will > do it in the next version. Thanks. I actually realized that we don't even need the pm_runtime_enabled() checks either. Actually, we can clean this up in an incremental patch, so no need to resend if no other changes needed, since current code is still technically correct. Best regards, Tomasz