From patchwork Thu Aug 25 21:18:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 9299985 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 56DD760757 for ; Thu, 25 Aug 2016 21:25:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4819F293D2 for ; Thu, 25 Aug 2016 21:25:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D21B293E6; Thu, 25 Aug 2016 21:25:50 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1D86B293D2 for ; Thu, 25 Aug 2016 21:25:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bd28L-0001iy-4G; Thu, 25 Aug 2016 21:24:21 +0000 Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bd247-0006Ju-Bn for linux-arm-kernel@lists.infradead.org; Thu, 25 Aug 2016 21:20:00 +0000 Received: by mail-it0-x235.google.com with SMTP id f6so112870959ith.0 for ; Thu, 25 Aug 2016 14:19:38 -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=PiRhzZ6CLGLZvxJji1UG49pmLaS6HrXLk9ftuI/iu44=; b=SEoLxjWVnewx1FClRuKdGYNwHSo6Z6po8Oy/EMGM/BD8FUq7ecWwEBNsxmq8pXJ+hj pKyCqoDqPPRjOKlrFTLBoKIxIobziKF/5cNh38Ofp4whKaUSgxBGvSM/7BfCV/XsE2rr CQ4BPf6v0/bGj/OfE494FdohDzSLIlVj13A6M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PiRhzZ6CLGLZvxJji1UG49pmLaS6HrXLk9ftuI/iu44=; b=YvB4NyRURUAqc2hf8LHwv3ki+8GajCEVCXx5XHToqM+nSjPa1PZzcKvKGdrlUhGomq ikGw2LHlFDMjQ4GyL2uLp1W/kU7cNAsxBGUXEU9JUIzrZ2U+TC39hq9cZzQuTBp5iCYB ojlmlqu7ysl7c9j6P+ST3dJ+MPwx4Vl0U4yOgxEvrMY6+cLqSzw+O+waYUx/Lb9aHj3G YzG70UV93ONHNrKkcMTeHe5eVqg5PTUSvlSve2KppDR1GcJbrCgZaNKiVk6tCM4ORLPk XrPWLa1U5RVpdbTulCl8rhIKVTosnNrkd7r0l4VejtGe08HQJ2yDoiK5wy6p/dHQG/sW /74w== X-Gm-Message-State: AE9vXwObkhMOJgepJhVEr568MRkyKpW/jz1tgfpxVpCNp05g0UOH680YvBC6EloedqKgSwoF X-Received: by 10.107.197.70 with SMTP id v67mr12344524iof.178.1472159978423; Thu, 25 Aug 2016 14:19:38 -0700 (PDT) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id o5sm14506120ith.20.2016.08.25.14.19.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Aug 2016 14:19:38 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Subject: [PATCH 09/28] coresight: Cleanup TMC status check Date: Thu, 25 Aug 2016 15:18:59 -0600 Message-Id: <1472159958-5981-10-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472159958-5981-1-git-send-email-mathieu.poirier@linaro.org> References: <1472159958-5981-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160825_141959_547334_CEDF3552 X-CRM114-Status: GOOD ( 12.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Suzuki K Poulose Use the defined symbol rather than hardcoding the value to check whether the TMC buffer is full. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-tmc-etr.c b/drivers/hwtracing/coresight/coresight-tmc-etr.c index 03f36cb8b0c8..6d7de0309e94 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etr.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etr.c @@ -68,7 +68,7 @@ static void tmc_etr_dump_hw(struct tmc_drvdata *drvdata) * Adjust the buffer to point to the beginning of the trace data * and update the available trace data. */ - if (val & BIT(0)) { + if (val & TMC_STS_FULL) { drvdata->buf = drvdata->vaddr + rwp - drvdata->paddr; drvdata->len = drvdata->size; } else {