Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1403774iob; Fri, 29 Apr 2022 04:53:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuTjG0MhXc3G8354dWarUypoVUGgI3M+r/eAm+3z/U4QJD8u4roqIvgrVCugNveNJI4dFj X-Received: by 2002:a17:903:1206:b0:151:7d67:2924 with SMTP id l6-20020a170903120600b001517d672924mr38022646plh.45.1651233209858; Fri, 29 Apr 2022 04:53:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1651233209; cv=pass; d=google.com; s=arc-20160816; b=OAzBfhTT3yW8TVZDzz0ep7M4Kj2JDP1kI+FH+iuCtPxrJhlsGLr1JsA6NXiVBaR4v7 J7pHqiaYS70NQsGZ6uPxiUJL6BRt08xEdd4jxpOqQsLi4PeVLlnK8IDZ7LixBcwbWuiX YkPgODhWTLeF0QiD93SOrh5vXaGMFnsbsk4QlFaSHOYJs+pfk+Axe/3I8iqUhU05+jbg FISpZeTYVXNq2VwMlIAb2DrzDqKxSZzW+2kk8cHg7Y5XZW4i4D43+znIDvCQ1Pg1UeU5 2fFepjtltSDSdaF1/AsmwUw9YMOkJ0LT22i+LzbavJjDoMMXjwqtcVBbB11EsC6Ad3yv QcFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=lReBFmaYwkckjvsophyW8RStQLs6RtU97zzDYXHCOVk=; b=r6ovuHbA7H5+MrdfpoODghsPMcNtGIn3dUU0HVaIZXj7e8rZxalKeqpNZsjYt2F0IF GG2Tp0+imLtvY5c3cdsNaNVQsGQTcuYw1Jh/R1fvSF4zSkD/Gy56tW6GS9Ls7NPqmQnk qXxcv59BBXEU2k3LTMjNOvqVDIlh20+aavqNrMODXLrRbYeH20RVjzfhbJ/Vy4BSZzWB MVqv4QP+gvIyo2Fgi+K/GxcMNCZC0hINedELVZVmXOSThrJIFaAX7RnKivnpGy7rjIk1 y3XU2elcspqceWGttEcm/8Y3QQaypc1XxTDe9r5qcpRG86q/MIQhPvvJqLbGHwiwqaeB VDCA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@equinix.com header.s=pps202002 header.b=VbHkWg7l; arc=pass (i=1 spf=pass spfdomain=equinix.com dkim=pass dkdomain=equinix.com dmarc=pass fromdomain=equinix.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=equinix.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a17090a9f4800b001dbf264c057si2853488pjv.111.2022.04.29.04.53.14; Fri, 29 Apr 2022 04:53:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@equinix.com header.s=pps202002 header.b=VbHkWg7l; arc=pass (i=1 spf=pass spfdomain=equinix.com dkim=pass dkdomain=equinix.com dmarc=pass fromdomain=equinix.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=equinix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233818AbiD1JXC (ORCPT + 99 others); Thu, 28 Apr 2022 05:23:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345485AbiD1JQN (ORCPT ); Thu, 28 Apr 2022 05:16:13 -0400 Received: from mx0a-00268f01.pphosted.com (mx0a-00268f01.pphosted.com [148.163.148.236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 476FA5DE40; Thu, 28 Apr 2022 02:12:57 -0700 (PDT) Received: from pps.filterd (m0165119.ppops.net [127.0.0.1]) by mx0a-00268f01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23S4QkpC030006; Thu, 28 Apr 2022 09:12:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=equinix.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=pps202002; bh=lReBFmaYwkckjvsophyW8RStQLs6RtU97zzDYXHCOVk=; b=VbHkWg7lVuPtdtkpLXGQN6K/a0xksdg9OtrLsYY0cK+YUYpGV8rI1srqi3HE4iryEi6h 0pFp4dIpnyjWDXLsoL8Vr91rWK5V8ZrmMQhKKUvEiMpH+1OZ7zyUaUBER96mVLHPymNO 6wJ1dr5xs8wT9THtvvTl6gq2e8B4I0xHTnFlUQM5FHspaRDmrR5E29XkDh9N1cRVwDXQ 8a4LDtQuaP9Sw11OYSVfFYYt5MJ5EvzccjuaZuFtvTRhx4q0/M8CiSzVqWJxrzWBm/01 vvA3tbpcbmkz2jLJxTUQCJ+1NPNhk4nb9X+I6d0mN3Vz7iqp3HCh1QGzNDJLGOVbR15G RQ== Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101]) by mx0a-00268f01.pphosted.com (PPS) with ESMTPS id 3fqkwcgraw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Apr 2022 09:12:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O5vG+2RAMTtN4M6AIQV/i6vOaDBIpD0NMkFKdwdKxWwQSIZ8LKoE3RY9TtRW0MGZBANTLp+o0Zlh7Albh62PgaEelxVw3QlvD0MpHIhXBbGEgMsXf6lSCbFNLsU5hu0cICggEHqdQgD4IIShUH/eZMW/LwPPw35HIfQPCWb6jcJM/TjSp/jpGER40irpmockYXy1WyZbATz008n1ZCIVlt6pOfP8cOA7aquQReN5MGpKvy8XaQtWLGrA3z0yENOGbno3IHKlQj/NNNh1f0fPIbhxzz3g+21TfvqGTYd90e0m56hQy1mUzBzwXrWD7HM+UPNLD33D/e6b3+yzmIp7Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lReBFmaYwkckjvsophyW8RStQLs6RtU97zzDYXHCOVk=; b=W+y8AXPHF3MDc7KbZWo4ExeznjU7K9XfgsfYHwPFjmC88nYlS0NHtXbGehQEVY8jEF7iSChXtme3qm+Y/pgEON6XNC7T2OLtG4W91YOWKaU8rrr2aeyqr1uYFO9x+bBUjARVl3w7j7OmX70SaJ4qGgopEPItMM2xcarz6lPxb4S7iZzwnDmDFxVQ15LEZRmKlLizjQepWZ8BzgbgR00zQ+hHCk6LNhxEYKZ/uahJSDPNrzxZz8GbcWkf/yxLct0fwuAVlecqqPYa0wP39p52sJhUmzpgWhbg/4Tx0+9G61TCZMsjM9+Gdz+VCJGBJQwXkXDIIeC+Hm8Hu6xZrB+b3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=equinix.com; dmarc=pass action=none header.from=equinix.com; dkim=pass header.d=equinix.com; arc=none Received: from DM8PR04MB8007.namprd04.prod.outlook.com (2603:10b6:5:314::20) by SA2PR04MB7596.namprd04.prod.outlook.com (2603:10b6:806:140::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Thu, 28 Apr 2022 09:11:59 +0000 Received: from DM8PR04MB8007.namprd04.prod.outlook.com ([fe80::8d01:c5c:c8cd:7c56]) by DM8PR04MB8007.namprd04.prod.outlook.com ([fe80::8d01:c5c:c8cd:7c56%4]) with mapi id 15.20.5186.021; Thu, 28 Apr 2022 09:11:58 +0000 From: Zev Weiss To: =?iso-8859-1?Q?Jonathan_Neusch=E4fer?= CC: "linux-clk@vger.kernel.org" , "openbmc@lists.ozlabs.org" , "devicetree@vger.kernel.org" , Wim Van Sebroeck , "linux-watchdog@vger.kernel.org" , Stephen Boyd , Patrick Venture , Michael Turquette , Daniel Lezcano , "linux-kernel@vger.kernel.org" , Avi Fishman , Rob Herring , Benjamin Fair , Philipp Zabel , Krzysztof Kozlowski , Tali Perry , Thomas Gleixner , Guenter Roeck , Tomer Maimon Subject: Re: [PATCH 2/7] clocksource: timer-npcm7xx: Enable timer 1 clock before use Thread-Topic: [PATCH 2/7] clocksource: timer-npcm7xx: Enable timer 1 clock before use Thread-Index: AQHYWuADPVV+VjUAMkmBJ0XdE73Mwg== Date: Thu, 28 Apr 2022 09:11:58 +0000 Message-ID: <20220428091158.GD11809@packtop> References: <20220422183012.444674-1-j.neuschaefer@gmx.net> <20220422183012.444674-3-j.neuschaefer@gmx.net> In-Reply-To: <20220422183012.444674-3-j.neuschaefer@gmx.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a345b9a0-602f-4601-3c8d-08da28f725ec x-ms-traffictypediagnostic: SA2PR04MB7596:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HhrEjlocKQdlUhiNL/c0PogdSghNgAgXS+7Hm/26tTDV0pzqsEx+9PbcVFbgeg9UNgeKvH/twe4NiJIG7+aoppEpKyl8EKlig2NgVr5uegi6z8bSFS0tU5/zAxhkNANEme/gBb1Q/O7iuiy15gtOD2qLuroxZT71xH577aOW5DtfsilEUiIkNZnR8LkrxW/JnSe/OZuPLsyQLzSsl4ZG10vSV+7CqvTGw91Bs5aFLmpxCc18FIKCM+AhuejMrzhG5VHrYIjo5j4d49z/WcU1JZHaLvxrVFf7UQKpx+HlphETwmqsMR8/KSejUJUudGPtOd1uQYp8dlCpa8o2QreyPawOn91bSp85C5ghnNKVNKBIFdFQnRw/sLx9OK8slIDiz1CLO2YYravIvIGTaeEwpOwjCEQ0abNNO7QkVh1fZMsxRGdo9b1lIySqjrGItk5iI44seL+vyj8bUwK21/xBqjxjIg9mAkIFZPGTrbhhgZf59ccQnViV2YTpwxg1w7xFuwA7hqUo+Y2nbHeOc7SWwfCTeNQLDIfFeNDIN2vvr6sgPJ4L4q93ATyIcC/NamRRB/OcjORIgdGTHr0iAikmDwHiTPKTf1OsbquIng7fgBqF1EwAFafOLE0f2BdAf8YrE0rIYnLb9qlQ/xh7JDXjJDgOttzQqBy7dbtNTpSAMadWULLYwXZgBa5cJdho6kZyIRB6PMp5wfccZlSfgTEdkw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM8PR04MB8007.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(4636009)(366004)(186003)(26005)(54906003)(6916009)(71200400001)(1076003)(66574015)(6506007)(6512007)(9686003)(33716001)(33656002)(508600001)(6486002)(38070700005)(8676002)(8936002)(86362001)(5660300002)(7416002)(66946007)(91956017)(64756008)(66446008)(66476007)(66556008)(76116006)(316002)(38100700002)(83380400001)(2906002)(4326008)(122000001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?5Qoo5Ap0gLFjQ2Ph29tOSrQEkNfzUJcIPS0cOS5uTF7+XnJDUbm1hxD9wG?= =?iso-8859-1?Q?1wPJcI7rLS74+2LTpowKvPEfoASHtFCLQ7ld1VNma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UnuCvIJcJojXwBR4sQM3H0B04diy9rmMtYeMwShSNJGey5NA?= =?iso-8859-1?Q?dzPscJ5e/l3N/2i8Cb/f9GBnhT2ANvu85PQN/be0Xgehu3u4F4AFG1UXki?= =?iso-8859-1?Q?VfLgaA+kP8UkgPr2ySXzZYqHsuF02YTUCG/ce/sr9cit4GcyKIlud8+9my?= =?iso-8859-1?Q?hqwN0Tl3kLitOVlTnkL/adzL5/kj1UDnyvBdkvuV1BATJcx249Tcm/0HgN?= =?iso-8859-1?Q?ZKALE5g/xD6Sj+cqw+IN+71NFh22ruri+WtRGZshAFaqqgemTNwINYvUpR?= =?iso-8859-1?Q?zbAvALDO2UnyjeRYnXWpgu4ATHzV1XX/OiGQuZZU4h0OI07vily4uHBhPL?= =?iso-8859-1?Q?ImLv9CMaUMD9wvpezBY7JIaRjx7YBQPsR5n57pruaTpzxblZeZGXuxmwYb?= =?iso-8859-1?Q?dAPmRazoWr31BmIS+/Q+nsr14mvBYEHWitowxb0HUtU1gGAXhIbm0sud7c?= =?iso-8859-1?Q?HJv+c8At5KAstTj/Yer4DOgM5ihqlLA1S345wzr06PbdDPNmxYizdax+Fv?= =?iso-8859-1?Q?Ix8qYn+9xLS28ZumUMBo0V8TFJ3ly9aCF+W80A4uzGTIFC16+C/oLPunbN?= =?iso-8859-1?Q?Anp4Kf344uwnN7mAUv2fed9bYabaPWYJljANUo2c7snOvYV9I60EkPatoW?= =?iso-8859-1?Q?fVeGcJ6umBNazElelk14dewESOrK3FXSJl3UL4nnwGsa0EaDYTVw5aytK0?= =?iso-8859-1?Q?402pOIzt0byZPA64MD2n9IDBXvoWz13vm0CppjmKCx8jb+/N6Om3CoBiAF?= =?iso-8859-1?Q?15MES5ju8qj9VP7lszWQeNOWLWKRaX6Ntt7sZuO3ysr2jtaNNtiY9aEFrE?= =?iso-8859-1?Q?KunTA2VOUA=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-ID: <3B5D4AD7F1F6484CA96856400AEC7674@namprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: equinix.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR04MB8007.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a345b9a0-602f-4601-3c8d-08da28f725ec X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Apr 2022 09:11:58.4149 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72adb271-2fc7-4afe-a5ee-9de6a59f6bfb X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qRV2yBC/tXeAkwdthgbXBMoF2HJRk8A6zN0ezqUYwMnsAQebfclM8M4AS2oMtNy3m50NBdfo1FVCEOjB/Ne3fA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR04MB7596 X-Proofpoint-ORIG-GUID: I9dJz4s1ktKy-WH-Q6L6wY7Q2aEoMQ7B X-Proofpoint-GUID: I9dJz4s1ktKy-WH-Q6L6wY7Q2aEoMQ7B X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-28_01,2022-04-27_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 phishscore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 clxscore=1011 mlxscore=0 suspectscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204280056 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 22, 2022 at 11:30:07AM PDT, Jonathan Neusch=E4fer wrote: >In the WPCM450 SoC, the clocks for each timer can be gated individually. >To prevent the timer 1 clock from being gated, enable it explicitly. > >Signed-off-by: Jonathan Neusch=E4fer >--- > drivers/clocksource/timer-npcm7xx.c | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > >diff --git a/drivers/clocksource/timer-npcm7xx.c b/drivers/clocksource/tim= er-npcm7xx.c >index a00520cbb660a..974269b6b0c36 100644 >--- a/drivers/clocksource/timer-npcm7xx.c >+++ b/drivers/clocksource/timer-npcm7xx.c >@@ -188,17 +188,29 @@ static void __init npcm7xx_clocksource_init(void) > > static int __init npcm7xx_timer_init(struct device_node *np) > { >+ struct clk *clk; > int ret; > > ret =3D timer_of_init(np, &npcm7xx_to); >- if (ret) >+ if (ret) { >+ pr_warn("timer_of_init failed: %d\n", ret); This seems like a somewhat opaque message to emit, especially given this file's lack of a pr_fmt() definition -- maybe add a %pOF so it's slightly easier to trace back to the device it stems from? > return ret; >+ } > > /* Clock input is divided by PRESCALE + 1 before it is fed */ > /* to the counter */ > npcm7xx_to.of_clk.rate =3D npcm7xx_to.of_clk.rate / > (NPCM7XX_Tx_MIN_PRESCALE + 1); > >+ /* Enable the clock for timer1, if it exists */ >+ clk =3D of_clk_get(np, 1); >+ if (clk) { >+ if (!IS_ERR(clk)) >+ clk_prepare_enable(clk); >+ else >+ pr_warn("Failed to get clock for timer1: %pe", clk); Likewise here (though to a slightly lesser extent). >+ } >+ > npcm7xx_clocksource_init(); > npcm7xx_clockevents_init(); > >-- >2.35.1 >=