Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9006804rwd; Wed, 21 Jun 2023 01:32:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6unE2H2bPMmIhY7809AhIyp5s6Xfv/qAaqUd9CfSvtVi+vm9iKVDydvr6yGlpHc55FMCTr X-Received: by 2002:a17:902:ab17:b0:1b3:d606:9214 with SMTP id ik23-20020a170902ab1700b001b3d6069214mr4380701plb.24.1687336376502; Wed, 21 Jun 2023 01:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687336376; cv=none; d=google.com; s=arc-20160816; b=Oy45HvAPZpxfJ608+N6diym/nefZGPqolFWbcWOROXddf/AZEZDxZC1o9FNKjqDyk/ S3arIwf0uNA9VkRxcIIQhL8/AxT86AbMREnbTUGftTXG50N9Anc4daLy1OMREFL6Yi6S dpFMl/7oPFchtxEQIZLf85zpfyEwi/2viRwOzccrfWXfTiM9Kl89mhucKsojDmHDMCeh Xr0J6/NcIaP7a8D0gr7vSbJU3JficDHCT90s6d7K8zIiJ147NUMz7D8HRIs60ENqKwjj VTUeBVVfpgyJGzVIJubfXsylZeJNuMqfxggH0TorciHfoAszXL2NbdhkLH/j0hQW7eNz ptSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=x+0IfbRP5uhtrIWmzZU5o1znkghAReX8NKQv/Nwp6/g=; b=t/a3aeF5koH124np9qpcUZl8/oJUXBkeX3DS5YNvRNIUPkEKVQLOit0ijKhX1LGqXh oJzDFFkI13vNfZLnEDEvhgLGmeQjRvrnwvPNCWkMazJMj+MGiR0W+LsVdM0OFkQJCxR6 zhQRHE0eRreyViYePbF3jUqdBYk6FG9cf5n3PwYjTOfa0gx+ve/ap2ONjbBUlRJ8Y3A5 czpzE1Mji9c2VTQPShJF+ouMSw4VGky4toB5TK1PUmfZSmTr1iRiiR3FsrecHEn5WRSe pURS1vyfbE0EZCuHCJsMbXTk1C7ALlQPxZq7geLJC830pSBWtVBGTIVDaAQBbx9e8GoQ VMWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=j6iUTGQt; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l5-20020a170903120500b001a6f0e81ec7si4498383plh.237.2023.06.21.01.32.41; Wed, 21 Jun 2023 01:32:56 -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=@maquefel.me header.s=mail header.b=j6iUTGQt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230143AbjFUIWq (ORCPT + 99 others); Wed, 21 Jun 2023 04:22:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbjFUIWo (ORCPT ); Wed, 21 Jun 2023 04:22:44 -0400 Received: from forward500c.mail.yandex.net (forward500c.mail.yandex.net [IPv6:2a02:6b8:c03:500:1:45:d181:d500]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAF03BC for ; Wed, 21 Jun 2023 01:22:41 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-57.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-57.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:6284:0:640:826e:0]) by forward500c.mail.yandex.net (Yandex) with ESMTP id 469455F1ED; Wed, 21 Jun 2023 11:22:39 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-57.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id bMdsDaQWniE0-1QR4YBWK; Wed, 21 Jun 2023 11:22:38 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1687335758; bh=x+0IfbRP5uhtrIWmzZU5o1znkghAReX8NKQv/Nwp6/g=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=j6iUTGQtCGu5WsNJbA7oFV0XZnq7TlyIsoAp6Z0GJnZHLRFeEkL1mG9NBVLCEl0VD H85nzgeFBK8JdBF9LJABGnVeRLeifzcwENwBqYGr5ahx5Vat82OMYMEVopezAD2U7p abepGW7dhkD6TgY5cppX3e/jUCp64qoDbgACYFYc= Authentication-Results: mail-nwsmtp-smtp-production-main-57.myt.yp-c.yandex.net; dkim=pass header.i=@maquefel.me Message-ID: <35bc18b2e685e8596b1fdc1a2e6212dc98725cd4.camel@maquefel.me> Subject: Re: [PATCH v1 09/43] clocksource: ep93xx: Add driver for Cirrus Logic EP93xx From: Nikita Shubin To: andy.shevchenko@gmail.com Cc: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Daniel Lezcano , Thomas Gleixner , Michael Peters , Kris Bahnsen , linux-kernel@vger.kernel.org Date: Wed, 21 Jun 2023 14:22:37 +0300 In-Reply-To: References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601053546.9574-10-nikita.shubin@maquefel.me> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hello Andy! Agreed to almost, still... : >=20 > ... >=20 > > +static struct ep93xx_tcu *ep93xx_tcu; >=20 > Global?! > Can it be derived from struct clocksource? >=20 It's look like a common practice for read_sched_clock, even for most new drivers. I would like for comment from Daniel or Thomas before ripping it out. >=20 > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0irq =3D irq_of_parse_and_map= (np, 0); > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if (irq <=3D 0) { > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0pr_err("ERROR: invalid interrupt number\n"); > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0ret =3D -EINVAL; >=20 > Shadowed error in case of negative returned code. Why? Majority of clocksource drivers shadow it. Same like above. All other comments applied - thank you!