From patchwork Wed Feb 15 14:26:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9574205 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 4D77060209 for ; Wed, 15 Feb 2017 14:27:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 419F427D16 for ; Wed, 15 Feb 2017 14:27:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3648127E5A; Wed, 15 Feb 2017 14:27: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.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 AFEAD27D16 for ; Wed, 15 Feb 2017 14:27:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751383AbdBOO1R (ORCPT ); Wed, 15 Feb 2017 09:27:17 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:34262 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751432AbdBOO1O (ORCPT ); Wed, 15 Feb 2017 09:27:14 -0500 Received: by mail-wm0-f54.google.com with SMTP id 196so20963137wmm.1 for ; Wed, 15 Feb 2017 06:27:08 -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=XAG8Hn5r9M7inI9wK0U48R/lRue9BoqnGwAD6CGunFY=; b=uv8SeKQK0lf9Yiws9b5EdUmApFjx5tHhZxBWyssMzuqJRpSz7CPojLfsRpmwTtxtfZ +feEsFHttMjpDvr3XBkBXEQqXJ+pNnI07UCN8P1zA8wQTYa2yqd9bEIqHAH28krRW7oF VJTxtB6QnjsEKPjv8PzNACSVRYmmkVDbb9XlmkNyYrlylJuwmEdr16xad9aSoNeJrgHV N+sw4aww9hPjZNRvJSxslcZZ4P2HeS+PrTo8HRX+KNPkrxJSNnGmtD3Oe1/LZNCkH3hU KLXY/1IWoJAfwWY9eRRE66G3aVIyQ3oZ0JEOfJl2ewqK0Eteny3sLOXKkRdu7AhhxK9r b+zw== 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=XAG8Hn5r9M7inI9wK0U48R/lRue9BoqnGwAD6CGunFY=; b=CWQ9ewWipVBVuuuGRrqrfRZTUZkATilyjnRgtVPZSLCWJNca923DK83WP9DU/MLQMC Cw5UZpwW45OHCtua1IZ7lsRR9Dg4LMj/qKsaNlFZdHed+rC3M/BCay2HqNqFwcwqwQf8 Dqy7fXWdXmY1dPLGGUQqtR0SiZX0bRgx2KMvmB88M8IXd8NCdN8KPobMXq/kmr4ZqdIT o57DxlYbwYQ2YXE/PimcYn1KooC0aqb6ydpUUCu0zkMwPzNkGasrV2a+JTLkHQyN5YW3 g+BlWvD6z7SRehDUW67DIyWEdozWskPCeAwYM0Vq6kvvYwquyIkuuii8w3PqF1iuwy/Y wXuQ== X-Gm-Message-State: AMke39m1WnIWV+nQuZITKj5gMuQc/EWGOr2+68JMYqTdaRFV3Hur0P5soKaNy05VzLXdyXxO X-Received: by 10.28.64.132 with SMTP id n126mr8627149wma.107.1487168822906; Wed, 15 Feb 2017 06:27:02 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id z90sm5127419wrc.24.2017.02.15.06.27.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Feb 2017 06:27:02 -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, linux-usb@vger.kernel.org, Alexandre Bailon Subject: [PATCH v6 1/4] usb: musb: Use shared irq Date: Wed, 15 Feb 2017 15:26:54 +0100 Message-Id: <20170215142657.31571-2-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170215142657.31571-1-abailon@baylibre.com> References: <20170215142657.31571-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 892088f..c476265 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2331,7 +2331,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;