From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCE3CC433EF for ; Tue, 30 Nov 2021 14:53:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243318AbhK3O5F (ORCPT ); Tue, 30 Nov 2021 09:57:05 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:58744 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243165AbhK3Oym (ORCPT ); Tue, 30 Nov 2021 09:54:42 -0500 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 sin.source.kernel.org (Postfix) with ESMTPS id 3F64ECE1A67; Tue, 30 Nov 2021 14:51:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95D45C53FC1; Tue, 30 Nov 2021 14:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638283880; bh=80k2unkoNIFUNsf3cclRS/rUZYh0wbgYncDKLOCD9IY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F3RnLI+v0bhpt2OT/wkLzgOLPvOvkXpvVMxWNrE3fkZHqwr/b5EZj6YmbjrIpZxsq LCTABaJUzse6qbiDQ4cG8D5VqaZT2OPltd2fax/wL7rOnGyDDy/oa5VXkEPLzlJoYy RpOHGD0RKkKdZFUHU0GnJpHRMdAcau1/EOtHCWRaFIx1G7bejSITGKPl7uEMvZ/+Dt gzzjRZB6z5AWkQenSDFM39JcCx/q8psngHuP6AzjdIcytnjHR54zHtm+WOJlbvvOKm 4a1K+2ip0hM8ktAVZWF09hRcNG/Dy+TJMTmcDBu/df0t8TXPh5x4n28CYWeQXsO0BF IAToYiIrfe0/w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jon Hunter , Ulf Hansson , Sasha Levin , andriy.shevchenko@linux.intel.com, akpm@linux-foundation.org, linux-mmc@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 24/43] mmc: spi: Add device-tree SPI IDs Date: Tue, 30 Nov 2021 09:50:01 -0500 Message-Id: <20211130145022.945517-24-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211130145022.945517-1-sashal@kernel.org> References: <20211130145022.945517-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jon Hunter [ Upstream commit 5f719948b5d43eb39356e94e8d0b462568915381 ] Commit 5fa6863ba692 ("spi: Check we have a spi_device_id for each DT compatible") added a test to check that every SPI driver has a spi_device_id for each DT compatiable string defined by the driver and warns if the spi_device_id is missing. The spi_device_id is missing for the MMC SPI driver and the following warning is now seen. WARNING KERN SPI driver mmc_spi has no spi_device_id for mmc-spi-slot Fix this by adding the necessary spi_device_id. Signed-off-by: Jon Hunter Link: https://lore.kernel.org/r/20211115113813.238044-1-jonathanh@nvidia.com Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/mmc_spi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c index 02f4fd26e76a9..17aad7ef0c7b5 100644 --- a/drivers/mmc/host/mmc_spi.c +++ b/drivers/mmc/host/mmc_spi.c @@ -1523,6 +1523,12 @@ static int mmc_spi_remove(struct spi_device *spi) return 0; } +static const struct spi_device_id mmc_spi_dev_ids[] = { + { "mmc-spi-slot"}, + { }, +}; +MODULE_DEVICE_TABLE(spi, mmc_spi_dev_ids); + static const struct of_device_id mmc_spi_of_match_table[] = { { .compatible = "mmc-spi-slot", }, {}, @@ -1534,6 +1540,7 @@ static struct spi_driver mmc_spi_driver = { .name = "mmc_spi", .of_match_table = mmc_spi_of_match_table, }, + .id_table = mmc_spi_dev_ids, .probe = mmc_spi_probe, .remove = mmc_spi_remove, }; -- 2.33.0