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: 9521195 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 9F309601C3 for ; Tue, 17 Jan 2017 14:35:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9615E27F80 for ; Tue, 17 Jan 2017 14:35:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AB4A2857F; Tue, 17 Jan 2017 14:35:44 +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 2964A27F80 for ; Tue, 17 Jan 2017 14:35:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751228AbdAQOfl (ORCPT ); Tue, 17 Jan 2017 09:35:41 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:36899 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751386AbdAQOfi (ORCPT ); Tue, 17 Jan 2017 09:35:38 -0500 Received: by mail-wm0-f42.google.com with SMTP id c206so225715500wme.0 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=rRsDGp3QG9L+xvGU16NJ3Gg7aXR+RSdKxqlb/hxrUmr4F2mMGtCKzt/LtAuuszV1YU S3LxkznBFKVnA6OLTb/FRRuGpcJcrRMxPzi+8vSkx/2cHyIflJdIaCXw2ceFcEX4obql JukLSJOk67AH+6h/TwgzdmAMlHPR476V7YkgZTvuocMMrKrr5NI3/u5r4O51MMZZrP2N wOuX9gDnYV1/RvcUVGGkFn47y9S+uaIJMZYWl2bdayYxjr7H0xVJUduQx5l1c3UHVQMa r6eLDCvDOS1xszSKFHPIePWmCde8Lh14AQeLzMccb+7ArGukfVp1DnhLltHUz6T6Its9 vzIg== X-Gm-Message-State: AIkVDXKYjkAWnssZXVoG1s/PbU6GZ+sm/1pHIpzHZ+01b6bWycP+fHK3dkTw+laroUqC62FU 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: 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;