Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1529231pxk; Sun, 13 Sep 2020 06:15:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3FAF3otoCCmwdRvK23OdXt0xyLC3M5Ng5nLP3aTTIk851z5PWRrnlS0Ux0nkpql48uFBJ X-Received: by 2002:a17:906:474f:: with SMTP id j15mr10865489ejs.468.1600002932151; Sun, 13 Sep 2020 06:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600002932; cv=none; d=google.com; s=arc-20160816; b=OCUbYxxI3GntmiY59dhSJRsVRufTrl2qoVHA2Q47ZXe0xfUvP9LFjhsW8dRRsvyuH9 rEq6TraLuXol9fhl6tqhcYFjTiNWKV+ykS31CPvjSA941mwAsok/qyyAZe4RAyjoEZ4T YLLnyiXmLflVsdzaHLELTuFqu9hjnfklNGRj+YV9m/H5xq4HITGih4SVyktV7ZNB5EZK tG7ICUsMRQcSCiSCp64ws1qGTuvEj+19EKoMUxMMyhrNUJ3+RTypXyTHfRT+sBcZ9YQ7 DG2QmrlFIwqLjB8ac6qAkQiHWD8PSWoO7S1a07zwCY2676qqpVbCXDu+41chzyojXboB fGoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=sp+fes6uZhHBhofbqrDmWOtS0+eriJmit2HNm3H6vBw=; b=RBp/rng1l/pDovPn11/VNqnThuxdpUXymaco70wkTsq8JbhSw+WFjbCezT7hJXsFG/ p6Jar1bbnecBtFFBGnDI+RxVLkTvJgRbHuvfEaDeQPXq6GHQuAaTiZKVE1zDZdzKk3MQ m/J4BmcT+DrJ6V7sW7XhrVpfmYPFc44V48F/jpBh+Lcs6AJQpAQ95A50oIXno1bkKpw5 DbFVCa4p+HFlijZkpwzQGXvqD9Tem/fZVrsyDiI6z0NRszVuLM//g4R4NkpJiOf1HCHg XIKOfoMSqcc1mkWQNkJ54DPmWslJiEYpECRR1a1PjgfHVSZkX+JFB26dBWuNt4Ca9wqh cUNg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p11si4870071eji.157.2020.09.13.06.15.10; Sun, 13 Sep 2020 06:15:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725940AbgIMNNp (ORCPT + 99 others); Sun, 13 Sep 2020 09:13:45 -0400 Received: from foss.arm.com ([217.140.110.172]:54446 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbgIMNNm (ORCPT ); Sun, 13 Sep 2020 09:13:42 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5C242106F; Sun, 13 Sep 2020 06:13:42 -0700 (PDT) Received: from [192.168.0.21] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 05FD33F68F; Sun, 13 Sep 2020 06:13:38 -0700 (PDT) Subject: Re: [PATCH v10 10/24] coresight: etm4x: allow etm4x to be built as a module To: tingwei@codeaurora.org, mathieu.poirier@linaro.org, alexander.shishkin@linux.intel.com, mike.leach@linaro.org Cc: kim.phillips@arm.com, gregkh@linuxfoundation.org, leo.yan@linaro.org, rdunlap@infradead.org, linux@armlinux.org.uk, ykaukab@suse.de, tsoni@codeaurora.org, saiprakash.ranjan@codeaurora.org, jinlmao@codeaurora.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20200821034445.967-1-tingwei@codeaurora.org> <20200821034445.967-11-tingwei@codeaurora.org> From: Suzuki K Poulose Message-ID: <6d15ba79-2cd8-9428-e9f2-0b5e7b29f833@arm.com> Date: Sun, 13 Sep 2020 14:18:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20200821034445.967-11-tingwei@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/21/2020 04:44 AM, Tingwei Zhang wrote: > From: Kim Phillips > > Allow to build coresight-etm4x as a module, for ease of development. > > - Kconfig becomes a tristate, to allow =m > - append -core to source file name to allow module to > be called coresight-etm4x by the Makefile > - add an etm4_remove function, for module unload > - add a MODULE_DEVICE_TABLE for autoloading on boot > - delay advertising the per-cpu etmdrvdata > - protect etmdrvdata[] by modifying it on relevant CPU > > Cc: Mathieu Poirier > Cc: Leo Yan > Cc: Alexander Shishkin > Cc: Randy Dunlap > Cc: Suzuki K Poulose > Cc: Greg Kroah-Hartman > Cc: Russell King > Signed-off-by: Kim Phillips > Signed-off-by: Tingwei Zhang > Tested-by: Mike Leach > Suggested-by: Suzuki K Poulose > --- Reviewed-by: Suzuki K Poulose