Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp890644pxb; Thu, 23 Sep 2021 12:50:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy85LieuV+9hjnT/+LX9BLt2epPWiyB0gAMluuOAwOwCFQYQ73/deJeKk0h7Pwj6f5HTiDX X-Received: by 2002:a05:6e02:1d8b:: with SMTP id h11mr4770342ila.94.1632426619089; Thu, 23 Sep 2021 12:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632426619; cv=none; d=google.com; s=arc-20160816; b=Kizl+WwGYO9sCpCJOeO4Dp2HzjzVdwp0Xl4xHiK/1wPWsoejRHsA1EnUHeA+4TJVkg txsQt+aMWXkuGzAtjiqMHbMYTquuBZBqDnt4DDZ8onwOFHFxkfMJOGh8uTuxOGacVaU/ tJo5d0OsJrznbpRCUuWzIVV5fPlDwK/LPgadY2XFz4VWQm5dQorON05nVYaVgyo4UrVg kAugo2If7mshtkiIdQzgu9K5wuM11Ce9gnPEA3d68A6BKIQPzPZDGQJ/vlZdmK90QsYr 3tWpnwCcoZNTgwTKX0iJ3MN1WzCsYEAGQo02ZCYG6oqkWB4NgQAYuz2afG67/lzNRFCC MyIg== 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=frZomAGTZFQhc7WLmnOKMYkxcXPJWg4w8rLX8hu7tK8=; b=Ce3mmFuwz1bBI8JgE7cbMRA97jvn+M8PnwwhL+8Xi9ZmTl7tMmoTiuYU0U2vPuLuz2 hif3YhqW2f0J2tlDrJVi3FoBQvNF1XZXTA4ACA5KTO25x+kqR0ksaQMC2W3AfadcPwVQ 0pnpHRIaJMTxMR6jjCpQitcRdfeyGy16e7yoyanoe8+8zoziip4poGD/WMmWV68nh4vq AfcN2rGECiLfHqJL1c8ylVQ0ZnbQhKq5MhFUKqmV8Tbt0ivm5wEoXg36aWOEpBRnyxd1 V2K3yYVBuDvNRCXYbFrpk0RF+2Y5mJITrsd0xgbxU6k1zL1v0IsklzGoHWuh8AHe4DJe PvSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T79cfkC+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n44si7129860jaf.76.2021.09.23.12.50.08; Thu, 23 Sep 2021 12:50:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T79cfkC+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S243014AbhIWTtY (ORCPT + 99 others); Thu, 23 Sep 2021 15:49:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:46734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243036AbhIWTtX (ORCPT ); Thu, 23 Sep 2021 15:49:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9A5B561241; Thu, 23 Sep 2021 19:47:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632426471; bh=tNTn5doza/MUdcrkZfi+2yHcLPGWqgBaaU9JXVCX+w0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T79cfkC+jgWtws/ibKWvyyFLP76A9LztI4MwaI70DYfUCSlvmWn9AyHc0z8oikruB vl0nBne1JkORynttFeO/GBt0Ha3WyoCwSUFeceZ/wCkfyrYb+mZZ2dIhIhVC14px72 D88pjUWEowNVXpq3MYXt8EcMRuvWLJphNLTJbdE0N3zgnn2yQEIDM6o8kX0YUYsP32 D6/4t+e3sN9S8kBkzfd+wxPyehEHfS24WUAnMqhf+kyi8nfkPJQnR4bPnV33cJRyE8 mpOda0XbXGO+l4J5oG/e+3jEu8lhId58SC5YzEXQ+e13rBWbq0f3sNpXYmVngnfAn4 dI5D+Dlb9RtCw== From: Mark Brown To: Lee Jones Cc: linux-kernel@vger.kernel.org, Mark Brown , Orson Zhai , Baolin Wang , Chunyan Zhang Subject: [PATCH v1 4/4] mfd: sprd: Add SPI device ID table Date: Thu, 23 Sep 2021 20:46:45 +0100 Message-Id: <20210923194645.53046-5-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210923194645.53046-1-broonie@kernel.org> References: <20210923194645.53046-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1497; h=from:subject; bh=tNTn5doza/MUdcrkZfi+2yHcLPGWqgBaaU9JXVCX+w0=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhTNmjWem47OHdKBk/9sQCTVZL/frMHOo2EeSf0C/w i2y++TSJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYUzZowAKCRAk1otyXVSH0IgzB/ 4k6+iQV6CTTWX+qHzuooCTxENzid1K+9ZAAVACkDTbkx9BOfDaFpJJ6hTUmgFt0UeA/Nh0h5t9V5Ix YQjRXEYUFJBdZjmoK9dORmN0rZSLvrivjAL4xmBOS7aWxtg5vlZrfibu1UxAjRtlaxemklZqxon0UO VJN5+8ye+gQ9kJ1NO38f3Key7/+rP/+HpVyBlUNvRQqZOVdruleakBm7UqqqGmpF9Us9u5AvF/CiUy MLZ37lDQaPFtGgV5HrsxTnxvFNaWpjwnAZa1BlNEQFtEMW5fmXCtn+Xhyjk2BHvhhcojh6bFxPX/8K pF3lcoPfN24b1M2rMMqXIvIaCRDYYu X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently autoloading for SPI devices does not use the DT ID table, it uses SPI modalises. Supporting OF modalises is going to be difficult if not impractical, an attempt was made but has been reverted, so ensure that module autoloading works for this driver by adding a SPI device ID table. Fixes: 96c8395e2166 ("spi: Revert modalias changes") Signed-off-by: Mark Brown Cc: Orson Zhai Cc: Baolin Wang Cc: Chunyan Zhang --- drivers/mfd/sprd-sc27xx-spi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/mfd/sprd-sc27xx-spi.c b/drivers/mfd/sprd-sc27xx-spi.c index 6b7956604a0f..d2d4c4b2087f 100644 --- a/drivers/mfd/sprd-sc27xx-spi.c +++ b/drivers/mfd/sprd-sc27xx-spi.c @@ -230,6 +230,12 @@ static int sprd_pmic_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(sprd_pmic_pm_ops, sprd_pmic_suspend, sprd_pmic_resume); +static const struct spi_device_id sprd_pmic_spi_ids[] = { + { .name = "sc2731", .driver_data = (unsigned long)&sc2731_data }, + {}, +}; +MODULE_DEVICE_TABLE(spi, sprd_pmic_spi_ids); + static const struct of_device_id sprd_pmic_match[] = { { .compatible = "sprd,sc2731", .data = &sc2731_data }, {}, @@ -243,6 +249,7 @@ static struct spi_driver sprd_pmic_driver = { .pm = &sprd_pmic_pm_ops, }, .probe = sprd_pmic_probe, + .id_table = sprd_pmic_spi_ids, }; static int __init sprd_pmic_init(void) -- 2.20.1