From patchwork Sat Jan 9 02:10:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 12007893 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29934C433E6 for ; Sat, 9 Jan 2021 02:12:41 +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 E426E238EC for ; Sat, 9 Jan 2021 02:12:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E426E238EC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.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: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=Pod2aV8I5JzNLO7yYZhtGtXpwGufD3yVmR06JVAzOUU=; b=HDJcslX/IWcL0Kenz9Yc7YiT73 V/nBr0lUk99QMfmtPp2k8SJHFnvL82Zv+W4qJX1Uce5VZUs+huj5pJrerOaHW4nnMM2Uni1Ugaeg2 2E02IbZtI2clsOEwfUu9kImLeITyrWJuM3n7igXbu1RXkei60WS7RDBZjDf4X/EYBCVP/8Y5nFtZx bYt3iLuL1eKExoYh/IR7OrhRVovf5MJyRuats+s1rqYcEam/w3NPChj0x2Jq/8jboxnczznw3fTaV 73JQ+rih2Lf9qg9ly0DWUruT21t+JcWEDsa/wFY88VdmhbFx3HMBC9wLtFXVdz89EMuUPs/wWJ57f COQwHM1Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ky3ia-0003HY-Eb; Sat, 09 Jan 2021 02:11:04 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ky3iV-0003Gd-KF; Sat, 09 Jan 2021 02:11:00 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id EC761238EC; Sat, 9 Jan 2021 02:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610158257; bh=EDiuihkI2zHL3YX+YyvVNrWe26jYFlwF8QTuQEZCbkw=; h=From:To:Cc:Subject:Date:From; b=QygVfo2nV59Sajx3EWeE0ByXrAMFCYRfmPB9WAX072niACBy4umZ1FtX0N+B33xjr 5oQdrZcBwIxnGE3Q2wlH52ow98pTlepl2c5O/NF+/sAWETV7P2IijEWoZhallGIGX7 u9lD17bqxEacfJxZT8/Y2S9n3ftcg7D6Q0BZtFBYQvzxR6NteNtTobwhyCUqYjPqKy lrRlMISTXIwWN02VjH6wEt/gMul4dxghy4pwDu0aNgTygG4tbgkBQrVJYUri9Bmw71 t5U0gTppjRwuysce9jqeH1sTmBSo1e7QLapQVGo2tZLvxYHfJdv+IlK4BkcWHO8gz7 4MA+TCFvPPumA== From: matthias.bgg@kernel.org To: Liam Girdwood , Mark Brown Subject: [PATCH 1/3] regulator: mt6360: Add OF match table Date: Sat, 9 Jan 2021 03:10:44 +0100 Message-Id: <20210109021046.21907-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210108_211059_733947_75694379 X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. 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: Gene Chen , Matthias Brugger , Axel Lin , Matti Vaittinen , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger , Chen Zhong , Hsin-Hsiung Wang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Matthias Brugger Binding documentation mentions that a compatible is required for the MT6360 device node, but the driver doesn't provide a OF match table. Signed-off-by: Matthias Brugger Reported-by: kernel test robot --- drivers/regulator/mt6360-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/mt6360-regulator.c b/drivers/regulator/mt6360-regulator.c index 15308ee29c13..07cbb9bb3c09 100644 --- a/drivers/regulator/mt6360-regulator.c +++ b/drivers/regulator/mt6360-regulator.c @@ -445,9 +445,16 @@ static const struct platform_device_id mt6360_regulator_id_table[] = { }; MODULE_DEVICE_TABLE(platform, mt6360_regulator_id_table); +static const struct of_device_id mt6360_of_match[] = { + { .compatible = "mediatek,mt6360-regulator", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, mt6360_of_match); + static struct platform_driver mt6360_regulator_driver = { .driver = { .name = "mt6360-regulator", + .of_match_table = of_match_ptr(mt6360_of_match), }, .probe = mt6360_regulator_probe, .id_table = mt6360_regulator_id_table, From patchwork Sat Jan 9 02:10:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 12007891 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8A8EC433E0 for ; Sat, 9 Jan 2021 02:12:39 +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 63B41238EC for ; Sat, 9 Jan 2021 02:12:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 63B41238EC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.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=zOa4Kgjxcuy78CyEc0Ec7ybxq5ery9OaaZNaTuxQfRo=; b=rfodody2Q6QgB+kKl2BE3Oe6K qBSYUnRBwh/RB78ceqXbv4iDyrNfb35lfuhTV+sSzHyq27OJ50Gb8+HChsuTYVPP56BInKwnx2OHB lJzlzyWRQxu0omVZ0EFEzxVaHPZrjf7CsR3+TvOVxST2MhRir98sZhR+ZEdiXm4cXV1S5uL1RKvBj L8lZstDwHXPG2vAKdpppWcavTmyBrtdKSuue7FF88r9eJLJnZSWPW+RQ131nxFLzE6KZh4M22Mo0/ ejG8tqE6YQCU1iqozwm0oRX9Vm2NtSxRg8cpeOfS6ZfFxB1OnmOBC3naOf4L6wk1jKa8IDlgiVp9W XGks3n+/Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ky3id-0003IO-78; Sat, 09 Jan 2021 02:11:07 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ky3iX-0003Gv-6Y; Sat, 09 Jan 2021 02:11:02 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0DC6C23A60; Sat, 9 Jan 2021 02:10:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610158260; bh=J8F9GtnOw2YbAF+emi5C/TcN+YhRipufocVzCIIaAFc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jNxX+FGCIjAzQrWyPmXiZ8aIr1rFK2coB0JV+SW1iZx/WddvGjrji9i/XFkMHw40S 4Nj3NiqNvnAa+AG/gA61O0CDpFq1kuAqWRf4HnEerjnKyNZ1Eewkm32a9ccNkDKpv2 yZPxjQKo4y7dbe9C2Zw4xwWZGxiK1o8FI4oaFPlu3p4938ZLtw8eyxybttHYg77nQa nh8//v2RGfizZ0gX8n7zd7Yw0q3rPgdh6G3uvRZrUvuM/7XK80H3Lukd++Mqs7vAeZ KKXi+0+Dx+Nq1nRNRhEhF59SjiaFN1k4a/7utJeOeqgTrvHZsuLSHLD374JO2wNZ12 9C4oDVpiUp4dg== From: matthias.bgg@kernel.org To: Liam Girdwood , Mark Brown Subject: [PATCH 2/3] regulator: mt6358: Add OF match table Date: Sat, 9 Jan 2021 03:10:45 +0100 Message-Id: <20210109021046.21907-2-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210109021046.21907-1-matthias.bgg@kernel.org> References: <20210109021046.21907-1-matthias.bgg@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210108_211101_534865_8192AE93 X-CRM114-Status: GOOD ( 10.51 ) 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: Gene Chen , Matthias Brugger , Axel Lin , Matti Vaittinen , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger , Chen Zhong , Hsin-Hsiung Wang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6358 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .uevent callback report a OF modalias, but that's not in the module. Signed-off-by: Matthias Brugger --- drivers/regulator/mt6358-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/mt6358-regulator.c b/drivers/regulator/mt6358-regulator.c index 13cb6ac9a892..6cadb6d4dfe4 100644 --- a/drivers/regulator/mt6358-regulator.c +++ b/drivers/regulator/mt6358-regulator.c @@ -534,9 +534,16 @@ static const struct platform_device_id mt6358_platform_ids[] = { }; MODULE_DEVICE_TABLE(platform, mt6358_platform_ids); +static const struct of_device_id mt6358_of_match[] = { + { .compatible = "mediatek,mt6358-regulator", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, mt6358_of_match); + static struct platform_driver mt6358_regulator_driver = { .driver = { .name = "mt6358-regulator", + .of_match_table = of_match_ptr(mt6358_of_match), }, .probe = mt6358_regulator_probe, .id_table = mt6358_platform_ids, From patchwork Sat Jan 9 02:10:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 12007895 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAF07C433E0 for ; Sat, 9 Jan 2021 02:12:42 +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 A22FF238EC for ; Sat, 9 Jan 2021 02:12:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A22FF238EC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.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=QfDYqddkVxlf74LSxVSrhC1xt1siHLwmczBgjuY9rcg=; b=3OFL36UqF5t7XGH9SiHLrfNxG SriCjT7PzN0S4RQPD0PErNU87bpGItpkSHYMrzFx34fbhyV4eFs11cVO3J/cTk6RHVMo072Hv1iO5 xlrDiINPaI+VYnH5wVdd4SlSaCX6lmAvCJz+15QK/UH7hWSbYL4V4H8fo3gpGkbWC1beMviF2YU9s CVL4nkPnX5TrYXLFMLkadOFEXPEnQ0Ky6b6d5fOpLzsEqfv7hSyyQt3U6k4ftsCDf5+oaIjYUxWJp D+5H2g+PGph+Q9Y/qpZv7fpBgNJM1svsE650VYQriJ1b1Rta09FbUSszp2E/cDryi96vt92tOGm0R 6z1tdNMtQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ky3ig-0003J0-BR; Sat, 09 Jan 2021 02:11:10 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ky3ia-0003Hc-G2; Sat, 09 Jan 2021 02:11:05 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1D56F23AA3; Sat, 9 Jan 2021 02:11:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610158263; bh=t0IHG7i/rG5q0kGjKDEB6BMqF7jMIE84um+5xi949Sg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZcNUrJuDaDmSymaVrfjWxRc6dQbT/apZ7uMQHnllurftkrwnUMfSWCkCEpA3IoeFz 04mojUPlpllMMbu3qOT5iHQYrKBSmfpgw0tOvdrnWncb6uKN7XR6oVThIeOBEi9PBH uVazrZsTCzQ+cKriSdF2BQebHCTmtacSU8H/ljUc75qsabLFM3CE9vA31NNQy8TZF9 mRSaC3uj/pQc5QraBN5zFVyoeGJyRm/bzthR9v14Ih7tZ8OYH0O28znjsOPfRP5qPn /frNb2HaXJKavuZiDAlaCuStAe1lNIwTHW1pjfcjTNwTLyqlyMshYl99UEnPT7Z/+x uJg4a0HkHZ8Kw== From: matthias.bgg@kernel.org To: Liam Girdwood , Mark Brown Subject: [PATCH 3/3] regulator: mt6323: Add OF match table Date: Sat, 9 Jan 2021 03:10:46 +0100 Message-Id: <20210109021046.21907-3-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210109021046.21907-1-matthias.bgg@kernel.org> References: <20210109021046.21907-1-matthias.bgg@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210108_211104_785055_29AACA63 X-CRM114-Status: GOOD ( 10.51 ) 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: Gene Chen , Matthias Brugger , Axel Lin , Matti Vaittinen , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger , Chen Zhong , Hsin-Hsiung Wang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6323 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .uevent callback report a OF modalias, but that's not in the module. Signed-off-by: Matthias Brugger Reported-by: kernel test robot --- drivers/regulator/mt6323-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/mt6323-regulator.c b/drivers/regulator/mt6323-regulator.c index ff9016170db3..b3d84e95f051 100644 --- a/drivers/regulator/mt6323-regulator.c +++ b/drivers/regulator/mt6323-regulator.c @@ -406,9 +406,16 @@ static const struct platform_device_id mt6323_platform_ids[] = { }; MODULE_DEVICE_TABLE(platform, mt6323_platform_ids); +static const struct of_device_id mt6323_of_match[] = { + { .compatible = "mediatek,mt6323-regulator", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, mt6323_of_match); + static struct platform_driver mt6323_regulator_driver = { .driver = { .name = "mt6323-regulator", + .of_match_table = of_match_ptr(mt6323_of_match), }, .probe = mt6323_regulator_probe, .id_table = mt6323_platform_ids,