Received: by 10.213.65.68 with SMTP id h4csp1723137imn; Thu, 5 Apr 2018 02:39:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/ZvdFvq8Z1QoLuqyUL010aTGe0AQdAkMwHQBVBqzjxEiyvj94cJ9HqsSu0FHDzemGaglz/ X-Received: by 10.99.96.130 with SMTP id u124mr14543842pgb.252.1522921198956; Thu, 05 Apr 2018 02:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522921198; cv=none; d=google.com; s=arc-20160816; b=B0UMhONGiSg6wXk0D+9+DCKxqzUFxrL9gJSp1PZnfq2nL5w0kJyo4VxqAaSUUoRcn5 a39GRxUCpDegoxMrBr9lzXsQ6GpL2tt8/0XYFRqxI69EUNJxuXeBjDWBBV8oX3Gq3Z8P jiipQdgdBGx7sJX4Ih7jBZcEoAU/5b91K/Qih4Tz6RFYA045QAdB1U+XMB6rNJmjldAH 8RvltyhWUpwonhsrYTWn2vsbbl4wpIaky3ZEL2maLkt4sg7048fueGkWklWPX/Ho3KOx Bl421Dl8rm326GpvnNnJsncGvS+RkHggCK3ByjCPLfqvoh6SwisAVdgG1DeTjc4vYSks XDfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=9dJB7fMLLE0s96i9zQXBbeMfbNMn4jQJEuxSK/I8FOE=; b=RP1FAIAfvYFqhIs9Kq3MQTgtlQYLYwDMS0fB/nHEbVmuohCHSTBDHKmSN8wA54Bkb7 +QSa3S+Lx6EOH/VVF5O/ya0zNs5yUIvwyhcHWC7Vp9nZMW1etqSy+kmDf51LBtOSpVk7 MhSCdNYwfcVS/RGbrikaAZe+l90jkrzOCfFkxK72xmYw0KObMy/sbx+Vq37D/gE6pB2p UhcznfcP52reRbE+oOXWuejs+CGE6kxAifOlmlNPs57Yyv0NVNnhn4AStNhyIdvsc3Ic HQZoKD5h7XwKqBUpNRGRsgtUvfANCIIEODJm/g5HeaVqsIP26VZs1aLDcxThkOzTd3fx WBSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KCXTHPYg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1-v6si5887349pli.645.2018.04.05.02.39.45; Thu, 05 Apr 2018 02:39: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KCXTHPYg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751365AbeDEJif (ORCPT + 99 others); Thu, 5 Apr 2018 05:38:35 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:51870 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751195AbeDEJid (ORCPT ); Thu, 5 Apr 2018 05:38:33 -0400 Received: by mail-wm0-f48.google.com with SMTP id u189so4003232wmd.1; Thu, 05 Apr 2018 02:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9dJB7fMLLE0s96i9zQXBbeMfbNMn4jQJEuxSK/I8FOE=; b=KCXTHPYgizKMLANx+7ii7PwRQjhpA0MnNXbxRi2KIBVdLN+X1glpBdtL6QOJfDETDE puV8ZswwtCiM0QRAMyZayU8BNJYdVwd6Sd93AZb6q6liHnX4MDGbJK4Cef7n3K6ylIy/ bBIqPj2/mwME+d1zeSEylsSmN2HvTEVzIbdXapH88b8ovpvmUb+13bIBRvOqhmQ+I77R 1d83ttUjePRIVW5uuTSBggzG0UHMm/zB7pT0XvGzHfNmWkaPLoQTBJWU575VallZfi2N XuuZiYsOEHyn+orDsLsY7XL334Wiypb532IWGzif3qHRFG3Xt0MvGFTLmcxHlm/ua6BT T+QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9dJB7fMLLE0s96i9zQXBbeMfbNMn4jQJEuxSK/I8FOE=; b=ImEyyN//h48Roxwa7dRAEIJRp/mZ0aseOS7qX8hr6A14NJU8MkDIas0vbv4g4K7+lg 190PY2tw/D9+Hk4mdsjTC+9YB6HHcjX6Je8QTS1J2spxQseEHCMj9kxEhar+P7CtRZhV 9lzkf9djoVNhJg3Mr0YxGmYaPFErdTT8rf1Jad0yhj4gZw6H0mNe2sc3eel/toJTH7nm BPZKegig+y/AefRiMexZu4pRpwTyUzGWrLBA7HBEOau4A9Do7ceR9fJPhThPgG/VryRv J9cW1pbZOmYLHh592mWqZJMRUkfEPBDA9qX6XSyA4umdNz3ile/OWA3JFgzN6k4sgZw/ ObLw== X-Gm-Message-State: ALQs6tDHHDU8LthuEQ6EBGPg/YgXXcl5b7kaWUPLNnKmXZYF/HQq6P9X hWCKsvLyj5uNzTZFRFGn5xo151AsFnEkRR/Ijx0= X-Received: by 10.80.139.184 with SMTP id m53mr2262662edm.6.1522921112527; Thu, 05 Apr 2018 02:38:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.134.132 with HTTP; Thu, 5 Apr 2018 02:38:31 -0700 (PDT) In-Reply-To: <1520852307-26659-3-git-send-email-fabien.dessenne@st.com> References: <1520852307-26659-1-git-send-email-fabien.dessenne@st.com> <1520852307-26659-3-git-send-email-fabien.dessenne@st.com> From: Jassi Brar Date: Thu, 5 Apr 2018 15:08:31 +0530 Message-ID: Subject: Re: [PATCH v2 2/2] mailbox: add STMicroelectronics STM32 IPCC driver To: Fabien Dessenne Cc: Rob Herring , Mark Rutland , Maxime Coquelin , Alexandre Torgue , Ludovic Barre , Devicetree List , ", linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, srv_heupstream" , Linux Kernel Mailing List , Benjamin Gaignard , Loic Pallardy , Arnaud Pouliquen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 12, 2018 at 4:28 PM, Fabien Dessenne wrote: .... > + > + /* irq */ > + for (i = 0; i < IPCC_IRQ_NUM; i++) { > + ipcc->irqs[i] = of_irq_get_byname(dev->of_node, irq_name[i]); > + if (ipcc->irqs[i] < 0) { > + dev_err(dev, "no IRQ specified %s\n", irq_name[i]); > + ret = ipcc->irqs[i]; > + goto err_clk; > + } > + > + ret = devm_request_threaded_irq(dev, ipcc->irqs[i], NULL, > + irq_thread[i], IRQF_ONESHOT, > + dev_name(dev), ipcc); > In your interrupt handlers you don't do anything that could block. Threads only adds some delay to your message handling. So maybe use devm_request_irq() ? ....... > + > +static struct platform_driver stm32_ipcc_driver = { > + .driver = { > + .name = "stm32-ipcc", > + .owner = THIS_MODULE, > No need of owner here these days. And also maybe use readl/writel, instead of _relaxed. Cheers!