From patchwork Fri May 26 09:16:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 99420 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp340977vqr; Fri, 26 May 2023 02:40:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mnJVY4xSPTVpC+HsdLnhMxrYtXjKVXwsYsMJ5y9piNMcIodhFiXfWVN7YsKMcJa/wd6jl X-Received: by 2002:a17:902:db0a:b0:1ab:f74:a111 with SMTP id m10-20020a170902db0a00b001ab0f74a111mr1714002plx.63.1685094030215; Fri, 26 May 2023 02:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685094030; cv=none; d=google.com; s=arc-20160816; b=kTidH6sobLggkQXuuaQojIDR2xy7EVynq+lmuGXRowgeaK/kQaXTtm3ikt3pTqKuaY ziFFgw3f7P2gWqWnKDvEHWwoTPxj7WePO0T/3icht9JKusr245pBP256dmuHc9igW5qS BzMSEtx1EyFD5xMPuBMAMl8MfxbG9Tvp8LhHLVXNHMES4wRISg+qUxSJFYSZ4s767eVu xrziEIyjmmtSW92Wn6JUBqQGmS7W/b+1B5dr+n1Z3fzJlfzfPdV546e3KwbjDCHNQKXu cyZKsZMf7pY7fmeUTFtHkAL385Exa+riAc/5VDFXqOzsBKu8pW0F0fRnONKiXwz5newo VMiw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EWzUBCy7vzGqogVuyZ5yJAzEu1G5O9QInoWhgrwYp30=; b=a7lre+Uf3FJxGOk+KpOUWt1LKzKMSfJXb0F1D2xQjyOTvYoGZ4C8uw+7CpSaO+iUAK e0n5isMQqUD+It1QGzqUAiq4V0qbRcQm0kgveGTG3WYGczAttZHeEx7QoBNSfzDQIeMn naDIr8FwFjqhCZwPHOgN9W634C54xOOgIKPseoOokWwmbk8OS9i4wj5tKWZa4UTiO9Hj uXDiK6biaXRYsQPiutZ59MtTqMY5AI9rp+E2Y+7ep5Nw3vVT79ZiSJ5l2nyCJhSotWo0 8qG+LJTmSEm5QqwJU+Oa5+Fs3wMGVH9HeZcXUt6b75udB+rIbNQzo5bxjtGCtMRUE5aG E3GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jTWcsq76; 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 y15-20020a1709027c8f00b001a511254836si924054pll.89.2023.05.26.02.40.15; Fri, 26 May 2023 02:40:30 -0700 (PDT) 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=jTWcsq76; 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 S242988AbjEZJSs (ORCPT + 99 others); Fri, 26 May 2023 05:18:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242982AbjEZJSf (ORCPT ); Fri, 26 May 2023 05:18:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4199199; Fri, 26 May 2023 02:18:28 -0700 (PDT) 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 4C2ED64E6C; Fri, 26 May 2023 09:18:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C00CC4339B; Fri, 26 May 2023 09:18:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685092707; bh=yplqz7LFwT3BPxWbIqpL9l8Y9WXsW7gyYbieMHFZ63M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jTWcsq76uyaQnoYgyHHoExt5aJ9l71WeMSYJqjA+Nea9FCu+BNfMv3onXzEBlgm5m iM17yUp+/Pgm8SvDzV1+78+4a1UO53i3+dLhog7OPo74JVdR1/Np6OqfMu5i4iBi3g SN4iMUnqMx89sKl3wPDjpsFhGTDOXsMvhcnHcrjtaaYhUBvFhXE/y/cQposGdRG0i2 4R5B5aj8d91WhY+nHy0OndbyiGtvbrgRKSNy7TKbLJ/sk2pAX+7yCbNwKE+vyavdxQ XSAFsBfieJN1dwyGbD9mASHU1PzdZA2O4mmsanPq+CTDwms9MWwCoQrhK5vXWUe+ra fMsjAOHKQY9cg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q2Tap-0004Wb-4y; Fri, 26 May 2023 11:18:39 +0200 From: Johan Hovold To: Lee Jones Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org Subject: [PATCH 1/2] mfd: pm8008: fix module autoloading Date: Fri, 26 May 2023 11:16:45 +0200 Message-Id: <20230526091646.17318-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230526091646.17318-1-johan+linaro@kernel.org> References: <20230526091646.17318-1-johan+linaro@kernel.org> 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,T_SCC_BODY_TEXT_LINE 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?1766948653617375190?= X-GMAIL-MSGID: =?utf-8?q?1766949157706153170?= Add the missing module device table alias to that the driver can be autoloaded when built as a module. Fixes: 6b149f3310a4 ("mfd: pm8008: Add driver for QCOM PM8008 PMIC") Cc: stable@vger.kernel.org # 5.14 Signed-off-by: Johan Hovold --- drivers/mfd/qcom-pm8008.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/qcom-pm8008.c b/drivers/mfd/qcom-pm8008.c index 837246aab4ac..29ec3901564b 100644 --- a/drivers/mfd/qcom-pm8008.c +++ b/drivers/mfd/qcom-pm8008.c @@ -199,6 +199,7 @@ static const struct of_device_id pm8008_match[] = { { .compatible = "qcom,pm8008", }, { }, }; +MODULE_DEVICE_TABLE(of, pm8008_match); static struct i2c_driver pm8008_mfd_driver = { .driver = { From patchwork Fri May 26 09:16:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 99417 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp336167vqr; Fri, 26 May 2023 02:28:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4DbiTdyEvMTHdUhnCTcPiOS7UPKj3VOMS0BJEQ0LJQoXvNX5tH0ItZbtGpUyoCKsgPrI5g X-Received: by 2002:a05:6a00:1486:b0:647:b6c9:179d with SMTP id v6-20020a056a00148600b00647b6c9179dmr3064212pfu.21.1685093335147; Fri, 26 May 2023 02:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685093335; cv=none; d=google.com; s=arc-20160816; b=h2qpW4ULnF050djjZEOQsyRHWaSSRdyQ1gURiRgpew+3xMv7510achqoqRGdNo2oOC dn8TdQ+JG9TGxbb7olUeYzWSZ8jexnv3tZeDIMpds9W0O8rGX5hRyjNuC80KrnA392iu hA93T9JPdpmC/QLfDkQxzFdAFsNzWxumLgExADEvvYB+a7qgKqHWaiVaI66yiknHYxMg tAacVOaKm4wcvn9JBfO97xY5+IcNFSrhxhyK9j8jdyqL4SQTTJvOfV8PuDw50J2zKh/y lgLwGaow0Xge9dBo/DkDLBAs8JjFdWC+fj9c6aBgACKYafNc+D7K3ONhKEqudmQR4Lok 5tBQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oFpJzNeWP/yqWCswGZq2u/DugOVzeDeS9R7g7RX6Y5w=; b=P2xk0IE1M31fJpjpJ3QMMxQyO/RE9JilZAfJhGZfuZVUDzARhyMZJ4uvwoIB5DzwPB LFlW+miFdvc+C0r/O4JIQAWxiXFsYZlLNln8IuSseFZn9ynaCC5+YWJvOrzv08Kix9Q+ I7UjH1NCIgA3wtN2wI9h8OPjXycUqkHLhUaKYpTiFR36+VRi2OwWXoOlkKw9KbT97hpc NQ5QsB70J8HZwtES7zR7e1GmlkfRBtIG8ERd8ibXm3F7yF0ARRTQFbbgFijbA6zKAChH uG9NMKQq3nkaK7sUk7gGQV9CIGXCDobHwShMqUg0fV0Tdi/yi/52usxVCaCh+tRjiC2C 7FSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gZqHtfZ3; 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 v15-20020a63bf0f000000b0053eef60f942si2998372pgf.764.2023.05.26.02.28.40; Fri, 26 May 2023 02:28:55 -0700 (PDT) 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=gZqHtfZ3; 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 S242984AbjEZJSo (ORCPT + 99 others); Fri, 26 May 2023 05:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242655AbjEZJSe (ORCPT ); Fri, 26 May 2023 05:18:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA34019A; Fri, 26 May 2023 02:18:28 -0700 (PDT) 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 4B4B264E68; Fri, 26 May 2023 09:18:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F503C4339C; Fri, 26 May 2023 09:18:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685092707; bh=88/uGPpiYSu2UAheS3H0lRT6u8rFAc92NcdMxP7OLEo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gZqHtfZ3XpqX7zg1Nt1c3/AhkTEAnxg22bAYmodSiLWrOrg8/Rfq7AVVGXRhPEiJG pdII0jw/+xY2LNlRXpS8K/xjEbwPjfHho3nlvPE/wsWm5wNWHi1Fw61cLU5OGf8R6E KoKetT5p+UQumkW8QEx8V2LYYQfmblhv90Xhk3xQVAj8cvL76Dm4CZHSBRzrMT9Jp4 RErgqeUIFlG3MbcwgZ9j/SxJQiG8OAiPqQzQJNgNGZt2d3UNvqSgwnaktF2DCBBp93 0pWaVDtt2+v/QkHYUOKUYtmiBwdFPNj4/gQA29fCT8ssrDQGQ6wXR9O/mcABLmbq2r VQJMF4qtpLu8A== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q2Tap-0004Wd-7U; Fri, 26 May 2023 11:18:39 +0200 From: Johan Hovold To: Lee Jones Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 2/2] mfd: pm8008: drop bogus i2c module alias Date: Fri, 26 May 2023 11:16:46 +0200 Message-Id: <20230526091646.17318-3-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230526091646.17318-1-johan+linaro@kernel.org> References: <20230526091646.17318-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1766948429167578299?= X-GMAIL-MSGID: =?utf-8?q?1766948429167578299?= Prior to commit af503716ac14 ("i2c: core: report OF style module alias for devices registered via OF") drivers using OF matching needed an i2c module alias such as "i2c:pm8008" for module autoloading to work. Drop the bogus i2c alias from the pm8008 driver which was merged long after i2c core was fixed and whose alias did not match the driver name ("pm8008") to begin with. Signed-off-by: Johan Hovold --- drivers/mfd/qcom-pm8008.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mfd/qcom-pm8008.c b/drivers/mfd/qcom-pm8008.c index 29ec3901564b..c4cef3936ea3 100644 --- a/drivers/mfd/qcom-pm8008.c +++ b/drivers/mfd/qcom-pm8008.c @@ -211,4 +211,3 @@ static struct i2c_driver pm8008_mfd_driver = { module_i2c_driver(pm8008_mfd_driver); MODULE_LICENSE("GPL v2"); -MODULE_ALIAS("i2c:qcom-pm8008");