Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp446468ybi; Wed, 19 Jun 2019 02:12:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzH/PNB59M54abRPbUJXFKIxkNuGnNiSOoiE8Wdis1z5SEpUqHSZKRfcktnHlQnPefACQvv X-Received: by 2002:a63:e70a:: with SMTP id b10mr6691270pgi.26.1560935565235; Wed, 19 Jun 2019 02:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560935565; cv=none; d=google.com; s=arc-20160816; b=FHOgRpEM6WlEle4dWNIr7EdCSoOJD444zqV/zyNv+qiKeHXZGOVGXAmIGD4roZUD/G 3F3/clBU1z39AutCwZ1kfyYv3nYZMmDvggMkkUkp8fcVdSLAUCcMtRxy59oN4+btmOTX G/eDCTlMMrq9KEQTPgIeQpiFLwnL+mIpYz7+bbrXZjsCWtGXYrwpljqApPCInvJmRgna wRhQziEyAEUvCyeW6IKAZBPmPvQQle53L3aKGF+WCGusFF3DZahSlSMaWZz4vTnj30Xc MPmq18YoFrdbc5DgPTuZv5/G1uw+6fhBmTdTTYBE4zevv12Evlu0Gmz4XLPhT7Xnv0FI 3Z9g== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=BJ3Lw+/crUMMwQPTjWFFCjHnw2QRoCmvRIVik3uQcqw=; b=IiCWmNY2C1YjZAJazgHbrV4WcGLUr3LsQb5d7jtiD6g6TJg845TYanJKOCoIwCXRJ6 7MPSIk8yJBhlUq3f/0nA8nIsPrjduMl/O0LQiggrWurc+zseL/qJgCpWc4ugbLaFLXf+ wQDXp5ekTykubgicA2Bv4Ab5FTqE0Z4UnxjtM2S5Vn00gCY49H4m9XHY22Wvoh1CiV4j 31gWpgVLiyrkBS5EfJ2po7D7/oIsBwjHR2yJQUeGGQPFNMdszYExpAz67C6jLCyJfg1E b5gTFMPhn1tnXQ6Fv/K7B9bpxtdZkdQhVo0KYpGsD3JXucdU1QX1Mq8r2W/t5Rd7bKb2 Satg== 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 a32si932844pje.7.2019.06.19.02.12.28; Wed, 19 Jun 2019 02:12:45 -0700 (PDT) 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 S1731334AbfFSJMV (ORCPT + 99 others); Wed, 19 Jun 2019 05:12:21 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:65249 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730996AbfFSJMV (ORCPT ); Wed, 19 Jun 2019 05:12:21 -0400 X-UUID: 583cab0048a7483293dd615e26509cae-20190619 X-UUID: 583cab0048a7483293dd615e26509cae-20190619 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2102173806; Wed, 19 Jun 2019 17:11:58 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 19 Jun 2019 17:11:55 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 19 Jun 2019 17:11:55 +0800 Message-ID: <1560935516.2158.2.camel@mtksdaap41> Subject: Re: [PATCH v5 04/14] soc: mediatek: Refactor polling timeout and documentation From: Weiyi Lu To: Nicolas Boichat CC: Rob Herring , srv_heupstream , James Liao , lkml , Fan Chen , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , linux-arm Mailing List Date: Wed, 19 Jun 2019 17:11:56 +0800 In-Reply-To: References: <20190319080140.24055-1-weiyi.lu@mediatek.com> <20190319080140.24055-5-weiyi.lu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-SNTS-SMTP: FEF713524511270A67FE0C1B2152E937E6EDF13A65FACB2F23DD324F98A8FFCE2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-03-19 at 19:45 +0800, Nicolas Boichat wrote: > On Tue, Mar 19, 2019 at 4:02 PM Weiyi Lu wrote: > > > > Use USEC_PER_SEC to indicate the polling timeout directly. > > And add documentation of scp_domain_data. > > > > Signed-off-by: Weiyi Lu > > --- > > drivers/soc/mediatek/mtk-scpsys.c | 14 +++++++++++++- > > 1 file changed, 13 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c > > index 9f52f501178b..2855111b221a 100644 > > --- a/drivers/soc/mediatek/mtk-scpsys.c > > +++ b/drivers/soc/mediatek/mtk-scpsys.c > > @@ -21,7 +21,7 @@ > > #include > > > > #define MTK_POLL_DELAY_US 10 > > -#define MTK_POLL_TIMEOUT (jiffies_to_usecs(HZ)) > > +#define MTK_POLL_TIMEOUT USEC_PER_SEC > > > > #define MTK_SCPD_ACTIVE_WAKEUP BIT(0) > > #define MTK_SCPD_FWAIT_SRAM BIT(1) > > @@ -108,6 +108,18 @@ static const char * const clk_names[] = { > > > > #define MAX_CLKS 3 > > > > +/** > > + * struct scp_domain_data - scp domain data for power on/off flow > > + * @name: The domain name. > > + * @sta_mask: The mask for power on/off status bit. > > + * @ctl_offs: The offset for main power control register. > > + * @sram_pdn_bits: The mask for sram power control bits. > > + * @sram_pdn_ack_bits: The mask for sram power control acked bits. > > + * @bus_prot_mask: The mask for single step bus protection. > > + * @clk_id: The basic clock needs to be enabled before enabling certain > > + * power domains. > > I assume these are the clock*s* that *this* scp_domain requires? > > So maybe just: "The basic clocks required by this power domain." ? > Thanks for revision. I'll update in next version. > > + * @caps: The flag for active wake-up action. > > + */ > > struct scp_domain_data { > > const char *name; > > u32 sta_mask; > > -- > > 2.18.0 > > > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek