From patchwork Thu Mar 10 00:06:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12775705 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B95DC433F5 for ; Thu, 10 Mar 2022 00:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UqhndIOWTg469pn8b48t3K8GdpvxG3U3tolKWLBd7xQ=; b=t3dHKpDPH4JWux UqkH9N12km7K+LA6fdCHsOgS6ecobYmYLiGaR2ej4eAxF4awHqs86FDYxtZRY4vIbSZyZD219zOEH PUT1rqV1cJpe/VG8lnBizkSKsBY34yhfP6ZnEsC+PNuH6yHo93ns+cuPCIRy8meHyYmHlhhmYnZwb ZQG7EpbhB4T46GvvQmi31sFLYsgeme/DWBPey+jDSZfqoKumBpcnjyj9sMeBGL7shcSgpU2ke9Ls1 l59F14mNF7gTvPxIhfReMroq9IEnwtbGbelkG/eXsh/WRUwT1EojrXcKu3rYUmDhoef6IatFg1ZMw pnw7Og6Am32HptjFtDzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nS6KW-00AqNc-RX; Thu, 10 Mar 2022 00:06:57 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nS6KL-00AqM7-De for linux-arm-kernel@lists.infradead.org; Thu, 10 Mar 2022 00:06:50 +0000 Received: by mail-pg1-x532.google.com with SMTP id q19so3295249pgm.6 for ; Wed, 09 Mar 2022 16:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1cFKtN40pL2xMYIvh9TRbkp8PsEIDv0ea2xxCLSNgsA=; b=o4RAwQqnmfCI8nBbFcaF7OokoMqzTCNRNZjvyvWyY9xYj66UDqBRiQKN4oOB2m04Er hpBGaJb+OEfzRZN3Fbvna4jvuLuAfy0SnWLf3RSaQtyyyMxGuERFiL2F3OCe0kKEGXMf 172JAZglS3JDdDgesIyek3NiUpI8GxyZ+2ugOit1K/LnNnIiTxle1HeFYyU3ldo0KQvQ u/ZWgXOBXyH0HeFv/lg2TbzM0DPQAxQobLCRlhR6kqH4ZRO4eSN6DhLl3PXaJBsFR9fI uL9q0fIYhF53+FWZv1WVle8FzGBVyjSo5RnkONDes7/8NVY6p4HbZW7M2sQF4txfjXEJ WT3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=1cFKtN40pL2xMYIvh9TRbkp8PsEIDv0ea2xxCLSNgsA=; b=OxURKdHQyiQ3ckGf5+oaoA0xGa63grzLetBDKeXZ+Xv5iHtmTdBwqwWn+k5MHMj5cA OFKHy8+hZUtv5kJMdzEv6fVXwi2E2rTrXuaaohVLa1H26FS7Wn6V7s3WJacY0jAdKs26 81EPVKwMarjcQeB16TGY6hBlUE2EvOTwi9yjLC9KYgS+lC1fkGwG58jP9m9cuJ9Lk6vV ggmawbbC76mpiB0Y5+PQsEC3taPvhywTCRsF6h9IRj57URimwsvCwErd1XUNH/TgbD7f Igg/nIdsyziRFcqwNFO9C6hv89JSvKGSMw8DM9N509dx0AJBa5hZMMAjkFOC0LHaQ9FU RQWA== X-Gm-Message-State: AOAM530leYxClSUTUtGYIGZQAKdAqzNRDj7bWIFq2ZDQ9J/sjbNgJtQa KY32aNlg6zbO5vUeRIXAP9s= X-Google-Smtp-Source: ABdhPJxaAmNrfvQiHS+BuqoTBOqVud9HzWd+yVhE8lfV6qlsscpgEj85G+U9Dak5tN/JyDQyhYs9Uw== X-Received: by 2002:a63:8a4c:0:b0:37e:31f8:15f2 with SMTP id y73-20020a638a4c000000b0037e31f815f2mr1775428pgd.225.1646870804502; Wed, 09 Mar 2022 16:06:44 -0800 (PST) Received: from localhost.localdomain ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id g6-20020a056a001a0600b004f2a4316a0asm4213405pfv.60.2022.03.09.16.06.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 16:06:43 -0800 (PST) From: Joel Stanley To: Andrew Jeffery , Arnd Bergmann , =?utf-8?q?C=C3=A9dric_Le_Goater?= Cc: linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/2] ARM: aspeed: Add debugfs directory Date: Thu, 10 Mar 2022 10:36:28 +1030 Message-Id: <20220310000629.119699-2-joel@jms.id.au> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220310000629.119699-1-joel@jms.id.au> References: <20220310000629.119699-1-joel@jms.id.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220309_160645_517415_FA131370 X-CRM114-Status: GOOD ( 14.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This will be used by other drivers to hold machine specific debugfs information. Signed-off-by: Joel Stanley --- arch/arm/mach-aspeed/debugfs.c | 16 ++++++++++++++++ arch/arm/mach-aspeed/Makefile | 1 + 2 files changed, 17 insertions(+) create mode 100644 arch/arm/mach-aspeed/debugfs.c diff --git a/arch/arm/mach-aspeed/debugfs.c b/arch/arm/mach-aspeed/debugfs.c new file mode 100644 index 000000000000..b7d1b8f28435 --- /dev/null +++ b/arch/arm/mach-aspeed/debugfs.c @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// Copyright 2022 IBM Corp. + +#include +#include +#include + +struct dentry *arch_debugfs_dir; +EXPORT_SYMBOL(arch_debugfs_dir); + +static int __init aspeed_debugfs_init(void) +{ + arch_debugfs_dir = debugfs_create_dir("aspeed", NULL); + return 0; +} +arch_initcall(aspeed_debugfs_init); diff --git a/arch/arm/mach-aspeed/Makefile b/arch/arm/mach-aspeed/Makefile index 1951b3317a76..3db448ccdfe1 100644 --- a/arch/arm/mach-aspeed/Makefile +++ b/arch/arm/mach-aspeed/Makefile @@ -3,3 +3,4 @@ # Copyright IBM Corp. obj-$(CONFIG_SMP) += platsmp.o +obj-$(CONFIG_DEBUG_FS) += debugfs.o