Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6292590ybx; Mon, 11 Nov 2019 07:00:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyLYKjFKhKomSSszf0taMt9Fj92GTRc/vlPn+J2jfD0PjF7TcJO4O/QdXcZ9mX3fwyhDUVu X-Received: by 2002:a05:6402:57:: with SMTP id f23mr26579310edu.257.1573484433976; Mon, 11 Nov 2019 07:00:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573484433; cv=none; d=google.com; s=arc-20160816; b=yhGCgdIRD7KJnH4D2YiwhbdM/jx4Fwczppt0OmPifD8EK3tVDLaxr6tzfgbj9T6UEQ l0i/1uCd7FfoKtW0ey7rMo+25xtakcz2PnO+uJ1aIx4MqMYTKbOyA3O7GEjvv2S/NTTm yjKkunNUkRVbijnU0onRgdYJ8dSPZDh422/QoS31xrNAzuHy5j8iTHF8RLfhVXpOt6tA UZM3HiPizbK+ENW0nubvc5xC9/IEl3RId4r7v8KWosOB8b8ocTZJo1mv1VJuE4kqhFzd 6Txfslqz0utYWUOl6qd7rwULBgd96H+lJJkcy7MRntA5ovadPCAjrfkIFFovz7i9sh6b 21Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=JXHsZNAJYodDZ/GfKXfOF1i/KKy8VM0onleGiM5+dpc=; b=GnkCARnMpag+kc35U3RN6/uyPvw/spHxwaJxkOLJsAQ+7lk9LXhWixaBwgPR/5qdSS ZHfxx8ZxfJRzc+UHoVysfYWWg8dj+ZC5b6UqE+G8e3qLljFJQ2byplqMsfwbjZQaK9QC Z7NT093Bk4oF6a2RF0vFcJbkF5pHAJWrZSeajdRjfGrR8f9i5FOAFz2OhaQBedJxoNC6 A50K82W6CfyDdcq23SkxyWrGxnhI/gdJUOdVtcnQbGQ8a3G47L05a3QC2Uc0ucXN4Slt aStvVgK3d8kNs2xb/ApFnu89mjw60l3hNKjO9aFH3UFd8HqfArYBtLVeJcLcUxdhYSnR YjiQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d34si11360775eda.268.2019.11.11.07.00.09; Mon, 11 Nov 2019 07:00:33 -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; 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 S1727001AbfKKO70 (ORCPT + 99 others); Mon, 11 Nov 2019 09:59:26 -0500 Received: from mail-sh.amlogic.com ([58.32.228.43]:49308 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbfKKO70 (ORCPT ); Mon, 11 Nov 2019 09:59:26 -0500 Received: from [192.168.0.108] (223.167.21.236) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Mon, 11 Nov 2019 22:59:25 +0800 Subject: Re: [PATCH v4 2/4] firmware: meson_sm: Add secure power domain support To: Kevin Hilman , CC: Rob Herring , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , , , , , Jian Hu , Hanjie Lin , Victor Wan , Xingyu Chen 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> <7heeyecw8d.fsf@baylibre.com> From: Jianxin Pan Message-ID: <3d14fc01-f903-c008-631f-eeb0b4a335f0@amlogic.com> Date: Mon, 11 Nov 2019 22:59:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <7heeyecw8d.fsf@baylibre.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [223.167.21.236] X-ClientProxiedBy: mail-sh.amlogic.com (10.18.11.5) To mail-sh.amlogic.com (10.18.11.5) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kevin, On 2019/11/11 22:40, Kevin Hilman wrote: > 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. > Thanks for your explaination, I will fix it in the next version. > Kevin > > . >