Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6207243imu; Wed, 30 Jan 2019 10:35:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN7I/uDvTdKOk07gymJcCh/J14QtdEiZ25SxQkSQCOy/N7OaMDhDeK9m2i1Rehj65ztbqhcG X-Received: by 2002:a17:902:bb05:: with SMTP id l5mr32016407pls.230.1548873354352; Wed, 30 Jan 2019 10:35:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548873354; cv=none; d=google.com; s=arc-20160816; b=tjGuUqDInM2H4qE3piHM7N6tGQniRDQ3EKeNtBep1cClm2gIAqHDVTLJq53eTACvWV 5IG34Ry/r7L9MSqi4wNmeinprQVPbgG+uXvN3ilMUpacTUkgZ6iQLmp3JVkyO/HqIrIx 7D64zl/9oFqfJxGUl2+tYStKa0GTiIcMwyUwt7inHiqZj+JgWZp/SvFytT2VeLsTn9sI oZUBKgyhL7XmrphNrlfJLVdTTEsyn83luausTdQkdIdf5eK6SWISU2DWAJA2SR7u7Bmz ezCXrttKolx+eaclu/ScEh5pL9z1xR0qb8sdIjWNTA7LYnWxOPtFN2HPMGIPpheuuf3I uPCQ== 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=GQ0dKTYavvdRK2craM+1+cJoElQMefWKTyFdjDSik8w=; b=zol0m+egMWUW18HtegielmjDO9JtJYvXUzt0wPhz2CWMQoBHQvIJ1ufIuKZBUGfSwC /FR0OOrsZMTYD/by7fhn3bYZIgUnToDGYBE62TyFrZ4V9hH+IXclarSosOLsiMU5OJax QodNXFXkm+irtlLZNIJVk6Bjh16XYa/B3g/f92cW/ZBBhGQVBkzxJbaik2viStM1q02d uDYBlofjHslzqZONseO+HNKHxt5i1IAdFxczWk8oR4sGdQKMHzx3tLHURf7ihHDjUkxa Lgj0n265ZsfUarKTRL0ZRyMu5OAXOYpQvu30PLHzywbmMEbAG2ha6mLcEvfCnmyq7Hfa UmgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="X1qxyF/E"; 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 o14si1958321pgi.134.2019.01.30.10.35.38; Wed, 30 Jan 2019 10:35:54 -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="X1qxyF/E"; 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 S1733106AbfA3SfG (ORCPT + 99 others); Wed, 30 Jan 2019 13:35:06 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:36491 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733050AbfA3SfG (ORCPT ); Wed, 30 Jan 2019 13:35:06 -0500 Received: by mail-lf1-f68.google.com with SMTP id a16so416596lfg.3 for ; Wed, 30 Jan 2019 10:35:05 -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=GQ0dKTYavvdRK2craM+1+cJoElQMefWKTyFdjDSik8w=; b=X1qxyF/EyL/kleGQ7Tjtw1XsuimunA+g7IjHYnNk1jOhzaYVvBUM7mgt7jI/8yksWs JVKtOIkOam8fvkOTAcT+EXX3nID0pJa4msDaSJfu6FhX51lOFDNEkRoVKyRdpuRXZn2p krfsJtBNAN0w5pzx0qDZrkyfQX17HUpefJ+9g= 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=GQ0dKTYavvdRK2craM+1+cJoElQMefWKTyFdjDSik8w=; b=HhproeilB2vtQk/FnYvWLus1ky+QtwqvbB2DRxhNde8P26XAbO3hv0obRuoYt13g68 J0oEooHONGf9eIjKktJwZ4C/Q3Z4cnA1BLI6ZM/zg8C15xWtgd/ZWqAWZf++Rmf5IlCU T3b7rj8KurtkeP/0+dgsTtVt+sAgAvGyec4H/I0atwDHWhQGaJwNSqjF9kkCHU7xhm8/ IqwTmbxcv6K87EzUfA0vyEaVNjtCW0tw2ZqJhN/DbbQMtPZ1gJ4Ca9zCUa0+Q6cCztIa XhUjnYHhDzgkoHWqsqVjmnObnElegDuzicDIwI2c6qrUpDn4B7CcszTFeZCsTbOFgYKw GSlQ== X-Gm-Message-State: AJcUukee0tGU31gaooidDa2Qm0cMCZVEea/w1sbdi5QkFJOYqIZCdna2 29VLOctELwqbgOdM4BW1lpjIw/uBq2g= X-Received: by 2002:ac2:55a3:: with SMTP id y3mr21806194lfg.93.1548873304083; Wed, 30 Jan 2019 10:35:04 -0800 (PST) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com. [209.85.167.47]) by smtp.gmail.com with ESMTPSA id p67sm418231lfe.14.2019.01.30.10.35.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 10:35:03 -0800 (PST) Received: by mail-lf1-f47.google.com with SMTP id u18so374367lff.10 for ; Wed, 30 Jan 2019 10:35:03 -0800 (PST) X-Received: by 2002:a19:7018:: with SMTP id h24mr24289646lfc.162.1548872894574; Wed, 30 Jan 2019 10:28:14 -0800 (PST) MIME-Version: 1.0 References: <1546314952-15990-1-git-send-email-yong.wu@mediatek.com> <1546314952-15990-3-git-send-email-yong.wu@mediatek.com> In-Reply-To: <1546314952-15990-3-git-send-email-yong.wu@mediatek.com> From: Evan Green Date: Wed, 30 Jan 2019 10:27:37 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 02/20] iommu/mediatek: Use a struct as the platform data 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, 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 7:56 PM Yong Wu wrote: > > Use a struct as the platform special data instead of the enumeration. > This is a prepare patch for adding mt8183 iommu support. > > Signed-off-by: Yong Wu > Reviewed-by: Matthias Brugger Reviewed-by: Evan Green