Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp5029801imc; Mon, 25 Feb 2019 16:04:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IbIck+L0RfW4Z4+XvGqoIH0XVnGoQMEyB1kiRpcRVb0a0JunNEmTaKFFtPhuWebnBMEcIa4 X-Received: by 2002:aa7:81d7:: with SMTP id c23mr23680274pfn.146.1551139449781; Mon, 25 Feb 2019 16:04:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551139449; cv=none; d=google.com; s=arc-20160816; b=DtJUaoodwc0CvD/U4K10v+RFCvovkKFsguve837Ly5oK2fyZmeSmlJQLczcwbAtd/9 uizouE0BZ0I1g0jhZtck8p6hmOPkzAwlAfq1HeGZhHh3byn7bOLrQmaGZBqzCBpGPV5p FdWvaXSks2JcBCDy0Jl5j+O2eK+jZucz5cN6ex0YyjMu8fjn705PIeTZuw84ze2Ra5Kn ShUETayv6xcSrcxE2aLOJN0SBFSNk94RYAeqlkG/fjGGpTl3m2ztlZ/5BfxGbTa8Ag3/ R9JFvNaOjadJ/DV02A3dv9PyKSTeeBeU5KMnYjWyG+wWFVEyh9vmN4mw3e3llYJxMUFy lZEw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Drmc1vVJjOc9vytsMe0X64Yz8M+v4yfqHSmOLxaAl6E=; b=Zwb8vVPF44e4fj+Lls0rsTY6MRTo2xQ/LoTFBiScRNadcUGneTUxtm1SzfdsxXN0hx c3NmAXTWWCn6J/4b6EMoTXoLml1Hb4rM1xX06p5F2yNNcfCZZosJuB6Cs0TJF1lUAgf4 heImFZXVl9tPq9TtnK3XriLLx1TY6enWU6eDIe71MB3VghlySNsgaxEnN3PxEGSXF477 3jH6mSiK5vj28ZJ6gZmX+HOw6FyS00Ma/VCyHN3CMiMpqqH2ohAhxFH90tZo43Ze4TyS 8CnpzSZNGObiBnq9UaN/At7M9clA+aPSjjlCzAMrdhFKl51uz/F1DkiCYs5suvVnw7pS ld/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hith3tE+; 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 i190si11202139pfc.116.2019.02.25.16.03.54; Mon, 25 Feb 2019 16:04:09 -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=hith3tE+; 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 S1729196AbfBZAC6 (ORCPT + 99 others); Mon, 25 Feb 2019 19:02:58 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:46770 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727529AbfBZAC5 (ORCPT ); Mon, 25 Feb 2019 19:02:57 -0500 Received: by mail-lf1-f67.google.com with SMTP id g12so8236238lfb.13 for ; Mon, 25 Feb 2019 16:02:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Drmc1vVJjOc9vytsMe0X64Yz8M+v4yfqHSmOLxaAl6E=; b=hith3tE+pVyUT59KL4PjCV27zF09x4kcF6qylISpwq66D8Kc+aKNi0+zqvbEc4Bd9r xgRjkYIhrW+uhqBmDkcLU932ib1NLnFD/S5GvRE6lNJ5Yn038rMPznmpT4m0I+I+R+Fl Esy/BhEpFT41xB4o8WoUcgHzlYmGkz8s627/8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Drmc1vVJjOc9vytsMe0X64Yz8M+v4yfqHSmOLxaAl6E=; b=ZOCxtl5F7uVvdxoj8MPYsG+EOEuZXsAD0GO5SesYwGaVBCHo4IsvKgaTPKSnmxBtUd fQlOO7GkhtIhAhZ9qa+fuvOntQxD3sK9gurl3xoGtj/WkL9nCtJCZpDCts2pgMKivjGQ bqdU7nDbzcr7GruHKL2np5iDEqkwRAed12Til2cs5ii3+vjqI8SeEFKn1CPKlxJ2A5ZH HFxN8psyfL30UmfiNGmCAQOpUfsU9yykAu7hUWUCsFpbqq7x/jCAIYJSVCd/t8YnA+4C XwrKqHqFajhl3HVB3ld8MW9uddxTxcF3zJJpfAK7aF+y0sT/Hr2OKWzifm4bwu+R8s4u K3Jg== X-Gm-Message-State: AHQUAuby5rXA8YlCf3gi6D2Kz58ZJvsJhkqasDrCNNjUok9ZVH2Q+s1d +ddSpBDjWt/L9g/b65rmfDrb9yiRXyo= X-Received: by 2002:ac2:5603:: with SMTP id v3mr2209632lfd.145.1551139375800; Mon, 25 Feb 2019 16:02:55 -0800 (PST) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id v15sm2745173lfe.69.2019.02.25.16.02.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Feb 2019 16:02:55 -0800 (PST) Received: by mail-lj1-f180.google.com with SMTP id j19so9111687ljg.5 for ; Mon, 25 Feb 2019 16:02:55 -0800 (PST) X-Received: by 2002:a2e:93cf:: with SMTP id p15mr6570115ljh.184.1551139006617; Mon, 25 Feb 2019 15:56:46 -0800 (PST) MIME-Version: 1.0 References: <1546318276-18993-1-git-send-email-yong.wu@mediatek.com> <1546318276-18993-11-git-send-email-yong.wu@mediatek.com> In-Reply-To: <1546318276-18993-11-git-send-email-yong.wu@mediatek.com> From: Evan Green Date: Mon, 25 Feb 2019 15:56:10 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 10/13] memory: mtk-smi: Get rid of mtk_smi_larb_get/put To: Yong Wu Cc: Joerg Roedel , Greg Kroah-Hartman , Matthias Brugger , Rob Herring , Robin Murphy , Tomasz Figa , Will Deacon , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, Arnd Bergmann , yingjoe.chen@mediatek.com, youlin.pei@mediatek.com, Nicolas Boichat 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 Mon, Dec 31, 2018 at 8:53 PM Yong Wu wrote: > > After adding device_link between the iommu consumer and smi-larb, > the pm_runtime_get(_sync) of smi-larb and smi-common will be called > automatically. we can get rid of mtk_smi_larb_get/put. > > CC: Matthias Brugger > Signed-off-by: Yong Wu It's possible that there's so little left in mediatek/smi.h that it could be deleted entirely and its last remaining bits absorbed into other locations. But maybe it's nice to keep those last little bits used by mtk-smi.c away from the iommu definitions. So it seems fine as-is to me. Reviewed-by: Evan Green