From patchwork Thu Jan 26 13:30:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 4570 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp275357wrn; Thu, 26 Jan 2023 05:42:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXuifExEZVMZMsRI/j0YCTwl1CLBe5VQwE9AB4dadv+jbF7/bB6YLjcuAQiiuBwtg2Li37QK X-Received: by 2002:a05:6402:f20:b0:468:58d4:a0f2 with SMTP id i32-20020a0564020f2000b0046858d4a0f2mr44924889eda.23.1674740558915; Thu, 26 Jan 2023 05:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674740558; cv=none; d=google.com; s=arc-20160816; b=FD8Eflbqfrmif/OGuEXO3uuogoVIQ7Am60Mwi9T23DvolbNuG3f2QjsPzofKlGo9mt /SrZsb78Fdf66ezbeBRVE83laFfvLe6bePJpx3r4pmOcm48j/kA2SZmja4UkkXlR1Oho J+jwPxJCnZbe4uaSHMNww5qcaX6vEPF7/6USL2zUr+FcDeEOsWD9a5aySwVhPpKnf5RM S9rLBNYItgC0rL/9MMN8F+frb9cKgKAIiVkb9e1qAgWdXcU+5LZwZ5ts1OVgerwLAG+J D2Z9HMA2UZ30gee7aKOOkOb6+D5zHcR0JUeIAhqFTrkqAY3MooZe+L7dWGYI4ktY+Z7n 1EGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=CoO4i/aTyk0g4+Ab2YJDRMbfrCAzpIOFAmm9/grqWE8=; b=H2y9az1NJTpk9+3r2GU9LBxbTnmKaiOGeAksiODQ7XS8tmIdewVXFkP6gi7qzqgrYU ufWf6DEWmYipAleiUci6wCsoob0IN4Fwwbp5oAmyd6R+Cfdc3maYPwnvRq8Qp4jbBTVX 3p8C2ZF5SNMqo3m0Q/4L9bnNsmw8Le7lgoEdKQOv9n+IbNWplaoFLtp2J/VwaPmX667k aXY15trzjZdoomxNve0sQvQiZS7ecui9gPACjcgq/9mmsG1oF2Cc+hKXmwI5VUJO0mDH KxHzEUP+W0sSRSbvqBluLql93xIXlJW+Y6zOwWddQThllt57RHeHB7qz4ISWFqlAgH0g JkMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pyBubzjf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 24-20020a170906011800b0087859d78883si1257217eje.823.2023.01.26.05.41.56; Thu, 26 Jan 2023 05:42:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pyBubzjf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236941AbjAZNcg (ORCPT + 99 others); Thu, 26 Jan 2023 08:32:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236857AbjAZNcf (ORCPT ); Thu, 26 Jan 2023 08:32:35 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E495565BD; Thu, 26 Jan 2023 05:32:34 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 81A2A617EC; Thu, 26 Jan 2023 13:32:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE3F3C433EF; Thu, 26 Jan 2023 13:32:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674739953; bh=dZYhjLBi/PfRQMVe8P8hNYdier7KYYimYCEFOUOp6A4=; h=From:To:Cc:Subject:Date:From; b=pyBubzjfF8akyVx47yerXs6obztqc5t1FAmomf6bTb+n7f5zFyL+pccrJhpxnNsLt grHZ8oAqHc8i4oNt3B/ysYeEig+WI4H1SFuGYSQJEoQlEfHHD6/hxEvDYWUF3tkGss ogx1BE3WT44/ex/wBS7ho7+tqcLJA8hospfIlfrhbkGxVSvB4lXFQZlxuVOY1+zg4G nrdDaNKP7S/g5rwIx7hrrx+XoclfPvz3TDXiKBzviaerCtaWhaZTEt2ttHFLmJ/qoQ jVG5ez4dW1uspOaEV2Ajh/fr87JRYPqPjOIXR+WfFiouIY4fK4M8NbDqdUFtpkZL/g c1E370qdcpcKg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pL2Mp-0007Ai-Ne; Thu, 26 Jan 2023 14:32:40 +0100 From: Johan Hovold To: Srinivas Kandagatla Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/2] nvmem: qcom-spmi-sdam: fix module autoloading Date: Thu, 26 Jan 2023 14:30:32 +0100 Message-Id: <20230126133034.27491-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756092756511640260?= X-GMAIL-MSGID: =?utf-8?q?1756092756511640260?= The Qualcomm SDAM nvme driver did not have a module device table, which prevents userspace from autoloading the driver when built as a module. The driver was also being registered at subsys init time when built in despite the fact that it can also be built as a module, which makes little sense. There are currently no in-tree users of this driver and there's no reason why we can't just let driver core sort out the probe order. Note that this driver will be used to implement support for the PMIC RTC on Qualcomm platforms where the time registers are read-only (sic). Johan Johan Hovold (2): nvmem: qcom-spmi-sdam: fix module autoloading nvmem: qcom-spmi-sdam: register at device init time drivers/nvmem/qcom-spmi-sdam.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) Reviewed-by: Bjorn Andersson