From patchwork Fri Jun 30 17:41:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 106760 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2613479qge; Fri, 30 Jun 2017 10:42:29 -0700 (PDT) X-Received: by 10.98.192.204 with SMTP id g73mr23236918pfk.26.1498844549263; Fri, 30 Jun 2017 10:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498844549; cv=none; d=google.com; s=arc-20160816; b=S9LhKgKSD61AfixqkMkwANgCJ/nXYzV4/dtMgl6CV29IaZLEv2Kv2fKTeBZnRvFNaE Qe3gl/ek5M661Ot70Rpdm+o9zOC4ZsNjPDf9euJGPdN75IWpjSOzFAeGPxDpoNvMmRu1 wPGJ2+OiLkHUUS6Nl30O5QBTXBGFCTIqK6ydHcSPmAubc/271QxxjU2xfRU0C8AAW+8s YoOsKN+6lWTgpFe6q5IH76t0GgJL6Mfcb4RtObQwtAVECqv4fVnbELvDc0tQoKFoF4RP O7CEls05C9375uBlmQSwMhsm19ItgD3/GgIaG1KLMJ3FzKjiOJIDJK1BLFzLBbzozAvC AVPA== 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:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=pmhkwVdEuAIaGm/mPToB6JoRcAsRGADAFEXdMsqjieA=; b=A84M+RUts/jYgUNHysGCjJdT1nh29HCl+pZ7pz/aFKzVz1IZJW//PaVRtKP5istQz2 dBai4zFJjJuMwGgUEcMNIvhxuJc7za5T5misfxjFMXCpbWnp01C8PoNcPzd5TTaR4JS5 Jv3p8Xs/uRwIIYS3JzvYkGCDlq09qHgVDAg691IO2n6wexMxcST7rmaBh/AKGxo9XSSc FvTsXy6xNuSJPaRNdq64ovB9T4q7BURffK4bSMgMz7N1OVeRcWa+dM9JnqT4KWOXB2zx KRkAeAvT1+g6x8lh9smjPGRxnn1vR98vzwvGuDG8lBq/Qi8osEXwxPIQhHcflBcWzmJ6 +kWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=J0YP3fPm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u23si6608381plk.164.2017.06.30.10.42.28; Fri, 30 Jun 2017 10:42:29 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=J0YP3fPm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752592AbdF3RmT (ORCPT + 25 others); Fri, 30 Jun 2017 13:42:19 -0400 Received: from mail-io0-f176.google.com ([209.85.223.176]:35839 "EHLO mail-io0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752550AbdF3RmR (ORCPT ); Fri, 30 Jun 2017 13:42:17 -0400 Received: by mail-io0-f176.google.com with SMTP id h134so27985384iof.2 for ; Fri, 30 Jun 2017 10:42:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pmhkwVdEuAIaGm/mPToB6JoRcAsRGADAFEXdMsqjieA=; b=J0YP3fPmy9wZ8QjaXYnfgvJZlUPqT72AzKcmOft1HudpwejnLwUfPkYA5ACYiT5tXl OtKWkuB4K7UBkO7TVnVJ2+bawio80wrupAxDGB42AOWNi3IN5SPdnisjTcQUGudiVg1s PHm3J2+3C1+UpzBNx79S9PZGY8zYkEI3osyUU= 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=pmhkwVdEuAIaGm/mPToB6JoRcAsRGADAFEXdMsqjieA=; b=WSfYeQxR4pqVAdxuil/ffvOmFJiTlEDJPMVbqRmMCvuiBnqJFzAOHT90GtYsgY9Q8w KIEKzMDLRKsKsHvzRPqp3Ra4bXuUsi8FQeUK+g4A2Tbq5IMLbXYit+9bhjtPgXF/ZYrJ RR5hPL3j2+5S5rMvtLFe7LCTonpf+QFm9BTFKkuDcW8beHBGLT1J61mHDT/tRxOTxemD DDmDJEFzXHQlYVjCZZdt2m6OxjJwXATsPCCVZ9PtEEykoazZPSK69o8r91KdxUCCx2YY EJvOJjHafE3fIOaR8lBZ/rSWuHyH3O7yMjzLtOQxbUpGTLKZ0vzOpTiNSbWX3aKHiBzf U0Qw== X-Gm-Message-State: AKS2vOwNG9bF6UaQJyoUfyfuRW9RH/5NbEnsbLAJWNsrX9Prkq77g+Ur 4dMDsEoICfWnggjh1xSUIw== X-Received: by 10.107.56.4 with SMTP id f4mr23707426ioa.86.1498844526333; Fri, 30 Jun 2017 10:42:06 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id d23sm4381451ioj.22.2017.06.30.10.42.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jun 2017 10:42:05 -0700 (PDT) From: Mathieu Poirier To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 4/5] coresight: etb10: Move etb_disable_hw() outside of lock Date: Fri, 30 Jun 2017 11:41:58 -0600 Message-Id: <1498844519-8845-5-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498844519-8845-1-git-send-email-mathieu.poirier@linaro.org> References: <1498844519-8845-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Function etb_disable_hw() is already taking care of unlocking and locking the coresight access register and as such doesn't need to be placed within the unlock/lock of function etb_update_buffer(). Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etb10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/coresight-etb10.c index 42360306f049..d0d186575c5d 100644 --- a/drivers/hwtracing/coresight/coresight-etb10.c +++ b/drivers/hwtracing/coresight/coresight-etb10.c @@ -376,8 +376,8 @@ static void etb_update_buffer(struct coresight_device *csdev, capacity = drvdata->buffer_depth * ETB_FRAME_SIZE_WORDS; - CS_UNLOCK(drvdata->base); etb_disable_hw(drvdata); + CS_UNLOCK(drvdata->base); /* unit is in words, not bytes */ read_ptr = readl_relaxed(drvdata->base + ETB_RAM_READ_POINTER);