From patchwork Mon Nov 4 18:12:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 178459 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp4389265ocf; Mon, 4 Nov 2019 10:13:18 -0800 (PST) X-Google-Smtp-Source: APXvYqx2Vk/jO2u8j5ZC38yg7WkMHs1+hecbaDau+q38ci6cf2xWGpQ6qfhU6dy1/VtFV22wVqBO X-Received: by 2002:a17:906:2584:: with SMTP id m4mr25838262ejb.287.1572891198097; Mon, 04 Nov 2019 10:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572891198; cv=none; d=google.com; s=arc-20160816; b=cBFAJYCYOBvLNnLlqVGzGYyV3kIhcWQwUBj8rlfmxUMylyrByFU4uHp9nfKpu76o+8 Wxu6VI/KKWy4ZdB8Su/yxsUvaqvjVAPYa5lZBIvXLw4SMR2iihyRKhnoddNqG1JZJ+at 9ZvsCA3dUzx1yoz41iJ0QNdVSJMz1queojTkm/P1cyVfdv8Ig5+tcqiAohgJaYSmeruq mKNFwu4rFxQsNYLaODcpU8LkviwNCs4UMScD2GYTQH15WxKx3+/W0pXbodSzJc8/SL99 kmlAwWiFa0g2lxL7cQxvn2zhywC2hF8AAto+JMUKArPWrjHEgyPt7mGiZfzvdMy+UX1I mzrQ== 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; bh=1T5qb1N1RGdNwfpZMS1nmW4JbJwNZQr2qiFyXV+vsXI=; b=m//cDWjUY5Wa9xUzHCwZbREI9WECOAneL5lzITQyooTnMLNVDlgUCcryTAKU2DNPM+ LKzcBBtTOtg7sOB6zaN+Xzm3NKoTL1XAeb94S+kDGySoDMJlpKCBrg0toQl2r0/9xEay JBx9wm3+jpTkLzw2C2Nc69rgZImdvVBdsCkdyeFVmnaQ2zjahAm0UpBB4rX0qmJ+96y3 MOrbh1ctytMqUIFF9Eb9uhVqQol92+e0NoNJr5chz3I7SSKJOYnizy+a7MXioQU7N/4h PLp2sLQKZrPR/+SQlDloAI36mT4hBQLo+w3Ayaeo9Svq2BSVPZnFDXsxpwh5eVxjRbXk s0Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rTRqo8+L; 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 u20si3696516ejr.168.2019.11.04.10.13.17; Mon, 04 Nov 2019 10:13:18 -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; dkim=pass header.i=@linaro.org header.s=google header.b=rTRqo8+L; 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 S1729648AbfKDSNN (ORCPT + 26 others); Mon, 4 Nov 2019 13:13:13 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46334 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729575AbfKDSNK (ORCPT ); Mon, 4 Nov 2019 13:13:10 -0500 Received: by mail-pf1-f195.google.com with SMTP id 193so11542993pfc.13 for ; Mon, 04 Nov 2019 10:13:08 -0800 (PST) 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=1T5qb1N1RGdNwfpZMS1nmW4JbJwNZQr2qiFyXV+vsXI=; b=rTRqo8+L54opQw9nOOIGSx7QK90W2+ZzHTPDMmxn1hbCSkcZuUL/6fkN+CfvtBKTdZ FQyvs5/addpNUheJk5F/Z7kqcvFW/X/4tEeWTflKsewuuK807msXk2yu5EH/mvLFcn8C LwwuwkuAW+DuwfVXerxkf7yv5czpA/VeEQv32eOSsUWvEShW1Ybkhi2zgRLzDd8zw7tP pSqjxj5VrqKF6AG548xdbuEneE6ki/9iCegyLDgHa/LySbv9FCZWD8BK28HoIAoEiAwY d/q6VWHJNPoL3Sj57PjR8LP8rVb4u90xDO2AC9rM93tw7BEO1mg8GLDusfk05LghjoZF cx8A== 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=1T5qb1N1RGdNwfpZMS1nmW4JbJwNZQr2qiFyXV+vsXI=; b=EEGMkYB3XoEPsWVvjO/snoKoQeiuDAZZLQPlg+wdWw/VQGmXTps1uJdqlhyu5vTgZ7 p36WhxTkUIlV5ptwMIrggpzlicwTePHb6EmcvyM6bYkOHkGs/0zhQIEkIcr1jScLQ0VG tjyjH6qxGYmpyQt/lTgz+wd2a8l2ewu7uo+eutFar6Ke5XfOL8B087rIj1Eo4EsnOy9w sHMwDK4+rdyopUvH0t5q16M4EAVCSyvzcztCbWka89hcttgbggPqhj6y8C+7i5sQmNgD PGXeM5cVc589NJyR3ngZgGcqSlPkJPPKPg5q6eg11QMpt0XVPxC0kJE0PRXZniqjMhHj ONqA== X-Gm-Message-State: APjAAAV6CSqdWqSqTE+ISEfOUhnUUZ2XbTdxVjqFuEDRW7bQG0ucDV2e IsGCe5Aa5rCXbQkSXPpjb6mP6A== X-Received: by 2002:a17:90a:86c1:: with SMTP id y1mr565934pjv.71.1572891187654; Mon, 04 Nov 2019 10:13:07 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id o12sm16149520pgl.86.2019.11.04.10.13.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2019 10:13:07 -0800 (PST) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/14] coresight: etm4x: Fix BMVAL misuse Date: Mon, 4 Nov 2019 11:12:51 -0700 Message-Id: <20191104181251.26732-15-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191104181251.26732-1-mathieu.poirier@linaro.org> References: <20191104181251.26732-1-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rikard Falkeborn The second argument should be the lsb and the third argument should be the msb. Signed-off-by: Rikard Falkeborn Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm4x-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c index 3fc12ac44270..ce41482431f9 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c @@ -1246,7 +1246,7 @@ static ssize_t addr_exlevel_s_ns_show(struct device *dev, spin_lock(&drvdata->spinlock); idx = config->addr_idx; - val = BMVAL(config->addr_acc[idx], 14, 8); + val = BMVAL(config->addr_acc[idx], 8, 14); spin_unlock(&drvdata->spinlock); return scnprintf(buf, PAGE_SIZE, "%#lx\n", val); }