Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4107872imj; Tue, 19 Feb 2019 15:41:31 -0800 (PST) X-Google-Smtp-Source: AHgI3IZl4WXZ2TsQWHbRrRfXeFHr53uOEOMoc00mMeq/4hR7AENLscA7jsvZMNJTnAKTzQovK1o+ X-Received: by 2002:a63:6984:: with SMTP id e126mr26733740pgc.143.1550619691618; Tue, 19 Feb 2019 15:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550619691; cv=none; d=google.com; s=arc-20160816; b=igN+Qa1UWlWgEyvYipYjyC7W21yydh2Gj+CiIjqO2N5IdqFrCeuSbRYKgO6rnYIDTa xmVr+YX8Gf+UQWmwnuKsJIciin4zktIFYCulOSKGEyprWR/xrzk3fha+dSPILW1GIFwb wT3S2e2eALsOJz4C2hTtTr1t6tm5Xi58ige+JOYd8Xk1s2ry/y8pYVQ3NoOxews1Y/tp hgWsWa9SU5ucsPnbIOa991xSb5Y28g6moUAL3ee+TyWCz96tGdgce19VWdv2BKcrYxuB ACyrdD/JLloAHn1vAqmGxr0RCdfw70cVg0tdh7VwoAgtjUzf3eHxIIgjGc3WDLbkXLvs A2zw== 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=zxFGa80PRFQNZ0iIIPGTuF/1GgUnWcFVVtlV5AVJGzY=; b=uRkoVj2ZofNB38owhe6cNrBVsL1zX9NQzhCN0hzbzQ10TvoQTPX6owogs7y1oGjvSw /I5tIMRFgm+A9trUve56Qet5fDq6FepFFrxvG0dDDoJvU+0WjqamYrDvR2F0fzvirk+n HK5iEUykMT3889wZop1lWlKBMSm/O+qirb6sep83fgpDkMOojxKaNjjku0f+Rhw44IyV tCrq6H8W8r6yWbqY/Kj+lrA3t+JwIfrDOvgoWlo9dDeZO5Kc5OaaB0+ecJ8J9c3Quy2n NDWoNfw6xT3Gq/qNMLFAqzayQ/tRmpRS5sh3E38hXTzKppxMnh96RE4g3Ik7o0tLrBcf WfFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SWzMxd2s; 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 n3si3927609plk.108.2019.02.19.15.41.16; Tue, 19 Feb 2019 15:41:31 -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=SWzMxd2s; 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 S1730064AbfBSXjj (ORCPT + 99 others); Tue, 19 Feb 2019 18:39:39 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:38390 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728787AbfBSXjh (ORCPT ); Tue, 19 Feb 2019 18:39:37 -0500 Received: by mail-lf1-f67.google.com with SMTP id n15so16155146lfe.5 for ; Tue, 19 Feb 2019 15:39:36 -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=zxFGa80PRFQNZ0iIIPGTuF/1GgUnWcFVVtlV5AVJGzY=; b=SWzMxd2s312nAdp04588KTgH4jh5miGItESLcy+KlwQ6BBIsp74P0x1nT4HFEqqasf 8PyOPXfFCmnVz1F7xxwTFyoNLJZrv+rHme+9L+j+E2hFKyk5QRsuvKzXR8crLl1bH9tq y0hReo2aYyBvdeVzLwLwelVuWuDTjd46760jI= 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=zxFGa80PRFQNZ0iIIPGTuF/1GgUnWcFVVtlV5AVJGzY=; b=jV8lRzuSPb6ZnlcOZdR5zYcK+hwnGaci40AP8TL2ZAmdtygEfTD79Zp+L4pvj3zGr3 wNyKGSfD/SwNw3BErMWfH5sTy86QED8iFitZaCl4XXbsvqQM6c6ZNBAAtTfuH6YZPVhV j59zf3YVylNxv18lIac76C8wklG50aGz+PI7e46aF2TsgbvgraL6VvjYt/TjZTuOvrM8 uThhbw80DkmNOB3tpA1SS4NNlvP4lRv/XgNFzJCBhaxUsvy2roImwR2UW75WMuV1IPvA C2OS0+UuPEi+vjzIkNllMAy1cc5RTxc2sfLXiY6bI6HsABrAWD9Ru0udoqIHTzdckEmN bVEQ== X-Gm-Message-State: AHQUAuYqIJXNbmX2ROPwSHvzxVLS4WC7x1nuOBFisGAyODYDrGfpreJy X0wXBbw3Z5Ojpy7a+NbcZpQta5tinps= X-Received: by 2002:a19:e347:: with SMTP id c7mr9089403lfk.137.1550619575181; Tue, 19 Feb 2019 15:39:35 -0800 (PST) Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com. [209.85.208.172]) by smtp.gmail.com with ESMTPSA id a3-v6sm4667172ljd.20.2019.02.19.15.39.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 15:39:35 -0800 (PST) Received: by mail-lj1-f172.google.com with SMTP id f24-v6so19164845ljk.0 for ; Tue, 19 Feb 2019 15:39:35 -0800 (PST) X-Received: by 2002:a2e:3a10:: with SMTP id h16-v6mr913549lja.184.1550619160820; Tue, 19 Feb 2019 15:32:40 -0800 (PST) MIME-Version: 1.0 References: <1550394300-17420-1-git-send-email-yong.wu@mediatek.com> <1550394300-17420-18-git-send-email-yong.wu@mediatek.com> In-Reply-To: <1550394300-17420-18-git-send-email-yong.wu@mediatek.com> From: Evan Green Date: Tue, 19 Feb 2019 15:32:04 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 17/22] memory: mtk-smi: Get rid of need_larbid To: Yong Wu Cc: Joerg Roedel , Matthias Brugger , Robin Murphy , Rob Herring , 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, yingjoe.chen@mediatek.com, youlin.pei@mediatek.com, Nicolas Boichat , anan.sun@mediatek.com, Matthias Kaehlcke 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 Sun, Feb 17, 2019 at 1:09 AM Yong Wu wrote: > > The "mediatek,larb-id" has already been parsed in MTK IOMMU driver. > It's no need to parse it again in SMI driver. Only clean some codes. > This patch is fit for all the current mt2701, mt2712, mt7623, mt8173 > and mt8183. > > After this patch, the "mediatek,larb-id" only be needed for mt2712 > which have 2 M4Us. In the other SoCs, we can get the larb-id from M4U > in which the larbs in the "mediatek,larbs" always are ordered. > > Correspondingly, the larb_nr in the "struct mtk_smi_iommu" could also > be deleted. > > CC: Matthias Brugger > Signed-off-by: Yong Wu Thanks for the cleanup. Reviewed-by: Evan Green