From patchwork Wed Jan 25 10:33:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9536737 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 371B46046A for ; Wed, 25 Jan 2017 10:33:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26F1F26861 for ; Wed, 25 Jan 2017 10:33:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A0A12787C; Wed, 25 Jan 2017 10:33:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A61C26861 for ; Wed, 25 Jan 2017 10:33:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751845AbdAYKd3 (ORCPT ); Wed, 25 Jan 2017 05:33:29 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38115 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751841AbdAYKd2 (ORCPT ); Wed, 25 Jan 2017 05:33:28 -0500 Received: by mail-wm0-f45.google.com with SMTP id r144so22797747wme.1 for ; Wed, 25 Jan 2017 02:33:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=v7jMPRN+ekKdwRSf8to4qcDPnXhz1D2f4+8UL6k9Hs8=; b=fK74e+ovP1s48n3uzakpqolq21kfAP4cWArQQuwLER30u0JX5qxOajT2d+R+kpGNrd 1fjtdRcnU3HoQsrpahCxZIEKUI63yK2+np+prinJW/OOViR4HsKtwWTdDwluoOq2ini+ qCcWllR8tqzjXnrE3vGYjktNEz5sR7WnqJB0kYvn1PxOCumeyGjw5rSdGzHUD+Z5rTIy DG65fqwjcl97znxDAqGwQ7Vqo66+SWZY/ZgvL/h51hM9udjB4csv+1fws5NmhSaOY8FJ sc81W8r6cwKlpfzebAv2U738f2azILeyTUEito0s5WnXsRVRPB5dSf5cncd/qrBaktY/ /KoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=v7jMPRN+ekKdwRSf8to4qcDPnXhz1D2f4+8UL6k9Hs8=; b=mS/d21C5g84JaSPqxN+dl3uSczc1AfPr1aooaU0zVyJwhFiOjnLewbotZeRGjH5//x mzJxwdfRqmdaNmAa7hcpPYt1STBiIvL0ONl2Sv2i7C4N6JeimE2CiSlF5iofzR33zslg oTPf5WYeVTPSetXBxXvNn10xvGDlIwCXs3ILYipFmaoj/+maSs1bJmwVe193TzBVJ23Q dlXx6pore2TQx9e9VRqytOKGLrsY3gVbWvjr5Bz97f0vj3lgVg3ThdGk6YmeP/LnkSTe ItpVw9UsMmWnYqZOqf6l5Sy5EdMQ5JNUlNpx4xGlTokjkeafImkAtPhx7ZvJ5E9o7Ghb PPFQ== X-Gm-Message-State: AIkVDXLO629ovaubOOjx9gTBZFG2Q+NLIBvl2xDma9rcxtO09rp5H2Et/lRkzYlSU4LBoiNe X-Received: by 10.223.169.85 with SMTP id u79mr32879411wrc.169.1485340406527; Wed, 25 Jan 2017 02:33:26 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id z134sm30599521wmc.20.2017.01.25.02.33.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jan 2017 02:33:26 -0800 (PST) From: Alexandre Bailon To: b-liu@ti.com Cc: nsekhar@ti.com, khilman@baylibre.com, ptitiano@baylibre.com, tony@atomide.com, linux-omap@vger.kernel.org, sergei.shtylyov@cogentembedded.com, linux-usb@vger.kernel.org, Alexandre Bailon Subject: [PATCH v5 2/5] usb: musb: Use shared irq Date: Wed, 25 Jan 2017 11:33:16 +0100 Message-Id: <20170125103319.26021-3-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170125103319.26021-1-abailon@baylibre.com> References: <20170125103319.26021-1-abailon@baylibre.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In the DA8xx, USB and CPPI 4.1 are sharing the same interrupt line. Update the driver to request a shared irq. Signed-off-by: Alexandre Bailon --- drivers/usb/musb/musb_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index fca288bb..cf40adf 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2329,7 +2329,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) setup_timer(&musb->otg_timer, musb_otg_timer_func, (unsigned long) musb); /* attach to the IRQ */ - if (request_irq(nIrq, musb->isr, 0, dev_name(dev), musb)) { + if (request_irq(nIrq, musb->isr, IRQF_SHARED, dev_name(dev), musb)) { dev_err(dev, "request_irq %d failed!\n", nIrq); status = -ENODEV; goto fail3;