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: 91666 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp518492qgi; Tue, 17 Jan 2017 06:35:51 -0800 (PST) X-Received: by 10.84.179.194 with SMTP id b60mr59707264plc.147.1484663751069; Tue, 17 Jan 2017 06:35:51 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si19063841pld.335.2017.01.17.06.35.50; Tue, 17 Jan 2017 06:35:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751228AbdAQOfl (ORCPT + 4 others); 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 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(-) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;