Received: by 10.223.185.116 with SMTP id b49csp3274501wrg; Mon, 5 Mar 2018 18:06:21 -0800 (PST) X-Google-Smtp-Source: AG47ELv72mB0tABvVOvJFQnO2qVo/LbZKdXmLNpQkbSddxOeyciNv9sEbnrfLb6mMBUvBIpkEMGp X-Received: by 2002:a17:902:407:: with SMTP id 7-v6mr15194252ple.9.1520301981277; Mon, 05 Mar 2018 18:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520301981; cv=none; d=google.com; s=arc-20160816; b=TFutt3l0k3usZz618FvMftIUSC1MLqcYjEGKnIaSkSYJvkbRsBN6lw37vAsvkdk6YQ eZPLO4p7G0a2W//2UAkx93FQvZ/jQ0EpCg/nfuET68DxjtiFVUMKA/wCTfSmoKGDNYjP lqVQCgRP/P4fhFJcvFLXxkk28lhufAepm9Xsim9UQlpIh1zlf9F1YFz3pdvuJ0AoJiZX dBDWLsWmguSP3xyYCh10O56QS8dG82rWBuhywV5x+5Un0PDuuAtof6rZ5w1Vp1EYSfgB E7qqZsV8QhqGDFkYD4vFnFvIf/NZeDqeyOZ9D8SH0TTVTnQa/A5FwFffhnvGcICV9D80 oLkQ== 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=cRwpFhrEBc/Bkm9Y7jsBZERvd9hEUEByGDPIN3PNm80=; b=wmin5gjNA8Vvkt+kiLIaxYo4M3aW876L4Jq8bTCC1BlK3fuZnqB0UNtzm72h5+1vRV d3c/iKhAd0gVNkfRY6HqhJmpF2tjIaCJH1QktMCNTBoxVjPM5x8QVsKy4FgEQQiFlkjR wx+dpZrLE3vHzSZP4N+EavNmaVZvWK6M8Pj+1BzU6sy9lVANlsTfmRFhoQLDwH3dmz+K KdsPFcmOchImZPmD/OifELxfqfkFmUZDixAB8T658pEGKZAVovlZqPtYEwlB4BylLwP1 Mbe25DoQhCxnAOaOFsVTw0u+QWbZLqaQ1T7LOzQ6i/0gQm5xlmSbcIkVem2VIR1xJ/jj SKqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eyVTiruO; 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 a6si11043857pfi.123.2018.03.05.18.06.06; Mon, 05 Mar 2018 18:06:21 -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=eyVTiruO; 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 S1752910AbeCFCFN (ORCPT + 99 others); Mon, 5 Mar 2018 21:05:13 -0500 Received: from mail-ua0-f193.google.com ([209.85.217.193]:44400 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752017AbeCFCFL (ORCPT ); Mon, 5 Mar 2018 21:05:11 -0500 Received: by mail-ua0-f193.google.com with SMTP id x4so11980302uaj.11 for ; Mon, 05 Mar 2018 18:05:11 -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=cRwpFhrEBc/Bkm9Y7jsBZERvd9hEUEByGDPIN3PNm80=; b=eyVTiruOrvg9uqmxS7f1SYgIheSjPO7B9Rxnr0dCdt/Hi/ejFER9PLl9xYct5sgPEr ZvEcSOMdT6F8CXuYrMKvb6QR5iwLxYjO+W+2Hdw7+IR96vKaNQYFpCzAiaNjiQ6NQN0B uTFLi+If64r7Wc0wpNtESqh6uaVyNjlhi0VqQ= 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=cRwpFhrEBc/Bkm9Y7jsBZERvd9hEUEByGDPIN3PNm80=; b=tEYDSocbVosq5hhuYDe394Z48Dl/xaxdu1h6ACUT2/sW8q93FiOE2LaiIZMIGCLggc 4BoBHZzFF1Q3Dn641hnqlHZDAyF+Wjep3NgfkQ8FuuBRXg68NjrP9pQYtcW57bd4LBC2 f+2JICy8nwEUFEFUBUnumCyjJR8b0QmkclxMvhj2yZHwSJLBpASpL8ahuwuVO9K0F7LV GhPYcod9/M1KUEPbuOkwAMEKaqQsheDD9qzcDR82wCygrHV7iv5aVf0T5DEvREEWjYJZ y3yASWVPug2KYkZCSkUy25xjXLT9Yxp2dQBVh2sjPhUHEGU6fzC+mH0YbAslo44aqsDY JPoQ== X-Gm-Message-State: APf1xPCWMmhywr0wurZ3dNN1wRQ5yzfLrqAKPHDWVR1IhpxiBY2E93Wd +ObBz12N3polhvHtkwabkZ6DYrzoB7s= X-Received: by 10.176.89.69 with SMTP id o5mr12321173uad.192.1520301911064; Mon, 05 Mar 2018 18:05:11 -0800 (PST) Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com. [209.85.213.46]) by smtp.gmail.com with ESMTPSA id q71sm4415942vke.37.2018.03.05.18.05.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Mar 2018 18:05:09 -0800 (PST) Received: by mail-vk0-f46.google.com with SMTP id y127so11324388vky.9 for ; Mon, 05 Mar 2018 18:05:09 -0800 (PST) X-Received: by 10.31.102.70 with SMTP id a67mr11853520vkc.176.1520301909088; Mon, 05 Mar 2018 18:05:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.0.99 with HTTP; Mon, 5 Mar 2018 18:04:48 -0800 (PST) In-Reply-To: <5A9DF59E.60900@rock-chips.com> References: <20180301101837.27969-1-jeffy.chen@rock-chips.com> <20180301101837.27969-14-jeffy.chen@rock-chips.com> <5A9DF59E.60900@rock-chips.com> From: Tomasz Figa Date: Tue, 6 Mar 2018 11:04:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH v6 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 Hi Jeffy, On Tue, Mar 6, 2018 at 10:57 AM, JeffyChen wrote: > Hi Tomasz, > > Thanks for your reply. > > On 03/05/2018 09:49 PM, Tomasz Figa wrote: >>> >>> > struct rk_iommudata { >>> >+ struct device_link *link; /* runtime PM link from IOMMU to >>> > master */ >> >> Kerneldoc comment for the struct could be added instead. > > i saw this in the kerneldoc: > > * An MMU device exists alongside a busmaster device, both are in the same > power domain. The MMU implements DMA address translation for the > busmaster > device and shall be runtime resumed and kept active whenever and as long > as the busmaster device is active. The busmaster device's driver shall > not bind before the MMU is bound. To achieve this, a device link with > runtime PM integration is added from the busmaster device (consumer) > to the MMU device (supplier). The effect with regards to runtime PM > is the same as if the MMU was the parent of the master device. > > > maybe we can use something like: > device link with runtime PM integration from the master (consumer) to the > IOMMU (supplier). Sorry, I meant that kerneldoc comment style could be used to document this struct. https://www.kernel.org/doc/html/v4.15/doc-guide/kernel-doc.html#writing-kernel-doc-comments Best regards, Tomasz