From patchwork Mon Jan 9 16:39:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9505487 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 EDF2F60710 for ; Mon, 9 Jan 2017 16:39:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6A9B2847F for ; Mon, 9 Jan 2017 16:39:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAFBA28494; Mon, 9 Jan 2017 16:39:20 +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 6FE542847F for ; Mon, 9 Jan 2017 16:39:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762692AbdAIQjS (ORCPT ); Mon, 9 Jan 2017 11:39:18 -0500 Received: from mail-wj0-f171.google.com ([209.85.210.171]:36639 "EHLO mail-wj0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758232AbdAIQjK (ORCPT ); Mon, 9 Jan 2017 11:39:10 -0500 Received: by mail-wj0-f171.google.com with SMTP id ew7so54535830wjc.3 for ; Mon, 09 Jan 2017 08:39:09 -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=m72rcaoATwhwhzyIqK9mhL09r0HA7GJVHNyQJyApFrM=; b=gNjtyWsYZfa1xRY0osZcC1/DyO3EcttzFdQVl9ccb6hA2GbAHmBVZdzyuZOBa687ZY V4OsUi27+NRyxiTe6JN+hQS1HZ5/7Lxx0284ne3Wb3OTCikQazwLqljWiuMHwnUmlncR oaFXK44Rd4ZgI0zDxmB1fxTr7OAeux0dC9dAap3o9tYWmFPLutrbHNnJmfpHUlAY0y/8 l5yRXxbd2NoNoQFVI+FyjTcHp6iM1o5Sfuve9UDiKLTPZKrtuTTPqAeiJMyWyX46Yl8c HfhH+9dlAlSOOkyXltG8MjJU35AgDfsZggO2xmJpi48CL4IOR+H3bCCOk0ryxCKgd2NA 4bjA== 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=m72rcaoATwhwhzyIqK9mhL09r0HA7GJVHNyQJyApFrM=; b=ms9P4pinoc4gFZUTCQc6Xn+H8/1flfEf3f1wUrhzyEarsZV7uMyuubdZ3Y9vSpA6P/ Nj0H5dUMO9XQ4ItH1C2BhicuPsrvxoyPRMpi13pjTNDefZkwASFtu0v6DsAxjFklkzu6 3xhlBeMcddAnCD44fTy+CLIZE9wv63iL27U+sMRVgUWA3ka6oaayVtC/+sakvx1ZuOXZ f6PNOtrcQmdrJIlGHruwtU1K7T0tBAEiYlVSZdy3XresO0djXhzZBMz1xfkiib4Sr5Ds DCg1WMQz5oEq1mj8j2kJLL3XL2QMb3pbDw24Dq26/WnsrH2i7FWnRtaVcyLtzhLAtZ+d LbFg== X-Gm-Message-State: AIkVDXLoManYUMAz3vowmJmJA5AhbIBDwCqXsb8tUAeX5wCdQTXdBBg4IZCrv1BFeGrdbbxQ X-Received: by 10.194.202.167 with SMTP id kj7mr2372992wjc.191.1483979948581; Mon, 09 Jan 2017 08:39:08 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id n5sm19733391wmf.0.2017.01.09.08.39.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Jan 2017 08:39:08 -0800 (PST) From: Alexandre Bailon To: b-liu@ti.com Cc: vinod.koul@intel.com, dmaengine@vger.kernel.org, linux-usb@vger.kernel.org, nsekhar@ti.com, khilman@baylibre.com, ptitiano@baylibre.com, tony@atomide.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, david@lechnology.com, Alexandre Bailon Subject: [PATCH 3/4] usb: musb: Use shared irq Date: Mon, 9 Jan 2017 17:39:01 +0100 Message-Id: <20170109163902.5268-4-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170109163902.5268-1-abailon@baylibre.com> References: <20170109163902.5268-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 core and cppi41 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;