Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp403029ybg; Thu, 19 Mar 2020 01:49:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuMabJAe9Ie3x8EzHloQNvp1yPofhemEEciCxElypCXASEt6gDQ2Gya8CWC8/954KoGlYJw X-Received: by 2002:aca:d50f:: with SMTP id m15mr1592496oig.19.1584607798848; Thu, 19 Mar 2020 01:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584607798; cv=none; d=google.com; s=arc-20160816; b=X54JyMa4NXKhzCTlvFx+D/iUSg45FiOwoIypGln2CmapTpI4StRKzmS1cMQiLumIo7 alJ+GNKrpP4ie+4zHeicoAvvjtnx/lsHr7u0x9jI872VGYnLjsJPJWrzBOswTJYVQ140 GO4NjzpBC61W/R2fEh4eXcUBZRPSizrgtsELL6lzSEaEvz7nQDJ/GVWnsW4TRAsKSpQo IuyISbnliUXfoFWGXWOcmE14ncRUNfnDCElyN3adqUXzh45mYB9C0sTEknctkdD4ICtI 90kTUPHcJ/uksJ+8PqHgThtLcYpQ+9FSa9TTubqN/bBhTo5Dk5fHJlWg1Ffk1LI1a9Mj t2Tw== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=aM8gbQNw2pkxgNERMTvL5YNJ0nVls2s0QAescMiHxbQ=; b=m8ddFXuemShWXDRgrEZulEYhshZTQXshUsiZWtEr26t/Q4WXNEJh9pOMK7XKZmML+A xIUZGcpCHuIcl7qE2kb27TvevVs+8/OJSshKp4XADwyK81obZ8Qkn5oVAgwlOnYr3qjR k2r0d/f/XzYUSidGtK6rmzIlzpDp6m36R+yrGQdilRPxrj/7iZMFUq2okqz5nT5derme LNsYJkBe3ncI5l6q/In5lCYNMpZ/UF9Dy/rQuFJA41zSPk02JbIKf5Wmz0Zb5sOiQsFX k8m/aL+xeCF4HmvMlbzaekViUnocCBdFxWKF9Ur4G2pbHDwxM8Hh3U4tHlBSt2m9kWSL X3vQ== 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 l75si739388oig.59.2020.03.19.01.49.46; Thu, 19 Mar 2020 01:49:58 -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 S1727015AbgCSIr4 (ORCPT + 99 others); Thu, 19 Mar 2020 04:47:56 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:59715 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbgCSIry (ORCPT ); Thu, 19 Mar 2020 04:47:54 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jEqqE-000307-U8; Thu, 19 Mar 2020 09:47:51 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 946381C2298; Thu, 19 Mar 2020 09:47:50 +0100 (CET) Date: Thu, 19 Mar 2020 08:47:50 -0000 From: "tip-bot2 for afzal mohammed" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/timer-cs5535: Request irq with non-NULL dev_id Cc: afzal mohammed , Daniel Lezcano , x86 , LKML In-Reply-To: <20200312064817.19000-1-afzal.mohd.ma@gmail.com> References: <20200312064817.19000-1-afzal.mohd.ma@gmail.com> MIME-Version: 1.0 Message-ID: <158460767029.28353.2138334938469821354.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: 470cf1c28d2f601ea666a96d676c10b09b2321ab Gitweb: https://git.kernel.org/tip/470cf1c28d2f601ea666a96d676c10b09b2321ab Author: afzal mohammed AuthorDate: Thu, 12 Mar 2020 12:18:17 +05:30 Committer: Daniel Lezcano CommitterDate: Thu, 12 Mar 2020 19:23:06 +01:00 clocksource/drivers/timer-cs5535: Request irq with non-NULL dev_id Recently all usages of setup_irq() was replaced by request_irq(). request_irq() does a few sanity checks that were not done in setup_irq(), if they fail irq registration will fail. One of the check is to ensure that non-NULL dev_id is passed in the case of shared irq. Fix it by passing non-NULL dev_id while registering the shared irq. Fixes: cc2550b421aa ("clocksource: Replace setup_irq() by request_irq()") Signed-off-by: afzal mohammed Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200312064817.19000-1-afzal.mohd.ma@gmail.com --- drivers/clocksource/timer-cs5535.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clocksource/timer-cs5535.c b/drivers/clocksource/timer-cs5535.c index 51ea050..d47acfe 100644 --- a/drivers/clocksource/timer-cs5535.c +++ b/drivers/clocksource/timer-cs5535.c @@ -133,6 +133,7 @@ static irqreturn_t mfgpt_tick(int irq, void *dev_id) static int __init cs5535_mfgpt_init(void) { + unsigned long flags = IRQF_NOBALANCING | IRQF_TIMER | IRQF_SHARED; struct cs5535_mfgpt_timer *timer; int ret; uint16_t val; @@ -152,9 +153,7 @@ static int __init cs5535_mfgpt_init(void) } /* And register it with the kernel */ - ret = request_irq(timer_irq, mfgpt_tick, - IRQF_NOBALANCING | IRQF_TIMER | IRQF_SHARED, - DRV_NAME, NULL); + ret = request_irq(timer_irq, mfgpt_tick, flags, DRV_NAME, timer); if (ret) { printk(KERN_ERR DRV_NAME ": Unable to set up the interrupt.\n"); goto err_irq;