From patchwork Sat May 8 17:03:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saurav Girepunje X-Patchwork-Id: 12246187 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87E1BC433B4 for ; Sat, 8 May 2021 17:04:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 65DD561221 for ; Sat, 8 May 2021 17:04:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229675AbhEHRFC (ORCPT ); Sat, 8 May 2021 13:05:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbhEHRFC (ORCPT ); Sat, 8 May 2021 13:05:02 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6C13C06175F; Sat, 8 May 2021 10:04:00 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id j12so3713845pgh.7; Sat, 08 May 2021 10:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=blMp1g0RFxSJmjV33e/VxP44v2nWe4MjcBjFmy9TpQM=; b=dM6Z7TwMEQdfjeP3eCuzzOhLc5ZWi4A0eSN4segc5kiuuGi93kzDQODUEuCaoK6i65 /k0kxum5BpgTPnc37jEBsyfQf22bpC7ycCPXHBKA43XFjYvlkjaA6YzL/dvT2ehhltk7 WTI5FXsAAT6FNQytqlzstgTSAC/9DG7RoFkmTTmIMjw2O+01/uh23mBNmQ3w6KRcooQS 1aIkPv0WIKk+1Bf5HJbvZrzAlFKkdCLPVJvbVMzQmJqjQ2F7PCdNiA2caLEW8xuRgjm2 2XJOR32829TbHdSymd5OOhNzgXMz+JgG/uOxS189MeFOmdWYDnKOiHA03u/kwLnrtXA6 iywg== 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:mime-version:content-transfer-encoding; bh=blMp1g0RFxSJmjV33e/VxP44v2nWe4MjcBjFmy9TpQM=; b=iQEF0YmhXb5Zomrt2pvSxXCE6jGtVym7qk/MBbxUQFa+tuKjq1k1oMDiSISqJJ1Pdk REruJxej5cTLY4ZC9k8wZU/Mdwdb9rU/8tiTDUqqy6VFwDHEFgpyLTu0ZQjeEm5ynjsI x7mY+IjVGoGlWwrE4ZC1xx+jZqWC5JfA/qP/kwfc6aHfh5L7+T2AnxpPbo7SHter1Q8F s+egKujwdn0ILIGFUjEMJ8OyCrMRPi/xLhonoZdL+weBKbOpuwo57tv9k02m/me5swtY fQZbKt5qCgiHnQSeRZQ3J+4QosbV8kwH4+/DMQCP7qUhcLv2mgB7tqvrp3kzuyl4bMRW BxRQ== X-Gm-Message-State: AOAM530rPXly3AFf0+TcUTP2f0q0m8E8n0wF8Q8UCHlkFRpL+Zkrwwe8 NSxwKRqKF+4NuqwMizMskr8= X-Google-Smtp-Source: ABdhPJwXE2lFG6IUuXAo50GvlRQtLkSQs9scvovlpo2i3GL5VCkXNB3jZGjN/oMIGMIDS8EI90mmgQ== X-Received: by 2002:a65:4286:: with SMTP id j6mr16569700pgp.261.1620493440050; Sat, 08 May 2021 10:04:00 -0700 (PDT) Received: from localhost.localdomain ([2001:4490:4409:357e:ddc0:965d:2b13:8892]) by smtp.gmail.com with ESMTPSA id g190sm1674468pfb.60.2021.05.08.10.03.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 May 2021 10:03:59 -0700 (PDT) From: Saurav Girepunje To: b-liu@ti.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Saurav Girepunje Subject: [PATCH 1/2] usb: musb: Remove unused local variable dma, urb, offset Date: Sat, 8 May 2021 22:33:16 +0530 Message-Id: <20210508170317.24403-2-saurav.girepunje@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210508170317.24403-1-saurav.girepunje@gmail.com> References: <20210508170317.24403-1-saurav.girepunje@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Remove unused function argument struct dma_controller *dma, struct urb *urb and u32 offset from musb_tx_dma_set_mode_mentor. Signed-off-by: Saurav Girepunje --- drivers/usb/musb/musb_host.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 8b7d22a0c0fb..14d9b366e605 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -563,10 +563,9 @@ musb_rx_reinit(struct musb *musb, struct musb_qh *qh, u8 epnum) ep->rx_reinit = 0; } -static void musb_tx_dma_set_mode_mentor(struct dma_controller *dma, - struct musb_hw_ep *hw_ep, struct musb_qh *qh, - struct urb *urb, u32 offset, - u32 *length, u8 *mode) +static void musb_tx_dma_set_mode_mentor(struct musb_hw_ep *hw_ep, + struct musb_qh *qh, + u32 *length, u8 *mode) { struct dma_channel *channel = hw_ep->tx_channel; void __iomem *epio = hw_ep->regs; @@ -630,7 +629,7 @@ static bool musb_tx_dma_program(struct dma_controller *dma, u8 mode; if (musb_dma_inventra(hw_ep->musb) || musb_dma_ux500(hw_ep->musb)) - musb_tx_dma_set_mode_mentor(dma, hw_ep, qh, urb, offset, + musb_tx_dma_set_mode_mentor(hw_ep, qh, &length, &mode); else if (is_cppi_enabled(hw_ep->musb) || tusb_dma_omap(hw_ep->musb)) musb_tx_dma_set_mode_cppi_tusb(dma, hw_ep, qh, urb, offset, From patchwork Sat May 8 17:03:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saurav Girepunje X-Patchwork-Id: 12246189 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C7DBC433ED for ; Sat, 8 May 2021 17:04:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1C74661090 for ; Sat, 8 May 2021 17:04:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229709AbhEHRFH (ORCPT ); Sat, 8 May 2021 13:05:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbhEHRFH (ORCPT ); Sat, 8 May 2021 13:05:07 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EA01C061760; Sat, 8 May 2021 10:04:04 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id m190so9827817pga.2; Sat, 08 May 2021 10:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JBRMa8mKQ62OMgm3Mexb2/wyLqKwT/ApM4zOBZB39Yc=; b=dNlNvdUl7OspSLy79vEclZ4kN6t0at9zZHsCGnZ1Yh5ucsrh178wTSv1Ur8UbLisL+ 126nasA8yTX3B38f4IntWfJPwoKGW2y5bTiCDXGysOpZmthAyD1cjLz1uSwE/LHxpgLc /8BOgrT3ZFV1/TyuD4rLmUdVYUf+9x92YrgfD+yYlNs5tO3mMJSyEqv9osf+I6CSSSbf k+T73ckW2SuX2Oz9LdI1SwqXHXww+MvBtLgd7Lb5MIsVKOtsOQv6zrwzuja1mfzy1oFC 0cwmPFtzvCRfPfPPgtmw6E3Swp9CVzQdMI5VtnZ/1Unbl5p+IOUmQQMyZhbg32Y17Hv+ B3Ww== 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:mime-version:content-transfer-encoding; bh=JBRMa8mKQ62OMgm3Mexb2/wyLqKwT/ApM4zOBZB39Yc=; b=mlZuvGkAwx5kp9gIgcY7VQ/5U5fcsyBUvQRhnbfLmBrIMRasuR3RPlEF3aEMRnNmVW Oh/kla7op8qxPLSLiVJPFNs/93Exm/21WBzuDhDM+5goTX9HPYQr1SBNYhyJAyOKcO/u mq6Dy3X9QrdMbP38HGE9/N8L5hi6Sqnr4YJSp5gzz7fnmzgNVbxPnnOc8gVt7LMixdBH pLgLCJwHJCvIkdKJpd5XDVQapSBjO4Om2kyCsMW/zfxWfhgb5jXWTucFlIE1inZ/2sYG q+FWb9YRgOqwwxVUT/eVlvHTxwLFiOLm3XDbCd0DtZxFNbTysVXijgorysSVdscK2C1q fZrQ== X-Gm-Message-State: AOAM531/ZL44Ehd2p3YDTPL35sPvjVmsXc9x4OAW5Ry5WMwfT9DibSzb /Lz3DdpMYUXmg4AHQNjsOdVnXXDtCTFoqg== X-Google-Smtp-Source: ABdhPJyIJa0FLN63hYJAyi/EaMc92EspsxKhKA18IERo1UmSo/2Gx29v1rFx/gLtIY2oPWJRXOuZGw== X-Received: by 2002:a63:2542:: with SMTP id l63mr17050916pgl.128.1620493444127; Sat, 08 May 2021 10:04:04 -0700 (PDT) Received: from localhost.localdomain ([2001:4490:4409:357e:ddc0:965d:2b13:8892]) by smtp.gmail.com with ESMTPSA id g190sm1674468pfb.60.2021.05.08.10.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 May 2021 10:04:03 -0700 (PDT) From: Saurav Girepunje To: b-liu@ti.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Saurav Girepunje Subject: [PATCH 2/2] usb: musb: Remove unused function argument dma, qh, offset, length Date: Sat, 8 May 2021 22:33:17 +0530 Message-Id: <20210508170317.24403-3-saurav.girepunje@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210508170317.24403-1-saurav.girepunje@gmail.com> References: <20210508170317.24403-1-saurav.girepunje@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Remove unused function argument dma, qh, offset, length from musb_tx_dma_set_mode_cppi_tusb() in musb_host.c Signed-off-by: Saurav Girepunje --- drivers/usb/musb/musb_host.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 14d9b366e605..a4c185747358 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -601,12 +601,8 @@ static void musb_tx_dma_set_mode_mentor(struct musb_hw_ep *hw_ep, musb_writew(epio, MUSB_TXCSR, csr); } -static void musb_tx_dma_set_mode_cppi_tusb(struct dma_controller *dma, - struct musb_hw_ep *hw_ep, - struct musb_qh *qh, +static void musb_tx_dma_set_mode_cppi_tusb(struct musb_hw_ep *hw_ep, struct urb *urb, - u32 offset, - u32 *length, u8 *mode) { struct dma_channel *channel = hw_ep->tx_channel; @@ -632,8 +628,7 @@ static bool musb_tx_dma_program(struct dma_controller *dma, musb_tx_dma_set_mode_mentor(hw_ep, qh, &length, &mode); else if (is_cppi_enabled(hw_ep->musb) || tusb_dma_omap(hw_ep->musb)) - musb_tx_dma_set_mode_cppi_tusb(dma, hw_ep, qh, urb, offset, - &length, &mode); + musb_tx_dma_set_mode_cppi_tusb(hw_ep, urb, &mode); else return false;