Message ID | 1413565804-13061-20-git-send-email-balbi@ti.com |
---|---|
State | Accepted |
Commit | d2e6d62c9cbbc2da4211f672dbeea08960e29a80 |
Headers | show
Return-Path: <patchwork-forward+bncBC5M7T4HYEKRBHE3QWRAKGQEYOREQTI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 59C4C202DB for <linaro@patches.linaro.org>; Fri, 17 Oct 2014 17:10:53 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id ge10sf713696lab.5 for <linaro@patches.linaro.org>; Fri, 17 Oct 2014 10:10:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=uqV4kOlMAA+VQopQOqtKvju74SnPO+MiBz7fpn0AU+M=; b=F+dhqbW2FqGCQNAvI5GGqJvb8E6NRtL8TbMqmRMdlD2t/jiKYZk3TYzvnuZHoHHmqQ lPV8JFBf/BHH6v2r00a7FXAg7gO6Gf0sof/mzNlOpCs7F1mE2wJDWfEUUY7XBKC/g3sb VhE+xiOyHmAb5yxNYZmgZWkbF1HV5YBwT1JS2sCXMgSRQgYBy8SGQAvxGPycRqjBrpZ6 okzrf+VtOnnkilSoc6TEvDlh/ezGwDeHqIXBeU9mikfFi1rAenAVt8OWEYhBK9HC1fCi TEUq3mF49d0/jpFFjUrNXs36azIB2Do6nkQgrYMc8LnGvLTXkZ9BDxKLvNOWUij3Sje8 ZqFg== X-Gm-Message-State: ALoCoQl388ByVm1CSvbgagTNcmOOi+qjDRibf15IjEtJTCu6rKgwR5khJjT9TLOHfFq3KgPnSsrN X-Received: by 10.180.75.133 with SMTP id c5mr48515wiw.3.1413565852211; Fri, 17 Oct 2014 10:10:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.130 with SMTP id z2ls278862laa.61.gmail; Fri, 17 Oct 2014 10:10:52 -0700 (PDT) X-Received: by 10.152.205.103 with SMTP id lf7mr10300044lac.2.1413565852085; Fri, 17 Oct 2014 10:10:52 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id bg6si2989354lbc.42.2014.10.17.10.10.52 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:10:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id gm9so1073989lab.13 for <patchwork-forward@linaro.org>; Fri, 17 Oct 2014 10:10:52 -0700 (PDT) X-Received: by 10.152.120.200 with SMTP id le8mr9975597lab.67.1413565851980; Fri, 17 Oct 2014 10:10:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp266767lbz; Fri, 17 Oct 2014 10:10:51 -0700 (PDT) X-Received: by 10.68.139.226 with SMTP id rb2mr10071853pbb.78.1413565849962; Fri, 17 Oct 2014 10:10:49 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gl5si1534967pbc.229.2014.10.17.10.10.49 for <multiple recipients>; Fri, 17 Oct 2014 10:10:49 -0700 (PDT) Received-SPF: none (google.com: stable-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753612AbaJQRKs (ORCPT <rfc822;patch@linaro.org> + 1 other); Fri, 17 Oct 2014 13:10:48 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:44010 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753593AbaJQRKq (ORCPT <rfc822;stable@vger.kernel.org>); Fri, 17 Oct 2014 13:10:46 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHAYnp007484; Fri, 17 Oct 2014 12:10:34 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHAYsM023208; Fri, 17 Oct 2014 12:10:34 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:10:34 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHAXMO021788; Fri, 17 Oct 2014 12:10:34 -0500 From: Felipe Balbi <balbi@ti.com> To: Linux USB Mailing List <linux-usb@vger.kernel.org> CC: Thomas Gleixner <tglx@linutronix.de>, <stable@vger.kernel.org>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Felipe Balbi <balbi@ti.com> Subject: [PATCH 19/28] usb: musb: cppi41: restart hrtimer only if not yet done Date: Fri, 17 Oct 2014 12:09:55 -0500 Message-ID: <1413565804-13061-20-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT In-Reply-To: <1413565804-13061-1-git-send-email-balbi@ti.com> References: <1413565804-13061-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: stable@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> Content-Type: text/plain |
diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c index acdfb3e..5a9b977 100644 --- a/drivers/usb/musb/musb_cppi41.c +++ b/drivers/usb/musb/musb_cppi41.c @@ -209,7 +209,8 @@ static enum hrtimer_restart cppi41_recheck_tx_req(struct hrtimer *timer) } } - if (!list_empty(&controller->early_tx_list)) { + if (!list_empty(&controller->early_tx_list) && + !hrtimer_is_queued(&controller->early_tx)) { ret = HRTIMER_RESTART; hrtimer_forward_now(&controller->early_tx, ktime_set(0, 20 * NSEC_PER_USEC));