Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp259194pxx; Wed, 28 Oct 2020 04:19:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3bcYEbxPtbD/igayWgEIRddstItsm9jdVwJpGVwhRcg9ng1vIgT2XLp77dpdIO6zXHsb1 X-Received: by 2002:a17:906:6d99:: with SMTP id h25mr6970476ejt.281.1603883999486; Wed, 28 Oct 2020 04:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603883999; cv=none; d=google.com; s=arc-20160816; b=FuBwg0c6Anaut8cwl6+Xmf+uaoN1f2O7jKsd87bWdBUR+Hs+k9i1YGGDJYCdA60Cyn jDqcKjZg9dMv8FwW6tbzChI/E/VXd4VtuRBO0dLGYmvQVFl/avLY8AJ2cdcdYdn6TUEA 4qnQYILLdiK3mOrGP6vhhCMMePFVJTTybPdcY4AHuUgVTq6Z71uTidY39L0UFpewu8mr IuVLdD8R20XmIFIAvms5svudkcjctinkQiO6nqTagx74O30kTjN/+jvJ6Jp044LJyaBJ DJRpz4cEBHKmYF6LzIe9OdJbtBbTGZ/6xbPA3B+KwB0SXI6RzM6ddPVBXHsHiRX5Esc1 TJ4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rG7aDyTrBRSRqCXj7xLG1w/nxjgx9A+55qntWnBW8Sc=; b=tKhkGCPbSmyA4qDJEw7sPeCBpIbQdmaUFCq+Ao5kXZnd1tYH7YjaepP3tOSkxRh5pS biHoe24/v7tOQSFlfo8nFFieHAPsPG5w4wM8X9HkQ3ODi1aI/Wf3pfVVwi0vkRF9IBU+ OQCC6LJjHddfY8J70n05WI+IaFuRjcOSmQ/NNArYvtbJwrAYLPMPFmt+sO1G/fPM6DhD zMD5drpV1xIWuPVAwyhhvAEGz/ZbJOUg7WRSdbS7fK15H36cXnOx1FvTQAgH7nyGBrug U69tIeICl4sili9m9q/po4G60F2g66jHsg7r8LHQ6/nIK18OgI37orpCGSUmVHq/RrFT yIEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XBBbEm15; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si2736409edx.542.2020.10.28.04.19.38; Wed, 28 Oct 2020 04:19:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XBBbEm15; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1789245AbgJ0PBr (ORCPT + 99 others); Tue, 27 Oct 2020 11:01:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:59710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753224AbgJ0O6X (ORCPT ); Tue, 27 Oct 2020 10:58:23 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0BBA621527; Tue, 27 Oct 2020 14:58:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810702; bh=7fmBJzGZiOmKsDk6Xs1UcibBG3VXSFQ/JCpTpN8fJpA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XBBbEm15eLv1RC/rdGLf+pYSnYPMpeDhE3C/UU+dijTiWxfVuZ7PkFoi6DYjg0P8R vrpG+WCWNepYgwSxdjyiVVkQ1jLUfATFcCU4KcEpKLxZWJ0QhNkOQvz9uOsU68K4UH GlPGUxb1pZ2N8GjWtjnH9v0qK24wJc/m46A/4KMA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mathieu Poirier , Suzuki K Poulose , Mike Leach , Shaokun Zhang , Jonathan Zhou , Sasha Levin Subject: [PATCH 5.8 233/633] coresight: etm4x: Fix issues within reset interface of sysfs Date: Tue, 27 Oct 2020 14:49:36 +0100 Message-Id: <20201027135533.613681578@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan Zhou [ Upstream commit 4020fc8d4658dc1dbc27c5644bcb6254caa05e5e ] The member @nr_addr_cmp is not a bool value, using operator '>' instead to avoid unexpected failure. Fixes: a77de2637c9e ("coresight: etm4x: moving sysFS entries to a dedicated file") Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Mike Leach Cc: Shaokun Zhang Signed-off-by: Jonathan Zhou Signed-off-by: Mathieu Poirier Link: https://lore.kernel.org/r/20200916191737.4001561-9-mathieu.poirier@linaro.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/hwtracing/coresight/coresight-etm4x-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c index b673e738bc9a8..a588cd6de01c7 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c @@ -206,7 +206,7 @@ static ssize_t reset_store(struct device *dev, * each trace run. */ config->vinst_ctrl = BIT(0); - if (drvdata->nr_addr_cmp == true) { + if (drvdata->nr_addr_cmp > 0) { config->mode |= ETM_MODE_VIEWINST_STARTSTOP; /* SSSTATUS, bit[9] */ config->vinst_ctrl |= BIT(9); -- 2.25.1