Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6206254imu; Wed, 30 Jan 2019 10:34:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN6hGfu6VdLkv0NNNLP1vYXxk2MtLh20JKdohMOs+oKk+OWEiYcFOrWS/tLKnEOETVwq0OpR X-Received: by 2002:a63:8c0d:: with SMTP id m13mr28776390pgd.422.1548873288459; Wed, 30 Jan 2019 10:34:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548873288; cv=none; d=google.com; s=arc-20160816; b=FAtgpyv0xMiLdNqnDrxmxvCRFjqdbOPvL1Kf9TYSI30VuHjQE4cpPvX62jUOTdxkdo SFleeR5JdASAlPngdf1A+VeVHly7TD9/a1rRlk3ypxBdRqTP0IJhIL4b8DcoA7SaPOG2 MZ0Z8JwRHBDzjJYmeyCoww6/yQZTDMRlWuYFH15rtc1uvD8oy/bRiAW1m+cKAEz8wJuf DRYEiHk13HygL+mZBHguqRJn1pw8m3JLF0oREJP1Qr52hyJjUOUBhR4Z8mLkWXlB51fJ jMcC3MYzV0x4J/LJ1u9WyPlmm2oFgVyWzMruUq3G/oKv7VYYj/EjCHxndAC1rrvNEzkt 5utg== 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=QkOMpoKed0oV+8zD2WIVrhcLu4xsQ8yP+/TMONcyXe8=; b=KdNKPtECmFrmTgqey+dWmzr+JRDRZBYny3mo/ZhrL4FnUTpFjjxJE4DEya1XpI/g/N OAtsfQI/U326MFrR/h9ah+EqGQ+0l/wg7lS2NIjZTD0IsELvz/19eyV3+5BFBE65oJtd 151YT4qRR+Y2H7GZO9VHXpk3UMiHuUD9LUeocpAJbvNyEhf8luLxIKK5MEut9UJNVyEJ u+kkZQXVTiOzJBEIwNbMOO2sFsAmRP3Ysuzov1bqv6w1+rFehXOr4uSJV2F4/SnTgoTW y5TkAePj5Yo803/+CfJSsRO8wJy6kudwEt1pngOIphor23zGDQqGxJDoEj9+WS/D9b6k wIbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="A/8+YP8D"; 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 i12si2078980plt.213.2019.01.30.10.34.33; Wed, 30 Jan 2019 10:34:48 -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="A/8+YP8D"; 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 S1733072AbfA3SeZ (ORCPT + 99 others); Wed, 30 Jan 2019 13:34:25 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:38460 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732106AbfA3SeY (ORCPT ); Wed, 30 Jan 2019 13:34:24 -0500 Received: by mail-lj1-f195.google.com with SMTP id c19-v6so462463lja.5 for ; Wed, 30 Jan 2019 10:34:23 -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=QkOMpoKed0oV+8zD2WIVrhcLu4xsQ8yP+/TMONcyXe8=; b=A/8+YP8D8pjnZNNbInaO+adNXxNU+SfT4FM9uAVLAJo4PX/1mvE1WkaoSpAQgfYJZb yefaN3OWn3hUjoRl1aZh1jN05QQoIEW9VfbkLqX62I/AP568c3kWIiXf6GBABJkGqKPG k3Bnmtgqwpp+V8Ha3eirOmG7MKSmybtGaynCQ= 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=QkOMpoKed0oV+8zD2WIVrhcLu4xsQ8yP+/TMONcyXe8=; b=CsNsH0sVWVDNWb0th+PxpyBMiF0EWZ6JZTikvmlBP4/FJl4DbfG92AnQC0UPUHSVTA Rswz9hysplyqlGE6/dAwL0in6fxXAeukFQpNuFYLLFgdwj+6G8vmIQYf/+mlx50BLfiB Ct46kjj4sdLvIMJZuHuhcrVU5BZOZDfzl/ksimofJU+FrflATcmagQYvk1ykIZA2vaJw eN7mt8wIkTxkpueNSUzOErgZ2LnZUwqVeApxD1+EtXBOpTykFpdwTMsy18qWzzY8aKGy Yi2L346anV+NtZykCJ6uEsjYNLfU8Qd+gbTEPQiLpKlfrdPRKMQzniG9CJi4Y5LFNOAN p8sA== X-Gm-Message-State: AJcUukcKVJ7Yoo/IMH4yGetqaZ04xlF1OtHIR9KWD9pz7AGBpneBdiwv PcwH36jJDcs22bOxmMn+Zfo9w+NL2I4= X-Received: by 2002:a2e:8256:: with SMTP id j22-v6mr25220684ljh.40.1548873262359; Wed, 30 Jan 2019 10:34:22 -0800 (PST) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id d24-v6sm397184ljg.2.2019.01.30.10.34.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 10:34:22 -0800 (PST) Received: by mail-lf1-f53.google.com with SMTP id y11so408579lfj.4 for ; Wed, 30 Jan 2019 10:34:22 -0800 (PST) X-Received: by 2002:a19:d381:: with SMTP id k123mr24303527lfg.101.1548872921418; Wed, 30 Jan 2019 10:28:41 -0800 (PST) MIME-Version: 1.0 References: <1546314952-15990-1-git-send-email-yong.wu@mediatek.com> <1546314952-15990-5-git-send-email-yong.wu@mediatek.com> In-Reply-To: <1546314952-15990-5-git-send-email-yong.wu@mediatek.com> From: Evan Green Date: Wed, 30 Jan 2019 10:28:04 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 04/20] memory: mtk-smi: Use a struct for the platform data for smi-common 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:57 PM Yong Wu wrote: > > Use a struct as the platform special data instead of the enumeration. > > Also there is a minor change that moving the position of > "enum mtk_smi_gen" definition, this is because we expect define > "struct mtk_smi_common_plat" before it is referred. > > This is a preparing patch for mt8183. > > Signed-off-by: Yong Wu > Reviewed-by: Matthias Brugger Reviewed-by: Evan Green