Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9014827rwd; Wed, 21 Jun 2023 01:41:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5fAxgA0mM59uAVir3o3CFYTDPC2dxM80U0cDzMyvoCpycGWzNPxVTu4fspOYG9FpuQqcQE X-Received: by 2002:a05:6a21:3414:b0:118:b72c:2924 with SMTP id yn20-20020a056a21341400b00118b72c2924mr12044095pzb.60.1687336871761; Wed, 21 Jun 2023 01:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687336871; cv=none; d=google.com; s=arc-20160816; b=LOUwSqAUf/bkGSVMxtmsTprnbrN7o7ZTjxCPhytYIZy4olp5czJSc8vmtDtO8xquSh GyZDGQ1/rvXcJFePmg9trht+arI49Q8dj2TbUpODfTTFQUbrxihjtlxYoV0qQ7yvQuVb Ui/iO4qrhr6SwwmhS0ei6pKLAaoyewYvikD8grW2TiRV+uKBZEu4b/ZRIt7v+lAbfaFx 1B9MstJ5HquLMgF5WokqZiMzmzi9HillktEPTYk2EjPzf7/M2HhZnifNrIZUqe0avr/p NF2V+Mg5PgQdZtpSCfDKrswkinBeIBtqNjsbP3J0KSoGSV+R8njDdmA6ATR67lVLGUfs CV5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=nk1REjxh13RDFMixwQF0Wa6MImxEsHq1Btoq+GOXg2o=; b=nCuV8g6VUToSR9wn84TMQv4MPp7PM0QCb8pJrry/Bxax6UJKr+WicncxxDJXaL8ksY 2j/0KxWPdycYyLp0Bb0cBviwrWU+aV1HW5C4XlOlYenhh93UyYjgKUErZ7zEHVsGXKdD P9VTSCw+YbeobfI9osVgbdjqJnRlbVyGkcPagKvJ2naVaN4TZZUYIJnjPFCJwnOYwq+e xABIf1qnjm735izsSWCgN/jKJlCVlEfN7F3W00bL4AYBMkble9vqo7bKBv2SliY0kfT5 iGzT7nH5FDF/qxZ/8wACB3ugdqRujUL98JaT51/OCy7g5tv+jp2ssu1gpaeWzo4IdMmZ mHPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gL8pf0Zn; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a170903024500b001b5585f945asi4032985plh.352.2023.06.21.01.40.57; Wed, 21 Jun 2023 01:41:11 -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=@gmail.com header.s=20221208 header.b=gL8pf0Zn; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230074AbjFUI3K (ORCPT + 99 others); Wed, 21 Jun 2023 04:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbjFUI3J (ORCPT ); Wed, 21 Jun 2023 04:29:09 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73B8910DA for ; Wed, 21 Jun 2023 01:29:08 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-51a200fc3eeso7437629a12.3 for ; Wed, 21 Jun 2023 01:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687336147; x=1689928147; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nk1REjxh13RDFMixwQF0Wa6MImxEsHq1Btoq+GOXg2o=; b=gL8pf0ZnrQlh0QuUD9HbLVyd9CpIiQ7jLKx6Zn/byg9iWx8klb6/iYvqwsW4kc+frm 40nT/ceeyqpMv2Tnza1+0CMDmGTir2FGUWrnMNHyvomKX0kEvsmiMywdW+QMLXDZC4fP +VBIOYJCpSQpyGEU4OYyPG0Ukk8gHZ44jqhIK2g1A/36r3rLg1LwjqlZiiBY4uWePfsx Xb66AOP1h7IjlJMYCpJIFVfzVdCyUwHrDx5pupPb7RhKrVSeBy7wpOalNl0zEhmOHlsn xjW1RFPiHsa7+rRn7YDAHHHD5xroKFA92kAY5XDdSh7vJqjc/dNQs2UWbwrxAzPCRPks gFlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687336147; x=1689928147; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nk1REjxh13RDFMixwQF0Wa6MImxEsHq1Btoq+GOXg2o=; b=a8nupkBqRyNdSjaXgKvoQjEPoqbODl0DqQc17kx1XAtbZz3eihiWbMN1H2BNxBzXJr 832OsjYLOLpVaVfThQQeXz/S2nPaQ0o8e57Vw0mKb5ekubDe0mMPwyYu0apdaMlnVqzt J43G3BM6ZHPKY3az1F8Oa03WitbymZfce1IqxMfmaRIABB8LWS5+CkjZpjZTYAofJ+bj ZJxG+IJwveQt9K7LNquLYHLIoYNshXRUDgOPa0clG4aFGqOoczsrcJwTTI9hDTkrPgvO k+LrZOLdODSEKwTXUaP9CtUoj9Ah3xdli21ilW8jnEiSF5BVx06EJmQyAOxH/3r4WdWK XJcQ== X-Gm-Message-State: AC+VfDxNI9NyiSzkr2aRcCqHfdyme98C0pzWe5QatsW/3RT+acRO1VBg ZNMJHtEblYyUOqtqTGgKiyfsIPsRDR2PuI3mdFs= X-Received: by 2002:aa7:c314:0:b0:516:3261:17d with SMTP id l20-20020aa7c314000000b005163261017dmr9542121edq.20.1687336146807; Wed, 21 Jun 2023 01:29:06 -0700 (PDT) MIME-Version: 1.0 References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601053546.9574-10-nikita.shubin@maquefel.me> <35bc18b2e685e8596b1fdc1a2e6212dc98725cd4.camel@maquefel.me> In-Reply-To: <35bc18b2e685e8596b1fdc1a2e6212dc98725cd4.camel@maquefel.me> From: Andy Shevchenko Date: Wed, 21 Jun 2023 11:28:30 +0300 Message-ID: Subject: Re: [PATCH v1 09/43] clocksource: ep93xx: Add driver for Cirrus Logic EP93xx To: Nikita Shubin Cc: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Daniel Lezcano , Thomas Gleixner , Michael Peters , Kris Bahnsen , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, Jun 21, 2023 at 11:22=E2=80=AFAM Nikita Shubin wrote: ... > > > + irq =3D irq_of_parse_and_map(np, 0); > > > + if (irq <=3D 0) { > > > + pr_err("ERROR: invalid interrupt number\n"); > > > + ret =3D -EINVAL; > > > > Shadowed error in case of negative returned code. Why? > > Majority of clocksource drivers shadow it. Same like above. It doesn't mean they are correct or using brand new APIs. Can you use fwnode_irq_get() instead? The shadowing is most likely due to nasty =3D0 comparison. Also that ERROR is a bit weird, pr_err() is already on error level. --=20 With Best Regards, Andy Shevchenko