From patchwork Wed Mar 29 16:24:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9651931 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 68EE7601D7 for ; Wed, 29 Mar 2017 16:25:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AC4D28482 for ; Wed, 29 Mar 2017 16:25:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F9C4284F2; Wed, 29 Mar 2017 16:25:37 +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 E9CDF28482 for ; Wed, 29 Mar 2017 16:25:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752591AbdC2QZe (ORCPT ); Wed, 29 Mar 2017 12:25:34 -0400 Received: from mail-wr0-f179.google.com ([209.85.128.179]:35448 "EHLO mail-wr0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752582AbdC2QZd (ORCPT ); Wed, 29 Mar 2017 12:25:33 -0400 Received: by mail-wr0-f179.google.com with SMTP id k6so16260170wre.2 for ; Wed, 29 Mar 2017 09:25:27 -0700 (PDT) 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=1xGxVLPc0VyGoPQTkwnEc98S/dBhED4a0hK4RZnEdWY=; b=kkS2ulesfR5XjFhZPPnkCHXJ6/CNGHMLVsOrJffwpQawIdbC7zsxhez6aAkWs70P81 WiFaar1KJY1MJyftpaDPbJhdYOROudRhNtsL2zPYdrnL0iyO1RrICDKpNSXxygOdkK2C dYBYeh1ctc0J7MmgKd3Wr4sK4aNFnf+yE3XPLSWSyqeXNR7gXpBnHAWctj4DWC6duVoj VhyR2YD8+3MlEzWsXTAtcVK+F7PZ4SMoSO8KCsxj95C3TcMkU7qWUFx3wfZRZkKiX1ap yMVzi5JM5OOriI/0+Bxfh9I4VequLKZf4PLhjfiPcLNvQfQikNVGamBRw+dDu9M+WGUm BHuQ== 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=1xGxVLPc0VyGoPQTkwnEc98S/dBhED4a0hK4RZnEdWY=; b=VRUNumEZLJ7y5CdYTmlQ1otILx3DQlMKoEyEMnSLAW90ArK7qE/M6tbwG4ppIVkyQ1 TzykmVfBycGqo19qUwpIxO0Y4fua1S6J++s4Y17EvFJfseD9fd/rxlVrpa5Etqf2DDDA /1pO81AMQB2W8RdN45G5cRGT9g/TPcVRz1+wb9k0WmBDXyfZH/cNfjvS+wYPbXEjuf91 leTxVF2xAc1F0hPs4cvd0X6HiXK8QcOBs/wFmeYxNZ28QpPPWah8Wc2jTiU9VDYPaQNH N/wAb9VXZkj51F4Qbhg6bom0xqR1mW80Y8MB36IF0XiDR9ITSBPbH4uMe8xnRq2sOOXZ 1Ucg== X-Gm-Message-State: AFeK/H3qLBhusdrN+w07Spflk7uVTw/VF3nOgVNE2cy+nlG19OfImtMKBoP454q9cldmKKky X-Received: by 10.223.131.3 with SMTP id 3mr1348316wrd.31.1490804726387; Wed, 29 Mar 2017 09:25:26 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id h3sm10041926wrb.6.2017.03.29.09.25.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Mar 2017 09:25:25 -0700 (PDT) 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, grygorii.strashko@ti.com, Alexandre Bailon Subject: [PATCH v7 1/3] usb: musb: Use shared irq Date: Wed, 29 Mar 2017 18:24:30 +0200 Message-Id: <20170329162432.27299-2-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170329162432.27299-1-abailon@baylibre.com> References: <20170329162432.27299-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 0c3664a..870da18 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2332,7 +2332,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;