From patchwork Thu Jul 16 17:57:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11668221 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 73692913 for ; Thu, 16 Jul 2020 17:59:34 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 482A1205CB for ; Thu, 16 Jul 2020 17:59:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="xtGebvqC"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GmCJWH1X" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 482A1205CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=AKpHuQ5zhVOpCjpH/3ZdnnkK6c4iV9FRBUyCAb/kuYk=; b=xtGebvqCODRvk+mgHpUMg01JZ zmckBUU3y2G1GtcMFcJBgbhMAfIVr/Q4jdOoK+qOwJZOWGDkxfeWY8m/tCUaM1LRSRaVpTizRIqFG tDcVsFbL2TSmiJ7OHbeGV5Dld0klYOcwxJm0xKPZ6xdtjHz/CkPYi7PIX9YnKG1tONZWpOXm1KR/P XNKCzrDpkblQRj/R+DTlpfammGntWldSHR6wUlKhyYwA6C3MFHSwPS/q4frj9TBGienPwyq7sTMqT 4dvkrxwkDkfbfxMsDcU8D6tYwjUbxJ6saOMWf7eTH0Ei54HJBViWcek+woZRKEoKIeZSbQXBjm1uC WIzfsLyrg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw88t-0003Dk-Bz; Thu, 16 Jul 2020 17:57:59 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jw88l-0003Af-Fl for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 17:57:52 +0000 Received: by mail-pl1-x643.google.com with SMTP id t6so4192966plo.3 for ; Thu, 16 Jul 2020 10:57:51 -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 :mime-version:content-transfer-encoding; bh=hS53mE0Vv7croCiD5u+mcHlgXOwL7wOyDKsRaFLtYpo=; b=GmCJWH1XL5w53PpJcehXecLm0QathMlrMoCWRzAHuruUnPZ77amJFA94/UO7IYqh/P qVqQUdElT7iRLQjK3kkX/4TLKy//7rHCtHKo4Tdz3hKBo8JwYCED/WrxhdrBpAjFBeS0 2iMuEbyFObTZC3yLaby6G4s1rdu+hoBSfllm0UUsOPZZEF8frhfFoT5uaWOxCI/xf70G TuPdy7eNKrnGWcHzj4SnRUU+JyyZ+zrXacnQao58wWQQGdh9ok/8JvK3sL3y+xsU11Bk G4Pd3aT4yMgQa8nUx6bE4XtznB43Kqr5T+uBlq0GK/huVI+5dqYuHrneMRnkwc23rGL/ cfEQ== 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:mime-version:content-transfer-encoding; bh=hS53mE0Vv7croCiD5u+mcHlgXOwL7wOyDKsRaFLtYpo=; b=ASe89x2mlURTjR3P/7uWeDQnf1A8649O2S0GfLZgxSPWz9ZAbq0gDOzJSoe5TrSsx/ v7zwWsvLK7KJetc3rXUFKCBICki7iMJoQ8xm/gSA/LCCrfdMovVole+qK5asgfWQ3FUY CYiqLsWfXoKA3gTUwOjGEtPz4hYWDZNCJNRXopyEv39TxER16xU0UHWgwRZjWhq1gRqi UTzQpE+jKJDkXfGECRieHJCzIjkSdhvmitT+wrrGKEPa9dHkW9aYXV1HjkhOupd1UNCM +DKl50EEooErOWF+cKjInt2wkE/h65cjgN/tmylhbxJi+J3iPHMvfxrfoGT8eEimQ9Bt iCMw== X-Gm-Message-State: AOAM533RoGw9JQ947A99+qnTsx2XDC/LEB3znGwLp83KmNc2qubUSDb1 sLNFgmSDV0MjpnehfbiX3Nzkmg== X-Google-Smtp-Source: ABdhPJxNdsAbb9QlCozs0FIq0Ut+cTGS94o3oSBgcrvY3xbukRQaKRsDVuiHVPiCYxScljvY4CbhQQ== X-Received: by 2002:a17:90b:19c5:: with SMTP id nm5mr6092893pjb.155.1594922269412; Thu, 16 Jul 2020 10:57:49 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id 83sm5473253pfu.60.2020.07.16.10.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 10:57:48 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Subject: [PATCH 01/17] coresight: replicator: Use CS_AMBA_ID macro for id table Date: Thu, 16 Jul 2020 11:57:30 -0600 Message-Id: <20200716175746.3338735-2-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200716175746.3338735-1-mathieu.poirier@linaro.org> References: <20200716175746.3338735-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_135751_559538_0BEFE77E X-CRM114-Status: GOOD ( 10.68 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:643 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: saiprakash.ranjan@codeaurora.org, suzuki.poulose@arm.com, vulab@iscas.ac.cn, tingwei@codeaurora.org, andriy.shevchenko@linux.intel.com, linux-arm-kernel@lists.infradead.org, mike.leach@linaro.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Sai Prakash Ranjan Use CS_AMBA_ID macro for dynamic replicator AMBA id table instead of open coding. Signed-off-by: Sai Prakash Ranjan Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-replicator.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c index e7dc1c31d20d..c619b456f55a 100644 --- a/drivers/hwtracing/coresight/coresight-replicator.c +++ b/drivers/hwtracing/coresight/coresight-replicator.c @@ -348,16 +348,9 @@ static int dynamic_replicator_probe(struct amba_device *adev, } static const struct amba_id dynamic_replicator_ids[] = { - { - .id = 0x000bb909, - .mask = 0x000fffff, - }, - { - /* Coresight SoC-600 */ - .id = 0x000bb9ec, - .mask = 0x000fffff, - }, - { 0, 0 }, + CS_AMBA_ID(0x000bb909), + CS_AMBA_ID(0x000bb9ec), /* Coresight SoC-600 */ + {}, }; static struct amba_driver dynamic_replicator_driver = {