Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6275676ybx; Mon, 11 Nov 2019 06:43:36 -0800 (PST) X-Google-Smtp-Source: APXvYqwQoKLz3hIvG0A0WgSmU4ESbFoQvBmGjj2L5ae1v7XwuRKBiDRODD70oZ0rMmfQoTPWF/E1 X-Received: by 2002:a17:906:913:: with SMTP id i19mr22577316ejd.23.1573483416101; Mon, 11 Nov 2019 06:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573483416; cv=none; d=google.com; s=arc-20160816; b=cq+tuqL0K1ZndEbrfRnb2cK4GusO8zU0vy7wPv0JV7BSXKyW2gqQi53YSsXlEsz6Dj 0p5Dg4GFgngToi01LMVdD5yiGce2ix8TUmG6guDz3IHZ9YKPWRefdnYacHfEMu9pKP+I X7d6mN2gx00M3hUNC4cQ3BsefzDgdIeFMRsI6JeV2zozGNGbvTXkh0cJx18bDw5UfBxz GFjqs+JyZy8Tk/isWUBGuGlGmcX9Sh+K7G7sCPbxecitwz1xnNdl48Fo6IvG39uNAdP+ Lk6ubiq7uIb26W8pK76GwZwNda5eOGTeIqU5TXo5X/xZ25doMEjWN8A6xv1uNswbPY81 T0zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=HSZMQWzyEHnnHHGSgljiQy/rMe2MxTJvgjXJLTPB8Uw=; b=GWiKFy/CrlOThF/4dnafift3oKT02/DKH+e+54HwsEtxobn+DDNuoAYocBRNhbDiyT 5bxkYImJOuI+I58XgQlMf6ipKG+G50HWES9Jx7iYaSs+JqBHPjzLJFXayWbbETNJR8W2 NEyG6UMrMCuAm9r6OrqEJEhIra9N5TVes3AidUuptLqdL4ptUGDkl3bluYmNUNkxGQCD 5arLAJHXkGSaFR2zkf/gag0vEvZYxmaDN9ATaEr6gEt0CtKhbLD/P+gmFlPSmhWD7fs3 xQe5a6UBOquCeEHcgEEmEJIgpaIP5p8dY02lrO9LXpxFbE5Zxd+P4aMippfzGEMDk85i TPTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=LAzanCoh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16si12652913edi.241.2019.11.11.06.43.11; Mon, 11 Nov 2019 06:43:36 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=LAzanCoh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726979AbfKKOkW (ORCPT + 99 others); Mon, 11 Nov 2019 09:40:22 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39122 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726871AbfKKOkW (ORCPT ); Mon, 11 Nov 2019 09:40:22 -0500 Received: by mail-pf1-f195.google.com with SMTP id x28so10826724pfo.6 for ; Mon, 11 Nov 2019 06:40:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=HSZMQWzyEHnnHHGSgljiQy/rMe2MxTJvgjXJLTPB8Uw=; b=LAzanCohnqFWoF8gGT+BAns/rhQOt9zScUEdL2og/ftcWJRRiv37aXkm3RKjkwf2p+ ALvBnZ0EdR41oJ1oipALK9HTNW3YLU06bdHqI2mCfXrRsOaH72lpnrDVj5qht22plo/I raY9u3gdnGyg9LrKuqIgdSuLbCkvJfvay3T8/j8RznOfP86n5uNku2uD8mRBWIFfzE+x G/+VqYJp/K+k64wGPG8tHH6inJ6Hd1ahzyAjEVin93HD7RgfQgN1EWHr0ZnCvNPTcbvR jqMd59qSv/jCqsbpiUag62bFCGY4vM8w9wV78ceO1YpZDuIddkh2Vm/IcPfH6F2kTCrD 7hUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=HSZMQWzyEHnnHHGSgljiQy/rMe2MxTJvgjXJLTPB8Uw=; b=CU6O+98M3JUi/rxjnRw+yhDRlLTtLS29+Eo1ffG0O7uNMcHToGOGXk9gadD6oiQnpL gG+4Dxuz2tDgEaQ+mDfTw7AOgX7WAcNTofoO0GtSH9mszD45VJHL+RswFydDYCcERmPr kBl98ciz2W5N7SHjVyD7pGqyNOOaNwIBmSL9jQxnTYI8VxbOdKFpsc1pKGzA4/OXx95W U1LbJiBLcl5puEXabUsIn+guENWCDOjRkHLvO3FLTiCk23dE5CVlshTbPhpFAZoPdBk9 7BmuqNzmawTl42T7u3XpOQ0iE5YlBtDcI+IJ9TtZDjX9vS4ML6GKwLS+sKHz446O6wbK cWUA== X-Gm-Message-State: APjAAAUP8ohr+cVtGG7xTYpmCe67dbfP+yoG677+7r4GoexOom/E6HjA yAZC9gDwrG2MXaRTzIYnmjr0HQ== X-Received: by 2002:a17:90b:110f:: with SMTP id gi15mr35797335pjb.128.1573483220407; Mon, 11 Nov 2019 06:40:20 -0800 (PST) Received: from localhost ([2601:602:9200:a1a5:dd5e:2cce:fe26:7bc6]) by smtp.gmail.com with ESMTPSA id fz12sm13611195pjb.15.2019.11.11.06.40.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Nov 2019 06:40:19 -0800 (PST) From: Kevin Hilman To: Jianxin Pan , linux-amlogic@lists.infradead.org Cc: Rob Herring , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Jian Hu , Hanjie Lin , Victor Wan , Xingyu Chen Subject: Re: [PATCH v4 2/4] firmware: meson_sm: Add secure power domain support In-Reply-To: <420073b1-0a3f-1bfd-4422-34f8cd7e0d2d@amlogic.com> References: <1572868028-73076-1-git-send-email-jianxin.pan@amlogic.com> <1572868028-73076-3-git-send-email-jianxin.pan@amlogic.com> <7hk188stcy.fsf@baylibre.com> <420073b1-0a3f-1bfd-4422-34f8cd7e0d2d@amlogic.com> Date: Mon, 11 Nov 2019 06:40:18 -0800 Message-ID: <7heeyecw8d.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jianxin Pan writes: > Hi Kevin, > > Please see my comments below: > > On 2019/11/10 4:11, Kevin Hilman wrote: >> Jianxin Pan writes: >> >>> The Amlogic Meson A1/C1 Secure Monitor implements calls to control power >>> domain. >>> >>> Signed-off-by: Jianxin Pan >>> --- >>> drivers/firmware/meson/meson_sm.c | 2 ++ >>> include/linux/firmware/meson/meson_sm.h | 2 ++ >>> 2 files changed, 4 insertions(+) >>> > [...] >>> diff --git a/include/linux/firmware/meson/meson_sm.h b/include/linux/firmware/meson/meson_sm.h >>> index 6669e2a..4ed3989 100644 >>> --- a/include/linux/firmware/meson/meson_sm.h >>> +++ b/include/linux/firmware/meson/meson_sm.h >>> @@ -12,6 +12,8 @@ enum { >>> SM_EFUSE_WRITE, >>> SM_EFUSE_USER_MAX, >>> SM_GET_CHIP_ID, >>> + SM_PWRC_SET, >>> + SM_PWRC_GET, >> >> These new IDs are unique to the A1/C1 family. Maybe we should add a >> prefix to better indicate that. Maybe: >> >> SM_A1_PWRC_SET, >> SM_A1_PWRC_GET, >> >> Thoughts? > > I consulted with the internal VLSI team, and it's likely that the latter new SOC will follow A1/C1. > And then it may become common function in the future. OK, but it's not a common function for the past, so it's useful to mark that distinction. Just like in device-tree, we often have compatibles named for previous SoC families (e.g. "gxbb") used on newer SoCs, but we use that to mean "GXBB or newer". Similarily here, we can use SM_A1_ prefix to mean "A1 or newer. Kevin