Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16619874ybl; Wed, 1 Jan 2020 09:24:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyIsLBmcLdWsEGdC0kfQCe4kfMeofYH5RWc04VxjJvg41vawU4NmQauwUYgrQDvG4gJRD6v X-Received: by 2002:a9d:6a41:: with SMTP id h1mr53339622otn.279.1577899491781; Wed, 01 Jan 2020 09:24:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577899491; cv=none; d=google.com; s=arc-20160816; b=vDCrG/3OA3M+wX8pLwfPGMDaoOEY2mt+8uRzi6mNqQtmat+fwAXpsCaassQau7PHOE R/IepNbwf1YVhgvEsLZyJiJC4Pzig1qmqmTsUIUQpaqUoX/goQQzi/J3TO8IptNhiX49 ESkMSg5d/4ISOhHN9bMqHiuXDuo6MnCn4mTHpmdUochew/rbGsvpXDx7o01hnm+Pg3l9 o9mMuM/TU1eZoEH8NpXMgjXtkd5yZgzTMYa51p63cqSh6EAQXEtIWTttZmLX4NhMhrjL EwTFOt09V0D41YsVe7ozevxNoylC/4mXi5hf/buI7DASZ9VEzx1F2dcgpggSmbMT9aAR ixuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from; bh=nc9i8/9Z8ygQOtjTg/7btWb7a2DStefl7OrMajw/q+g=; b=OCQ80rhcRcRtKgu0QsuXncYYddWFO3fiKPp05WACqzWyX1KdY+pz6n71GnmCkJUlBE +gQsKh9g5fuVhpW8tNaYNPN3ftQ6M8eGKIHx/BvtKsFWs3UpwhJcwe6LeUm63ayhAiap fdlbC4PBpHITjKTXbB0OtSwXuthYYYL7R++Ua91pgpM0kbt3zdE3vIgMYLfCS7jfQRok 9X+klZL1qo5Fzwalrf5sr38O8tVk6Lk/ouL2vdR3VosEeEfh07O5slNKUaXlGVK294GI RvZ1zR0Zf8Lt//clzuvwNqHk+c4gBKZiR02tFIgKl9gHwo5RC4P8TkQUyh71Lx3hzLyz Z59Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g26si27468359otk.324.2020.01.01.09.24.18; Wed, 01 Jan 2020 09:24:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727290AbgAARWp (ORCPT + 99 others); Wed, 1 Jan 2020 12:22:45 -0500 Received: from lnfm1.sai.msu.ru ([93.180.26.255]:35309 "EHLO lnfm1.sai.msu.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727215AbgAARWo (ORCPT ); Wed, 1 Jan 2020 12:22:44 -0500 X-Greylist: delayed 3350 seconds by postgrey-1.27 at vger.kernel.org; Wed, 01 Jan 2020 12:22:39 EST Received: from dragon.sai.msu.ru (dragon.sai.msu.ru [93.180.26.172]) by lnfm1.sai.msu.ru (8.14.1/8.12.8) with ESMTP id 001GQJAN001787; Wed, 1 Jan 2020 19:26:24 +0300 Received: from oak.local (unknown [188.123.231.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by dragon.sai.msu.ru (Postfix) with ESMTPSA id 7B7B9106D7B; Wed, 1 Jan 2020 19:26:21 +0300 (MSK) From: "Matwey V. Kornilov" To: b-liu@ti.com, gregkh@linuxfoundation.org, stern@rowland.harvard.edu Cc: matwey.kornilov@gmail.com, "Matwey V. Kornilov" , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND v2 4/6] usb: musb: Rename musb_start_urb() to musb_start_next_urb() Date: Wed, 1 Jan 2020 19:26:08 +0300 Message-Id: <20200101162610.15819-5-matwey@sai.msu.ru> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200101162610.15819-1-matwey@sai.msu.ru> References: <20200101162610.15819-1-matwey@sai.msu.ru> In-Reply-To: <20190403185310.8437-1-matwey@sai.msu.ru> References: <20190403185310.8437-1-matwey@sai.msu.ru> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the following commit we introduce new musb_start_urb() function which will be able to start arbitrary urb. In order to have intuitive function names we rename musb_start_urb() to musb_start_next_urb(). Signed-off-by: Matwey V. Kornilov --- drivers/usb/musb/musb_host.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 5d23c950a21b..3a202a2a521d 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -213,7 +213,7 @@ static struct musb_qh *musb_ep_get_qh(struct musb_hw_ep *ep, int is_in) * Context: controller locked, irqs blocked */ static void -musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh) +musb_start_next_urb(struct musb *musb, int is_in, struct musb_qh *qh) { u32 len; void __iomem *mbase = musb->mregs; @@ -403,7 +403,7 @@ static void musb_advance_schedule(struct musb *musb, struct urb *urb, if (qh != NULL && qh->is_ready) { musb_dbg(musb, "... next ep%d %cX urb %p", hw_ep->epnum, is_in ? 'R' : 'T', next_urb(qh)); - musb_start_urb(musb, is_in, qh); + musb_start_next_urb(musb, is_in, qh); } } @@ -1001,7 +1001,7 @@ static void musb_bulk_nak_timeout(struct musb *musb, struct musb_hw_ep *ep, } if (next_qh) - musb_start_urb(musb, is_in, next_qh); + musb_start_next_urb(musb, is_in, next_qh); } } @@ -2141,7 +2141,7 @@ static int musb_schedule( qh->hw_ep = hw_ep; qh->hep->hcpriv = qh; if (idle) - musb_start_urb(musb, is_in, qh); + musb_start_next_urb(musb, is_in, qh); return 0; } -- 2.16.4