From patchwork Wed May 27 11:26:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11572627 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 BD578913 for ; Wed, 27 May 2020 11:26:20 +0000 (UTC) Received: by mail.kernel.org (Postfix) id B8D7C207D3; Wed, 27 May 2020 11:26:20 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5874920873 for ; Wed, 27 May 2020 11:26:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GhxPzSwZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5874920873 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=anders.roxell@linaro.org Received: by mail-lj1-f195.google.com with SMTP id z6so28403326ljm.13 for ; Wed, 27 May 2020 04:26:20 -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=7uD4NJKCCrAKNdXZhG6Aj4i9yfAmRa77MGUIOkJhlYc=; b=GhxPzSwZxz/FuMNuYGDzM0k2vcNESJSv1wSCeApiFe9C5uuAhpURWaks7Na0i1OoZl fb4TZBpJSzNuud6nOW5MZxTyfDD4j/YafFwKfPIothSviDUQmqjZtVbN/9OsckDhTr+V mA4nZK+7Ev17F4Bai5Dz7iASsxNNmXrEs04XGyrUHqeN6xW4Q5C+KoFhevkkttayPL87 7zp5uZYZ8wXlhnnIafFDbuDwPhbL0kqa5Lrqndy3Dt+APlMRJetnr3S5clk48W130t4Z t5topENI91V8YnZG5eGP5YxuPpcGYEnYGLKwCgmWQwI9dwTh07aeg8S3Z0DzqvPwF7/6 kZsw== 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=7uD4NJKCCrAKNdXZhG6Aj4i9yfAmRa77MGUIOkJhlYc=; b=XP7Vua9KXMSrkIGBl0dLATTKp56hAig5ykr3cy3ypbhZKP+qGcjXT6+za1QOa6wH3o IJQFOYzyZxpMKgmFBYhfr3rpc+XRxZyfCstV8rPDHB/g35e+390Pz9d1qUBGr1X/ra34 vCjUmrJ+/Wqx+yMDnWzvYo10ghnGM08wPmxHMQSFibCKKSF2hMK/RQxab1BAwaDm5yzy K6W687+RkShWuuslyokkYsRCKjjAR0KaK5M0CTtX6gXSteo0y1Kf+AgoTVBJ4etFhI+a y4durN/aeOKam0YPXhs2AEV0yUnojwnFkz/ZShHY0ZVVhVaeWAA01G2AvhvrCtv+1NIi 86iA== X-Gm-Message-State: AOAM532ejFB6bGG3C4FWAywF8Hr7pkfP1LMa7JZOb7BDYbh0WrhfBuOM YarbEWdBcKS1GRsOY7WoXSglrtma0cw= X-Google-Smtp-Source: ABdhPJwDVIZKKWsa2g9rM6j4jD0gbLPuXLdz/ptNe0zUdXTeoHpsBq5Wum0HsUHujy9Uyd5zBz27Pw== X-Received: by 2002:a2e:9a02:: with SMTP id o2mr2659598lji.89.1590578778399; Wed, 27 May 2020 04:26:18 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id b18sm637226ljp.35.2020.05.27.04.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 04:26:17 -0700 (PDT) From: Anders Roxell List-Id: To: soc@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, linus.walleij@linaro.org, Anders Roxell Subject: [PATCH 1/5] power: vexpress: add suppress_bind_attrs to true Date: Wed, 27 May 2020 13:26:04 +0200 Message-Id: <20200527112608.3886105-2-anders.roxell@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200527112608.3886105-1-anders.roxell@linaro.org> References: <20200527112608.3886105-1-anders.roxell@linaro.org> MIME-Version: 1.0 Make sure that the POWER_RESET_VEXPRESS driver won't have bind/unbind attributes available via the sysfs, so lets be explicit here and use ".suppress_bind_attrs = true" to prevent userspace from doing something silly. Signed-off-by: Anders Roxell --- drivers/power/reset/vexpress-poweroff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/reset/vexpress-poweroff.c b/drivers/power/reset/vexpress-poweroff.c index 90cbaa8341e3..0bf9ab8653ae 100644 --- a/drivers/power/reset/vexpress-poweroff.c +++ b/drivers/power/reset/vexpress-poweroff.c @@ -143,6 +143,7 @@ static struct platform_driver vexpress_reset_driver = { .driver = { .name = "vexpress-reset", .of_match_table = vexpress_reset_of_match, + .suppress_bind_attrs = true, }, }; From patchwork Wed May 27 11:26:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11572629 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 560E192A for ; Wed, 27 May 2020 11:26:24 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 51654207D3; Wed, 27 May 2020 11:26:24 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E70C2208C3 for ; Wed, 27 May 2020 11:26:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vXBWyVt9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E70C2208C3 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=anders.roxell@linaro.org Received: by mail-lj1-f194.google.com with SMTP id z6so28403546ljm.13 for ; Wed, 27 May 2020 04:26:23 -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=7JrgKFknWam4V1fZqyMtAvJglLBt+OuycTcodKNrhfA=; b=vXBWyVt9KfxvraiQX+TBkoR9fkLxC6dAcjgqDC8FPB8Eg5T0vCu3hFkF7mrPDmGH3+ B8sK9h5OmF3hTDadQ/boUYw+M60ietj/qXOgyJsslTPI/qJK8r9mWyxG2uPL3tC3EPGo 9OKSyfA3fDQGAvb8q3XLuZGH5rY/VSeDCgpjjTGyhJ7k+KrmPnEaPf3uF6AUYWQGMauo dl9FMEIA/nAFX3bS2PqWq+9j+UTxtt5BWFBimT+d8KxcUc3CDwP7O7YQdUivztrgny63 Q1FfDh9V8pUOvvddTYTtExzVL+81dSlazBBOL7SOK4pkp+mrC31giVsP5cUZBYfs1/1y Ea2g== 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=7JrgKFknWam4V1fZqyMtAvJglLBt+OuycTcodKNrhfA=; b=gGuinfDaEQfKyXRoScJZWYqvwEJdjllhhBVpg9r3j7B55i8FK2IkmepAe0N0NPMzvH JiT9vSnzBNCsk/4/a7MS2qXtZ4gTWPcVeBLm8FMNe1RblV9ijD7I5FTO5ZuGC9JR0Ww/ 0rKu3usEoUBIBAknfHmBEh0xnwOP7LmANWfTmBdI2B5gj5xqffDofKVenkW7O2EwEv52 gr/sl68RWUjWD/yxdHSiaYDyQRLkTDE2GxI3393hdXRGWdUVJIbkM4Ay20tvj+O5R3U1 WH3LRxTiLIyGejUyTQ4N5/UlZSoQCQOCx0GXF132Dya3z0skBEFVXYcMwH/283uc3J13 Fj3g== X-Gm-Message-State: AOAM533dRcGmvrkTDs887yXkx4uLkWyUONq0G/1zOpPvi5xQbzN1dG+b wu+g8jS+ovsHIY7CnfkIv5F3x27MMJQ= X-Google-Smtp-Source: ABdhPJynCQiy7HTZrLhL1W88TFn9lXdsTehxo3xi0Uzt9bQLsp1sbAhmLpjUyAhmBW+kLMsahCt4xg== X-Received: by 2002:a2e:9b89:: with SMTP id z9mr2653117lji.51.1590578781833; Wed, 27 May 2020 04:26:21 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id c4sm844304lfj.9.2020.05.27.04.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 04:26:21 -0700 (PDT) From: Anders Roxell List-Id: To: soc@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, linus.walleij@linaro.org, Anders Roxell Subject: [PATCH 2/5] power: vexpress: cleanup: use builtin_platform_driver Date: Wed, 27 May 2020 13:26:05 +0200 Message-Id: <20200527112608.3886105-3-anders.roxell@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200527112608.3886105-1-anders.roxell@linaro.org> References: <20200527112608.3886105-1-anders.roxell@linaro.org> MIME-Version: 1.0 Use the helper macro for builtin drivers taht don't do anything special in driver init. This removes some boilerplate code. Signed-off-by: Anders Roxell --- drivers/power/reset/vexpress-poweroff.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/power/reset/vexpress-poweroff.c b/drivers/power/reset/vexpress-poweroff.c index 0bf9ab8653ae..1fdbcbd95fc2 100644 --- a/drivers/power/reset/vexpress-poweroff.c +++ b/drivers/power/reset/vexpress-poweroff.c @@ -146,9 +146,4 @@ static struct platform_driver vexpress_reset_driver = { .suppress_bind_attrs = true, }, }; - -static int __init vexpress_reset_init(void) -{ - return platform_driver_register(&vexpress_reset_driver); -} -device_initcall(vexpress_reset_init); +builtin_platform_driver(vexpress_reset_driver); From patchwork Wed May 27 11:26:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11572633 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 6187B913 for ; Wed, 27 May 2020 11:26:27 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 5C20820B80; Wed, 27 May 2020 11:26:27 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F1B12208C3 for ; Wed, 27 May 2020 11:26:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="V5kemVCO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F1B12208C3 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=anders.roxell@linaro.org Received: by mail-lf1-f66.google.com with SMTP id w15so14197828lfe.11 for ; Wed, 27 May 2020 04:26:26 -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=M2JtMCIr8sBIUg16KPZS8ec0bB7X2FozgIoYxF1MtfE=; b=V5kemVCOolx/kfOxTYXM6Z0cmf3lAOmty9c9UjUBaD6qfc5OYQJA3Tdvbo6kmr2avL HSHWKkNhszZeSGqH40O7m4UkhwXR4gpHY3alrb7YgsdUrrx2F+Maw5500g325FyAfOJh pK3mldXC0fbgHFpH0MXl53/OuoK70faKvyLjjpkXy112Rg85saP3lrFqoP6+nPbYd4Ig S3Q7uJ1V9YFyymc5v9p0qxpTx0fQIaFEaYQn/UGStJmpg0AVVl+xIOyhGuSGKSDKqWUo kF5HWpHXDGpUEcDMEdL81GW3zKMtkmEqLZ3DpKo/v1KZ2sKupOr3aYDhbeWV63keL7Eh T+jQ== 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=M2JtMCIr8sBIUg16KPZS8ec0bB7X2FozgIoYxF1MtfE=; b=iypRRhTBi4v5VjIXMI25UxiHbAu4mcYEJWVcDOhhhtkQORXpZtrhu0qqUB5RbWOb9m qbxzgcOIPffX/HtjlTUczcrWCEw/V48O6ayJOzw0+lsi41NUazertNPC49aPXA/FRXzS bejHMj31jj+HEFjPmBhRoNhxRapo0mzjQO2isjxPde16HlBHsoOtIR4iX3FYZjqlqpp5 GQSoD2ts4KpThsNxmTBzSiyuda02mlXQU/G5+89qMQpVwqUgYbuyuSsvkIMr4XzHmv8v zymt24+/5Bsu93gefOy1l/MntiiDudlPVD3NdwFeDWdHgTVZNSy8kReF2jLkbbPRg+5j 7DLg== X-Gm-Message-State: AOAM530HmrIgdVAmD6DBAS9FdOAwoQPM+XpgZuxvgK38SavNe9U/GMeq iSEIikl+PqIveSkdXOniLsZH089Mqq4= X-Google-Smtp-Source: ABdhPJyOCrskqLzjWCjyhSbDwILM9RL2LptnZYxcJGRzQt6UxcV2DTKDtVk02/cPsG/JIPz/FxqV0g== X-Received: by 2002:a19:4ac5:: with SMTP id x188mr2933305lfa.180.1590578784928; Wed, 27 May 2020 04:26:24 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id a12sm634907ljp.60.2020.05.27.04.26.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 04:26:24 -0700 (PDT) From: Anders Roxell List-Id: To: soc@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, linus.walleij@linaro.org, Anders Roxell Subject: [PATCH 3/5] Revert "ARM: vexpress: Don't select VEXPRESS_CONFIG" Date: Wed, 27 May 2020 13:26:06 +0200 Message-Id: <20200527112608.3886105-4-anders.roxell@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200527112608.3886105-1-anders.roxell@linaro.org> References: <20200527112608.3886105-1-anders.roxell@linaro.org> MIME-Version: 1.0 This reverts commit 848685c25da99d871bbd87369f3c3d6eead661ac. Due to when I set 'depends on VEXPRESS_CONFOG=Y' in 'config POWER_RESET_VEXPRESS' to get an allmodconfig build on arm64 to build, and allmodconfig build on arm fails if this patch isn't reverted. Signed-off-by: Anders Roxell --- arch/arm/mach-vexpress/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig index 8391a5b3cd78..065e12991663 100644 --- a/arch/arm/mach-vexpress/Kconfig +++ b/arch/arm/mach-vexpress/Kconfig @@ -19,6 +19,7 @@ menuconfig ARCH_VEXPRESS select POWER_SUPPLY select REGULATOR if MMC_ARMMMCI select REGULATOR_FIXED_VOLTAGE if REGULATOR + select VEXPRESS_CONFIG help This option enables support for systems using Cortex processor based ARM core and logic (FPGA) tiles on the Versatile Express motherboard, From patchwork Wed May 27 11:26:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11572635 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 13FE3913 for ; Wed, 27 May 2020 11:26:31 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 0F76A206DF; Wed, 27 May 2020 11:26:31 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B6635207D3 for ; Wed, 27 May 2020 11:26:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ONaJkYkR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B6635207D3 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=anders.roxell@linaro.org Received: by mail-lj1-f195.google.com with SMTP id z18so28411618lji.12 for ; Wed, 27 May 2020 04:26:30 -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=k7QD1+/Irx+1VllFQd8G5Bjp2O9W9kjYTs0FEoDMEik=; b=ONaJkYkRMcHeErRk8IHzp2w+8EQvfPsaAgChUgUktMUmtcYgYs5dsNUPwrdd7EYSKN D4DIXVxSh8u3zLOflHUEraISMLMQ/q3vCM3iubUxV5PigMwApQbkhw4RNuPg9ncvIcKA igWa+s5fR6fWEKXZModGjrdWz+h4RkpZiLE58jTQeLTji28ZQua4/RcpBz0uQLJfoHv6 h2lEUZVOuA5FimUcUp9tk1qi4akUeGGx8ycuEGxWDgDoz5yLxUFniYV6PgTB5BGEi0wa 0lRZEgAnQqKON74RapS8RXexD/+QgFsv2GP/RJQSWnCB1YyFFPRe8na8cjCvrVBtJwSV /e5g== 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=k7QD1+/Irx+1VllFQd8G5Bjp2O9W9kjYTs0FEoDMEik=; b=C+Dyo3tRCK/RX6sSVpk8OCjlqzkXcIXjG4bOe+3oOEjfHmjWb/1XdgWY3KfJyhaErI rLBHJuJnKrYapUw9jAzYNBYR5j/GIyB11kxnh6L1W1A1A/SS81yOFClheOIGP9Bfd0pr TJkqjUMPEIpqembszP5WmnqSOd83vt0cyXUugQB9Okdo+seSXAcjV9b+jxMz6D7l8Wx5 QGhklTHd8iIx8oqOtCZxgPISD20jRWmJBZ0mLZTrUEE8360VNfuZw6C6BrZ/mvKwDswK 4JsqyPUS/aGo0tNILH+2BIGG6ujZPt1u+FluAmwTn/MXENH254maElmrGMHvejI+8vqI qPrA== X-Gm-Message-State: AOAM532CiSkx5aCVtUQxoIoKK+Y95u/IgVhOg+72OvNHifBEPQKONPnr sIO67BGsRPb1Sa7D5rL2CwbUDrj9nAw= X-Google-Smtp-Source: ABdhPJyJDrv1Hmbnw21diOmccCoGxDIOh35hLywSrDGN/chN+OoZ8ibsZbuSZCNyN3t40tOyXlz1BA== X-Received: by 2002:a2e:8115:: with SMTP id d21mr2937651ljg.167.1590578788647; Wed, 27 May 2020 04:26:28 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id y17sm628702ljm.133.2020.05.27.04.26.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 04:26:28 -0700 (PDT) From: Anders Roxell List-Id: To: soc@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, linus.walleij@linaro.org, Anders Roxell Subject: [PATCH 4/5] power: reset: vexpress: fix build issue Date: Wed, 27 May 2020 13:26:07 +0200 Message-Id: <20200527112608.3886105-5-anders.roxell@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200527112608.3886105-1-anders.roxell@linaro.org> References: <20200527112608.3886105-1-anders.roxell@linaro.org> MIME-Version: 1.0 An allmodconfig kernel makes CONFIG_VEXPRESS_CONFIG a module and CONFIG_POWER_RESET_VEXPRESS builtin. That makes us see this build error: aarch64-linux-gnu-ld: drivers/power/reset/vexpress-poweroff.o: in function `vexpress_reset_probe': ../drivers/power/reset/vexpress-poweroff.c:119: undefined reference to `devm_regmap_init_vexpress_config' ../drivers/power/reset/vexpress-poweroff.c:119:(.text+0x48c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `devm_regmap_init_vexpress_config' make[1]: *** [/srv/src/kernel/next/Makefile:1126: vmlinux] Error 1 Rework so that POWER_RESET_VEXPRESS depends on 'VEXPRESS_CONFIG=y'. Fixes: d06cfe3f123c ("bus: vexpress-config: Merge vexpress-syscfg into vexpress-config") Signed-off-by: Anders Roxell Acked-by: Rob Herring --- drivers/power/reset/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index 4dfac618b942..f07b982c8dff 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -191,7 +191,7 @@ config POWER_RESET_VERSATILE config POWER_RESET_VEXPRESS bool "ARM Versatile Express power-off and reset driver" depends on ARM || ARM64 - depends on VEXPRESS_CONFIG + depends on VEXPRESS_CONFIG=y help Power off and reset support for the ARM Ltd. Versatile Express boards. From patchwork Wed May 27 11:26:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11572637 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 971A192A for ; Wed, 27 May 2020 11:26:34 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 9245620873; Wed, 27 May 2020 11:26:34 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 45A6D207D3 for ; Wed, 27 May 2020 11:26:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XsUGywVb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 45A6D207D3 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=anders.roxell@linaro.org Received: by mail-lf1-f68.google.com with SMTP id x27so14220804lfg.9 for ; Wed, 27 May 2020 04:26:34 -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=7O70g2lJGWAJBSxv7+BPv+EgaUlJHCXJMM3QrFbfLoU=; b=XsUGywVbPPu2a5crGLJmxPTCsuzR0OuIQ+aBzOOBv++1v3NKjBLrrjSSZcDpiYN0qf Dqa0KgBDDL2GMXstARbs0S3GGlmSB6moGoADwt2Gf9llGEkgAQoEEbIxpiCeugl/wXdJ 1Y7er1GA02R3sgkVvwl7nNkN/XKDaMMP9Wjvt0SWx7XmF54qZM7DmAzM4MJwI1dZ8eli ASI8yK3ag/j5xU4oDjT5/oP5EaLGYEpesbrFqrn6AVy/NiIea1s2hRKTrr2EHjKvVfgG 4J+BYiAZgDrSD/C3CkWmD+A/yT8MjSYIMj7StC2bFYg9auoVk0KpMirlMocizL+A561/ 0/0g== 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=7O70g2lJGWAJBSxv7+BPv+EgaUlJHCXJMM3QrFbfLoU=; b=gyNiqALzf56STSEu50XazrZjzVlFdtLsuH9x+HYn2+RUX7vlnss364pdzYd7NDWrwN V0znYPTnUUwiEzC969ZksjCoFvKVpOZ1+jxNaXACUsGi3D7H35wgiA2WEJyRv7MByEtz RV6liF2hEurzyfZ1TSbD8RnQjgv+x0EHqPTpstsRPDJCm0hRfA0DnOvp8Nw3P/nJoL/C DCwYv9zuqRG3VGo798zwp9FuOseCSVb2EaMNeUfXLu/SUAgfy7bWQaKGlXg7jFiMuyCL znjatOYk+dbfCayP3GZ16q252qm9Ol/VVNh/JxoKZslAnwgFi0QKqPFFrDaq2brsBTIL Q4eA== X-Gm-Message-State: AOAM532gxPohgRgFnw+jVbDb3uIznpWqNEJIAbypKCS4NwP41KBjMX2o v64fVDHqiS3d8Sv21OezItROCLSIfms= X-Google-Smtp-Source: ABdhPJxqhuM7NA8BFMzydGM+AFjiGQCKOMTJMKG2dfNheWXSg5exJmnEkRYX48DfquyDmwLY2gQZtQ== X-Received: by 2002:ac2:5604:: with SMTP id v4mr2364028lfd.124.1590578792196; Wed, 27 May 2020 04:26:32 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id n22sm627557ljj.138.2020.05.27.04.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 04:26:31 -0700 (PDT) From: Anders Roxell List-Id: To: soc@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, linus.walleij@linaro.org, Anders Roxell Subject: [PATCH 5/5] power: vexpress: make the reset driver a module Date: Wed, 27 May 2020 13:26:08 +0200 Message-Id: <20200527112608.3886105-6-anders.roxell@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200527112608.3886105-1-anders.roxell@linaro.org> References: <20200527112608.3886105-1-anders.roxell@linaro.org> MIME-Version: 1.0 Today the vexpress power driver can only be builtin. Rework so it's possible for the vexpress power driver to be a module. Signed-off-by: Anders Roxell --- arch/arm/mach-vexpress/Kconfig | 1 - drivers/power/reset/Kconfig | 5 +++-- drivers/power/reset/vexpress-poweroff.c | 12 +++++++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig index 065e12991663..4b54d8cf897d 100644 --- a/arch/arm/mach-vexpress/Kconfig +++ b/arch/arm/mach-vexpress/Kconfig @@ -15,7 +15,6 @@ menuconfig ARCH_VEXPRESS select NO_IOPORT_MAP select PLAT_VERSATILE select POWER_RESET - select POWER_RESET_VEXPRESS select POWER_SUPPLY select REGULATOR if MMC_ARMMMCI select REGULATOR_FIXED_VOLTAGE if REGULATOR diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index f07b982c8dff..8468d42b0198 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -189,9 +189,10 @@ config POWER_RESET_VERSATILE reference boards. config POWER_RESET_VEXPRESS - bool "ARM Versatile Express power-off and reset driver" + tristate "ARM Versatile Express power-off and reset driver" depends on ARM || ARM64 - depends on VEXPRESS_CONFIG=y + depends on VEXPRESS_CONFIG + default VEXPRESS_CONFIG help Power off and reset support for the ARM Ltd. Versatile Express boards. diff --git a/drivers/power/reset/vexpress-poweroff.c b/drivers/power/reset/vexpress-poweroff.c index 1fdbcbd95fc2..b1eef95132d9 100644 --- a/drivers/power/reset/vexpress-poweroff.c +++ b/drivers/power/reset/vexpress-poweroff.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -146,4 +147,13 @@ static struct platform_driver vexpress_reset_driver = { .suppress_bind_attrs = true, }, }; -builtin_platform_driver(vexpress_reset_driver); + +static int __init vexpress_reset_init(void) +{ + return platform_driver_register(&vexpress_reset_driver); +} +module_init(vexpress_reset_init); + +MODULE_AUTHOR("Pawel Moll "); +MODULE_DESCRIPTION("Vexpress reset driver"); +MODULE_LICENSE("GPL v2");