From patchwork Tue Jan 17 14:35:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9521197 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 AFBE1601C3 for ; Tue, 17 Jan 2017 14:35:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A75C928574 for ; Tue, 17 Jan 2017 14:35:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B2E12857F; Tue, 17 Jan 2017 14:35:45 +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 506AA27F80 for ; Tue, 17 Jan 2017 14:35:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751390AbdAQOfl (ORCPT ); Tue, 17 Jan 2017 09:35:41 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:38541 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751228AbdAQOfi (ORCPT ); Tue, 17 Jan 2017 09:35:38 -0500 Received: by mail-wm0-f42.google.com with SMTP id r144so225308943wme.1 for ; Tue, 17 Jan 2017 06:35:37 -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=oQiKcbXF7cLeT+jAZM3NJx575Tr1HKB2nj1euslWBGuMwUnymOBhXBnQmuUaFD1228 nRgBGbNWDcfhYL510lAhzPb26JYrslNaYyQO5csp0aM+iInvyBNa9nFAZPorC5rmq4Fw tByt+G0eZu8afIlx003kWNuCsfRJJgZKVrxltsz0zroyD7gc71iqdAAmNMSYEG52SwYM C8YqUGZoUnzB3Tm8V++owwrD37z4U4TtBRVP4RRad5f0MG7dNoJogIuS+xvo2ZVDU/F5 gRnjAyBualjY92iemrCWXKQbVAJ6Du4Fjs4KrShDWJhcmNkaeDFY+iwVc+Jb5r3nsqGu YMyw== 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=dngm7jtmzHg/coIk/eCnHEKA4iB2gpGnhoOlA3F9u3EGTfzhdbW7OmSPMqK+M21SYl 4lRJEnqCAOeSXdKm1ILz4/ZZ/BrrPLcF8fOjEwXtE8cpbCJ2w1v8pGAdADs72FK8Sukq KCPzZTOZh5tT8/7INxDhKkVcJ+QG/eR7gywgAJ8WJdVUGV9emuA7YTOXOgLKnlEfp1k5 kg4lwhhDY1qry/XPWbaqKhvZf/+3jHXEECZYJlcKGISbPQH08p152a3Bi9IwYVzH7dvE 3job9u6lYZMtqMwyCsGENNjzU1FagnsIAFz6lB6ZUz6LNcJ+29CSxlX1E+qYgrMX8Way E5RQ== X-Gm-Message-State: AIkVDXLsLgk1WP7Qs38HGZouWkAFdtIOImAMIg/DyTpCyZwri63jGWv79qSpIUZPUdFrRG13 X-Received: by 10.223.176.142 with SMTP id i14mr28000775wra.4.1484663736713; Tue, 17 Jan 2017 06:35:36 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id k11sm37394939wmb.18.2017.01.17.06.35.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jan 2017 06:35:36 -0800 (PST) From: Alexandre Bailon To: b-liu@ti.com Cc: vinod.koul@intel.com, dmaengine@vger.kernel.org, nsekhar@ti.com, khilman@baylibre.com, ptitiano@baylibre.com, tony@atomide.com, linux-omap@vger.kernel.org, sergei.shtylyov@cogentembedded.com, Alexandre Bailon Subject: [PATCH v2 2/5] usb: musb: Use shared irq Date: Tue, 17 Jan 2017 15:35:25 +0100 Message-Id: <20170117143528.11404-3-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170117143528.11404-1-abailon@baylibre.com> References: <20170117143528.11404-1-abailon@baylibre.com> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@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;