From patchwork Tue Apr 9 20:22:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William McVicker X-Patchwork-Id: 13623221 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 98DAECD1299 for ; Tue, 9 Apr 2024 20:22:27 +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:Cc:To:From:Subject:Message-ID: Mime-Version:Date: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=9ZFoV9esUlPRyhBfsq42P1+/3AcWyE2Q5bUCvA1PIKI=; b=yA6 EzTAJ8H/RJjKkFmTZ7bgkajJdG2Ex4p/0b40/+L19tP63eyQxNKxTeiijtIONJ62tpb5vE6M7ZXwL +tyC2v5b8uxgg1PonkGm4+DG3lWwsy/weeNqiZEHcpAlK8FcVgj8Ti469LebPTrvAEkT8/6r8XuJt HcD+wCiC7fDA1zCVAzX1DeTd1QdngX2a/5aCorCYmXlC9pCbAesdcqVZMhorjl60R44FsV+Mba81w BbvRt5IsXCbvapQgTz+26y7YKNx8zFX1CIczSUMV8oQZfrnxR4GVdi7pBCu+iXPFB+FeOWeacxQmM QLx0Mqgwad1pS6s8OeZiEbVzXHgbU+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruHyx-00000003hIc-0Hkm; Tue, 09 Apr 2024 20:22:15 +0000 Received: from mail-pl1-x649.google.com ([2607:f8b0:4864:20::649]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruHys-00000003hFe-3kAr for linux-arm-kernel@lists.infradead.org; Tue, 09 Apr 2024 20:22:12 +0000 Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1e2a5cb5455so62016205ad.2 for ; Tue, 09 Apr 2024 13:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712694128; x=1713298928; darn=lists.infradead.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=li70RG4leC6BXT61G6ins6TrGephnT1pmJh8LVW4448=; b=epBWJZOE0WxfW37iMY4PDzpNunVNqYVMItN9A809uIR8SLBt7R7VlFU0aIFSZZULrG 9Os8xL9ccl4+p47OoPuCAE659Yi/0iuEigBQAtjiPgzox5Z6SpXuRaVnKC4G3Axm7Pst Dx2iwe4Gu4pWPZDHndGBzx4pqLd3tVIi8aH++WlJX1/mLCntUqxK4UBqIbs1B/PDzLkv xxQqlXto++fDaEJwbxnzV973LIMUtMtRwhAecp469C6yCCauaRq+38HEc1y4gCh5Ba5D tWXKSXHkl3hLPAfSbo8uuFUc+7rPXd5Sbmk38GprOFBf/I6RUcZoh+LvkVWeT0tJwTOd IOfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712694128; x=1713298928; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=li70RG4leC6BXT61G6ins6TrGephnT1pmJh8LVW4448=; b=MgOwzuEEUK9NRu8Qg35dgPx0VzhyX5E0TLzcTqTUlVCOr/xOK4l+3s0J1G0WYhuA+m zvWDpNxr0oCeqjbOa3OYvne39sZXMoAs2xqdFcijLqxMx/smRmUrfBnh9HbUG40dwtWE UAH863VXGy3MCpwDJnVzEdeYkqcFhJZBQbPGp7szpm1kYkbG3pFCBeJG/haQt3VaVpXR dBncAjNCyibeequTfdqPAqKnzyZtyuZft+EWZdWmLHNR9NnLf7/sfnVSVBfq8k0ioDy7 YD5zjU+c8qhPbeY9yUBUHcAgHoKUPhY71ZlSsPFX+qgBQ56bUtnNWNUNGW3jT2xBdV+u xTsw== X-Forwarded-Encrypted: i=1; AJvYcCV4txZJE9xq/sDhBrA9OBUWLegdKwN0aRxKml9kk3aylAUXwb0B7Nd/QtP5k19vQPtcshQYIbb9WM93hGdFacHcLvbf82P2kCXTEWc7kiPiQLVbo6k= X-Gm-Message-State: AOJu0Yyl5aSU0BE31vpe3Pbi8+y+Ih9ozXTQ5VitYEDRyCzv5Ru8xJzI QYsyzqXxUfP9/A5TNPgJJ3Wdny8ypctyB0XiHoHD75S6S99i2TQp51KdNJbwilTHe3fq9t3mo5j SV697jHeKFIhQa9L/9o5BMakCeA== X-Google-Smtp-Source: AGHT+IFRUiwCI1bVLGrKHHupMeWnTyEsNBKU9AP3ld9A7X1GTUv6ZAcQK10ulcSFjVO9m9GOgSGuiYAPdF1BHs6+B/o= X-Received: from wmcvicker.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5ebe]) (user=willmcvicker job=sendgmr) by 2002:a17:902:f2c9:b0:1e3:e092:53b9 with SMTP id h9-20020a170902f2c900b001e3e09253b9mr29282plc.4.1712694127914; Tue, 09 Apr 2024 13:22:07 -0700 (PDT) Date: Tue, 9 Apr 2024 13:22:02 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.683.g7961c838ac-goog Message-ID: <20240409202203.1308163-1-willmcvicker@google.com> Subject: [PATCH v1] scsi: ufs: exynos: Support module autoloading From: Will McVicker To: Alim Akhtar , "James E.J. Bottomley" , "Martin K. Petersen" , Krzysztof Kozlowski Cc: Peter Griffin , andre.draszik@linaro.org, tudor.ambarus@linaro.org, Will McVicker , kernel-team@android.com, linux-scsi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240409_132211_040971_A38584C3 X-CRM114-Status: GOOD ( 11.14 ) 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 Export the module alias information using the MODULE_DEVICE_TABLE() macro in order to support auto-loading this module for devices that support it. $ modinfo -F alias out/linux/drivers/ufs/host/ufs-exynos.ko of:N*T*Ctesla,fsd-ufsC* of:N*T*Ctesla,fsd-ufs of:N*T*Csamsung,exynosautov9-ufs-vhC* of:N*T*Csamsung,exynosautov9-ufs-vh of:N*T*Csamsung,exynosautov9-ufsC* of:N*T*Csamsung,exynosautov9-ufs of:N*T*Csamsung,exynos7-ufsC* of:N*T*Csamsung,exynos7-ufs Signed-off-by: Will McVicker Reviewed-by: Krzysztof Kozlowski --- drivers/ufs/host/ufs-exynos.c | 1 + 1 file changed, 1 insertion(+) Note, I tested this on a Pixel 6 device with the UFS patch series in [1]. With both this patch and [1], the ufs-exynos module autoloads on boot. [1] https://lore.kernel.org/all/20240404122559.898930-1-peter.griffin@linaro.org/ base-commit: 2c71fdf02a95b3dd425b42f28fd47fb2b1d22702 diff --git a/drivers/ufs/host/ufs-exynos.c b/drivers/ufs/host/ufs-exynos.c index 734d40f99e31..1795860a2f06 100644 --- a/drivers/ufs/host/ufs-exynos.c +++ b/drivers/ufs/host/ufs-exynos.c @@ -1748,6 +1748,7 @@ static const struct of_device_id exynos_ufs_of_match[] = { .data = &fsd_ufs_drvs }, {}, }; +MODULE_DEVICE_TABLE(of, exynos_ufs_of_match); static const struct dev_pm_ops exynos_ufs_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(ufshcd_system_suspend, ufshcd_system_resume)