Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2376091ybh; Mon, 9 Mar 2020 04:45:48 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvJpMygGZXudkFkMjyUCeZp+wd7dal+lqsLxPGprfFSKDeMpHDl8gxGKs2OyBjFluPDcU33 X-Received: by 2002:a9d:175:: with SMTP id 108mr13160948otu.287.1583754348551; Mon, 09 Mar 2020 04:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583754348; cv=none; d=google.com; s=arc-20160816; b=tBlLtbsmNBlP+9C3VgmbUpwxpS44GtJiACxU+sEcxEXY5DdpgUJyPwzaKYGNxr2sbH /nEGWpE7OkF+zI7Nso0ol+gLgC/kDtqqnR+Z/xg4sPIbKO2AdHemPtnCOHFQTnY8am48 z/CfJKlchs/xJ+868F5kNgH/odwluaZazvRIp8t/dQs8KFohK9o4y32oPZAKNPbQwdSb DR6xMaVByaOtWXGKbYcg8i8NMXfh1zDl2CX+qGAltSWbmw0PF+FR8OBH1zH5yyIHWI6b qU9NLN+PCd8KuAHDc/UOAipA8iM89B4/DVcGzPs8mKhltlBONp9u5BPBOj5dcb8unQsy 9Aig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:to:subject:dkim-signature; bh=J61S4igI7dpzhoY2RlAMjIDuMgx/6wd7UQAx9T95wvQ=; b=Xf/aa2xpiSqQaLk2VjqlO7WInefV26/lzaA2wqQf7ftA4cFTJCbQfgCrgoFok4VQZG Ni4GsAMlFIw+O42wvV7r8ROQiW9S2oiRHBKyK4jrmjMzQUlfhCpc+Ni4Nd20Uma5ssYF bY9WLnbg64SVN2xVvh+rJlZSRF4cBeuuTFKZ9uZlrjIMLSD09hsBPNP2DC+ip0TIY8pU ZMKwVEQrO7JiVqKckxZkkTC69Xl2BrDV5J4amsb/rHIrk54roN6j4vku/J4TuHphV/Ym a45RnPfQbtcUroHy288l6/QGyCJLQgNz0YSeKj7auv4jtIkHbjlZ+mnwb4APEL15rWAE fqTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=AqejYmMa; 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 z16si4580941otj.5.2020.03.09.04.45.34; Mon, 09 Mar 2020 04:45:48 -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; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=AqejYmMa; 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 S1726446AbgCILoM (ORCPT + 99 others); Mon, 9 Mar 2020 07:44:12 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54878 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbgCILoM (ORCPT ); Mon, 9 Mar 2020 07:44:12 -0400 Received: by mail-wm1-f66.google.com with SMTP id n8so5468166wmc.4 for ; Mon, 09 Mar 2020 04:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to; bh=J61S4igI7dpzhoY2RlAMjIDuMgx/6wd7UQAx9T95wvQ=; b=AqejYmMaT/JJ/x5Q0Ejsgl5uCwCU824vTZPGVMyyshJxFYfwu6zJAfLiX84TgHoHNh aV+c2SCl43KL7gvNEcH+xQCFVcQb2nkn4RqLnwGi0TjQUReTGYAoJJtE7QUEEqW3eBlP bAkr/JMfS4SiKwSIwZRNR5Meq2Zw45v+WD0yQ+ks1XGnwB/XoJbcnOlMqdFm7IFtPU6W HBgkmDJFNuduW49FIAJmRMCojc1R3bDdqS+9tM5lNgoZ97DaW8M+2SRJATJfTzONg3V6 ch972gtcZ8/JhuYv98WANprH2hN9XgUI2fMo414jiI8jOTTJXDgJt200EWGVUbiJTTe5 ex2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:autocrypt:message-id :date:user-agent:mime-version:in-reply-to; bh=J61S4igI7dpzhoY2RlAMjIDuMgx/6wd7UQAx9T95wvQ=; b=GqOoGhrIf6dB+SjWJK+JZM+XpfofDmauCfJBs43Hh1if450aRh7HPUKJOCKAI8OId4 GmSe3oHf41cTjzbepHs2Dz1oXwFJLcWIrf4JYdN2CTLgGZhYFOrPcPRLd/GkQQcz9mch KGs0k/4gH60lRgz9yD/jcVNjQJb/k2V7AgQYkZKChNqFs02peJyjxBxIC/Tgq49rCoyz c4pDzyubw+Ma+Srgm/4O4+C+9f3lGFufQGEcHc0Ca0DLrZj/R821MlbE6KNJeRTaDw6q VgD5VWGY9M1TVO2H46Cpr5psRPkMyhbNKsTRX0cudKuZEReKRf0rVatGOxHKuaU5stIF iniQ== X-Gm-Message-State: ANhLgQ0eYHeKd+v5HKKDbPZhUTpqFAEfs2VjDYFf7A0X0qI7Jku1PXna StJH4X3KfdUe9fHc1GaGbH/EVj5ej92n6w== X-Received: by 2002:a05:600c:2c06:: with SMTP id q6mr1098609wmg.69.1583754249142; Mon, 09 Mar 2020 04:44:09 -0700 (PDT) Received: from [173.194.76.108] ([149.199.62.131]) by smtp.gmail.com with ESMTPSA id b16sm58127606wrq.14.2020.03.09.04.44.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Mar 2020 04:44:07 -0700 (PDT) Subject: Re: [PATCH v3] microblaze: Replace setup_irq() by request_irq() To: afzal mohammed , linux-kernel@vger.kernel.org References: <20200304005000.5067-1-afzal.mohd.ma@gmail.com> From: Michal Simek Autocrypt: addr=monstr@monstr.eu; keydata= xsFNBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPwnaf1zm/7sqoN3r64cml94q68jfY4lNTwjA/SnaS1DE9XXa XQlkhHgjSLyRjjsMsz+2A4otRLrBbumEUtSMlPfhTi8xUsj9ZfPIUz3fji8vmxZG/Da6jx/c a0UQdFFCL4Ay/EMSoGbQouzhC69OQLWNH3rMQbBvrRbiMJbEZwARAQABzR9NaWNoYWwgU2lt ZWsgPG1vbnN0ckBtb25zdHIuZXU+wsGBBBMBAgArAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIe AQIXgAIZAQUCWq+GEgUJDuRkWQAKCRA3fH8h/j0fkW9/D/9IBoykgOWah2BakL43PoHAyEKb Wt3QxWZSgQjeV3pBys08uQDxByChT1ZW3wsb30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3FaukbCKIcP3ogCcTHJ3t75m4+pwH50MM1yQdFgqtLxPgrgn3U7fUVS9x4MPyO57JDFPOG4 oa0OZXydlVP7wrnJdi3m8DnljxyInPxbxdKGN5XnMq/r9Y70uRVyeqwp97sKLXd9GsxuaSg7 QJKUaltvN/i7ng1UOT/xsKeVdfXuqDIIElZ+dyEVTweDM011Zv0NN3OWFz6oD+GzyBetuBwD 0Z1MQlmNcq2bhOMzTxuXX2NDzUZs4aqEyZQ= Message-ID: <955f28cf-f0b4-e616-1c95-23d157244fb5@monstr.eu> Date: Mon, 9 Mar 2020 12:43:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200304005000.5067-1-afzal.mohd.ma@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yF8MbjTisWV0VXr2QPXGpvyzOhrkhDnhn" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --yF8MbjTisWV0VXr2QPXGpvyzOhrkhDnhn Content-Type: multipart/mixed; boundary="Nnq5kcNMPenQ7UNPLELRuIDCvo2c97uLF"; protected-headers="v1" From: Michal Simek To: afzal mohammed , linux-kernel@vger.kernel.org Message-ID: <955f28cf-f0b4-e616-1c95-23d157244fb5@monstr.eu> Subject: Re: [PATCH v3] microblaze: Replace setup_irq() by request_irq() References: <20200304005000.5067-1-afzal.mohd.ma@gmail.com> In-Reply-To: <20200304005000.5067-1-afzal.mohd.ma@gmail.com> --Nnq5kcNMPenQ7UNPLELRuIDCvo2c97uLF Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 04. 03. 20 1:49, afzal mohammed wrote: > request_irq() is preferred over setup_irq(). Invocations of setup_irq()= > occur after memory allocators are ready. >=20 > Per tglx[1], setup_irq() existed in olden days when allocators were not= > ready by the time early interrupts were initialized. >=20 > Hence replace setup_irq() by request_irq(). >=20 > [1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos >=20 > Signed-off-by: afzal mohammed > --- > Hi microblaze maintainers, >=20 > if okay w/ this change, please consider taking it thr' your tree, else = please > let me know. >=20 > Regards > afzal >=20 > Link to v2 & v1, > [v2] https://lkml.kernel.org/r/cover.1582471508.git.afzal.mohd.ma@gmail= =2Ecom > [v1] https://lkml.kernel.org/r/cover.1581478323.git.afzal.mohd.ma@gmail= =2Ecom >=20 > v3: > * Split out from tree wide series, as Thomas suggested to get it thr' > respective maintainers > * Modify pr_err displayed in case of error > * Re-arrange code & choose pr_err args as required to improve readabil= ity > * Remove irrelevant parts from commit message & improve > =20 > v2: > * Replace pr_err("request_irq() on %s failed" by > pr_err("%s: request_irq() failed" > * Commit message massage >=20 > arch/microblaze/kernel/timer.c | 10 ++-------- > 1 file changed, 2 insertions(+), 8 deletions(-) >=20 > diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/ti= mer.c > index a6683484b3a1..f8832cf49384 100644 > --- a/arch/microblaze/kernel/timer.c > +++ b/arch/microblaze/kernel/timer.c > @@ -161,13 +161,6 @@ static irqreturn_t timer_interrupt(int irq, void *= dev_id) > return IRQ_HANDLED; > } > =20 > -static struct irqaction timer_irqaction =3D { > - .handler =3D timer_interrupt, > - .flags =3D IRQF_TIMER, > - .name =3D "timer", > - .dev_id =3D &clockevent_xilinx_timer, > -}; > - > static __init int xilinx_clockevent_init(void) > { > clockevent_xilinx_timer.mult =3D > @@ -309,7 +302,8 @@ static int __init xilinx_timer_init(struct device_n= ode *timer) > =20 > freq_div_hz =3D timer_clock_freq / HZ; > =20 > - ret =3D setup_irq(irq, &timer_irqaction); > + ret =3D request_irq(irq, timer_interrupt, IRQF_TIMER, "timer", > + &clockevent_xilinx_timer); > if (ret) { > pr_err("Failed to setup IRQ"); > return ret; >=20 Applied. Thanks, Michal --=20 Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs --Nnq5kcNMPenQ7UNPLELRuIDCvo2c97uLF-- --yF8MbjTisWV0VXr2QPXGpvyzOhrkhDnhn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQbPNTMvXmYlBPRwx7KSWXLKUoMIQUCXmYr/wAKCRDKSWXLKUoM IdUOAJ9Ig3uKifVWRRJ+g9t15rFkDQe8ngCfRvh1t2m5Zmmeo9KRpiuH4Urnjhk= =M1dx -----END PGP SIGNATURE----- --yF8MbjTisWV0VXr2QPXGpvyzOhrkhDnhn--