From patchwork Wed Jul 29 19:52:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 11691635 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 886FA14E3 for ; Wed, 29 Jul 2020 19:54:16 +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 612A02064B for ; Wed, 29 Jul 2020 19:54:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XKCo9Y1D"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RHvzgRZ2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 612A02064B 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:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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:In-Reply-To:References:List-Owner; bh=Gb20IA0dB6XOL7P/YuG8IGAFh4X4irwkzVMkHfjHn5E=; b=XKCo9Y1DYA18GKcNDnXu6tV5X6 UCtMcmSVHuXJJvjqBZoFZUwaTwMAdC6AneLZBR30C1fBVspNZHSWF2s/IYm7nZsywfkU92BnPw8vt nGqq8rX7jgTMi5xozkOe3o2Rj0O1PbXzClgRtBx+renAEBHF5BZ8TBjLjDDPTHb7mz3TxlYfKFSUF hMhRG7L7Y9mnT1gpf/1mR1NOxbTD89cEHR7tUV4c6XUN53n0W+dM8RiAnHiHVGq5LDUZQXs2XF+tm lsg+eUPoLm+5zTDxz431/gZG68La8/mzD9a4Ty9Gor0UXeJe3CyFh0v/zQobGiLOruw+aD4cofxZJ RbSdJ3fg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0s86-0000nS-Ay; Wed, 29 Jul 2020 19:52:46 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0s82-0000la-8y for linux-arm-kernel@lists.infradead.org; Wed, 29 Jul 2020 19:52:43 +0000 Received: by mail-wm1-x331.google.com with SMTP id k8so4154864wma.2 for ; Wed, 29 Jul 2020 12:52:41 -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; bh=wBRMq46FXIsZ2Dl9fYeVkAZyMGl4vizCHdnJwhytjG0=; b=RHvzgRZ26BnGpbu+qc3QA15nV/szbADb1dCkABd14kfQ3qJE4kzLYB6gQrGmRn3kt2 GOeiyKL37v/quF/AF9eVEIhjxf+Rfij+RxdkgXTMYnSceb7oA4ZKFwHAS3l/uFBhjiv5 J/9oPZzyO3rMnrBtc7ApzbgggNxQLkp5cUuEu3yZrYIFn2ZWfq37RCEl+VVBJjksK6dm 20oJ4oXCetQKxgxhogu3lPJ0Km/nZqVafiJpY8ORXGUUeZlLiOf6PRUsWAyimk7DoBa7 syK1DszMRaRooYKJbdxo/6i/383xXaJ9l8V/ZzbStYGCxEF53vV1nfoUuGA3cI/f76Qj Z2vQ== 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; bh=wBRMq46FXIsZ2Dl9fYeVkAZyMGl4vizCHdnJwhytjG0=; b=aEovZsomPBvU06l9gN2EAdIbLXzYPiyrpsOgXKjLMo4I2U7NNnl89lA74MhTwIIG0Z wu4XJHSa7x8ERrB1oZSQcXDtmSU9GcOy3QgLJCkNzlOCp4whVSH9nKtJ2EUOJCoCQ6i1 B1gefn6FERh7jN8LOH0MrWMPW+c4W7uqfpKNEwMlyAV5sHH9zMFBhiPKUSp7OXU2hvCm pxirkT7tSU5UWZITJk3EtY0X17EkRny/UBn017OS615Ng2ec1Zqn08wcOtKkloNcO4cq /RtZ1uH5dSfYOdGaoB7fiwOnJxCz9fTI2AV7+l50Hnt0PSnloTur8CwCaePXjNlfwSqI N0Bg== X-Gm-Message-State: AOAM532bxowrZ7SUvJoD4ryMDESkqUUxJF47bpagkZYdDt22kMDZe8Ag 8c7K0sTb0cQZZ8cTQWVxXG3dI7cBiZ7+WQ== X-Google-Smtp-Source: ABdhPJz3ddl31U4ZEOIxHCPk61hZ4AZMP/WnHYZ4YU6tmjawrknHWObqpy6ANST/znIBaIFXNHA2cQ== X-Received: by 2002:a1c:3c82:: with SMTP id j124mr9827528wma.145.1596052360773; Wed, 29 Jul 2020 12:52:40 -0700 (PDT) Received: from linaro.org ([2a00:23c5:6801:1801:c16b:5bd3:48a4:60b4]) by smtp.gmail.com with ESMTPSA id p8sm7713815wrq.9.2020.07.29.12.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 12:52:40 -0700 (PDT) From: Mike Leach To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, mathieu.poirier@linaro.org, tingwei@codeaurora.org Subject: [PATCH 0/1] Fix issue with module unload and CTI cleanup Date: Wed, 29 Jul 2020 20:52:32 +0100 Message-Id: <20200729195233.30369-1-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200729_155242_632223_6ACDACE3 X-CRM114-Status: GOOD ( 11.05 ) 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 [2a00:1450:4864:20:0:0:0:331 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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: Mike Leach , suzuki.poulose@arm.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org In the proposed Coresight module set v5 [1] from Tingwei, unloading the ETM module before the CTI module will crash on unload of the CTI module due to the cleanup callback from Coresight to the CTI module not working correctly in clearing sysfs callbacks. Patch fixes this issue. Applies on [1]. Tingwei - could you consider adding this to your set for v6? [1] https://lists.linaro.org/pipermail/coresight/2020-July/004349.html Mike Leach (1): coresight: cti: Fix bug clearing sysfs links on callback drivers/hwtracing/coresight/coresight-core.c | 4 ++-- drivers/hwtracing/coresight/coresight-cti-core.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-)