From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933206AbeCGD1W (ORCPT ); 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 X-Google-Smtp-Source: AG47ELs4ZcqF6wUCBGy2TRZYPXadMcKQlFfNv/mJBfuFgEflURi+4Eqzs5sJRrQ/MJEgxVpYSKVMEQ== MIME-Version: 1.0 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 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: tfiga@chromium.org (Tomasz Figa) Date: Wed, 7 Mar 2018 12:26:57 +0900 Subject: [PATCH v7 13/14] iommu/rockchip: Add runtime PM support 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> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.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