From patchwork Thu Jan 19 14:08:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9525923 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 0A28F6020B for ; Thu, 19 Jan 2017 14:09:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE014283BA for ; Thu, 19 Jan 2017 14:08:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E14E728501; Thu, 19 Jan 2017 14:08:59 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 86426283BA for ; Thu, 19 Jan 2017 14:08:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752889AbdASOI4 (ORCPT ); Thu, 19 Jan 2017 09:08:56 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:38453 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752811AbdASOIo (ORCPT ); Thu, 19 Jan 2017 09:08:44 -0500 Received: by mail-wm0-f41.google.com with SMTP id r144so78873668wme.1 for ; Thu, 19 Jan 2017 06:08:43 -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=LAZvhxngVQ1k27PqM0eZgULL5bcm+rh9bJgGksc0LmjaZ5KOZT15YvmR1Sp6+aTDn7 OyqBTSIVGNlgtCwdyLNw1dmeqtokkSKD/uXv5IGN5VgbD1MdufZUcBxgF93kU6/6AlY+ 41Ilj6AqrML39dPaN4E/NHUG7NizNknnWEME39a9xX+xyGmuMgM4JcuXpcZ9bDAzHvRU IbQb4Pz342VPX5+g/Q6bFIuXm8fHst3QGjM5vBey78GKBfqgjtUoDn1DECiwGLLxP4vw 2MyGsrdH4k304jc+nonny6SGL/rnFeEE6p8QY/dagHDnVsjGH148vXu7GiabC0k/+vW9 mqzg== 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=K7fUlJe2/0GZ4+uS/HCF98LyNCvCr9mwOy1QO7+FKGUHBfH3phTpAUzVK131Zm149r lb+1guzm39tnzHipp7Wr+mcutIS2zQVFlWMIFTeOyEQdjIcq1v5I2vsV815p/5ko3GSu xCoyLho04lTCw038iHwTwlEYrZUkkV4dIvljl840Y+Ysr00JKndKsiWA0wCQmT4rwO9b Y9O7RSZXewUo8bohck6sY3M3MNR5GGQFgEQ5jNuhB80VjVSfFIGm8Fy5tcyRR60CTpzr 2hfMA3KNhodJxsWJnQX2p0ixVNeomIkMS6I2Yd0NveQ5xJFMafDAnnOBOzidrp/JAF2c R3Dg== X-Gm-Message-State: AIkVDXL0fl3ex23MO5Y/0ru+AU+33wYDq9RfBGesbRAZkD3bC+5w20UFltySBKH2Eu68PrBE X-Received: by 10.223.169.140 with SMTP id b12mr7756061wrd.138.1484834922606; Thu, 19 Jan 2017 06:08:42 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id d64sm53546626wmh.3.2017.01.19.06.08.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 06:08:42 -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, grygorii.strashko@ti.com, linux-usb@vger.kernel.org, Alexandre Bailon Subject: [PATCH v3 2/5] usb: musb: Use shared irq Date: Thu, 19 Jan 2017 15:08:32 +0100 Message-Id: <20170119140835.18981-3-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170119140835.18981-1-abailon@baylibre.com> References: <20170119140835.18981-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;