Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3091281rwb; Mon, 15 Aug 2022 17:54:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR6d8khr5jv0oXBqhBEQnpCGh9xbL4jYmFPTwPuMXr6TZHdj4q2NtGde41j9AP9PKaRpy39y X-Received: by 2002:a17:906:4fd3:b0:733:8be:24f8 with SMTP id i19-20020a1709064fd300b0073308be24f8mr12042674ejw.767.1660611296889; Mon, 15 Aug 2022 17:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611296; cv=none; d=google.com; s=arc-20160816; b=tj+N68HTCFExWrnc5/xgHbYP3AB6J5VBoMUcdj97beQ+mxd2LGyfTbRmmCyzyNpwYe cVI+VBSPVDVigvmH+6xtz8lnOBKiOK7oX2r9emLC4ZxFj7Cq9LgEOzqarP8Ug9Zn6NGl YQrno0IL4M/DvMlBi2j0zjjzQXdgPRq79wlPQEc1d17JIoEq4oQJ3rUQxW+9A0Mviwtq o6UaiZ6dJr+Yu1aacXPXJUBmdDXu4O2Lqczv/EuBxO4h//2u3gGOu+dp543Q0R2M83j+ zxCGBHdgx3A2VxroUhsOTKFZ+ALxcGP2ssmYXG1dwQ0veYykeuxluMIBD8vcestzYPm+ TArA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kEgjkWxzD7WkAKFxs028YtjupMds0XDtpz0bmFO5ox0=; b=JYwRZhb2g8HtJgoJLqG1piI2lLOYcnR2nWQKiCuYcIbfHReRgcO6wlzwVoZc8ge0SN FrQinA5AcIj0c+aXxw1rBOlKRBE6KpB1/fylPrbFN/9To5NduPabC5WyfualNc4gNI+C /9zu+iSFVlSK+Oxnh5Z1MdkiwVkEOrUu+vw3g8TRpf08HShMKhVMIruN0/rpayzVevij sFWJ5dEcBw2S0DoFc3CVAULP/K9UmNzbcJ36MT2adrzteHPC0ut9Y/4o4ZKnG110r+yf 1ImZpf5TGSZ4BcLRHg7eTY4TEjokeS6++sfoM2oz52PMZ8An5u8YSxjehNUCVWZ1T0vA WDGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dZDrizdn; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h15-20020a05640250cf00b0043bee43477csi9055266edb.576.2022.08.15.17.54.31; Mon, 15 Aug 2022 17:54:56 -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=@linuxfoundation.org header.s=korg header.b=dZDrizdn; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350744AbiHPASA (ORCPT + 99 others); Mon, 15 Aug 2022 20:18:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353011AbiHPAJr (ORCPT ); Mon, 15 Aug 2022 20:09:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F5191741AD; Mon, 15 Aug 2022 13:29:22 -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 ams.source.kernel.org (Postfix) with ESMTPS id 5AD23B80EA8; Mon, 15 Aug 2022 20:29:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86193C433D7; Mon, 15 Aug 2022 20:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595359; bh=bOmIgRM4vNz3Df9Jf/OuuxejBYT6qZkU/b0bYL8I7/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dZDrizdnsMRErkxuhlQw0CwwYrpPDXuMOcQ44meTBOh6RwC66CxnyvTCiD9OZLa1S a/LaPxGW2eO9wEghn65PtFz2xRxKi2cZoxMtBIlntSaqCm4DL0ulLlN0aIiUcEX9TQ bppow7XYtdf0Hc9rhxZogj+eX9EDP3BbhCMvVOU8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Brown , Miquel Raynal , Sasha Levin Subject: [PATCH 5.19 0740/1157] mtd: dataflash: Add SPI ID table Date: Mon, 15 Aug 2022 20:01:36 +0200 Message-Id: <20220815180509.082055892@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 From: Mark Brown [ Upstream commit ac4f83482afbfd927d0fe118151b747cf175e724 ] 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 an id_table listing the SPI IDs for everything. Fixes: 96c8395e2166 ("spi: Revert modalias changes") Signed-off-by: Mark Brown Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20220620152313.708768-1-broonie@kernel.org Signed-off-by: Sasha Levin --- drivers/mtd/devices/mtd_dataflash.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index 134e27328597..25bad4318305 100644 --- a/drivers/mtd/devices/mtd_dataflash.c +++ b/drivers/mtd/devices/mtd_dataflash.c @@ -112,6 +112,13 @@ static const struct of_device_id dataflash_dt_ids[] = { MODULE_DEVICE_TABLE(of, dataflash_dt_ids); #endif +static const struct spi_device_id dataflash_spi_ids[] = { + { .name = "at45", }, + { .name = "dataflash", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(spi, dataflash_spi_ids); + /* ......................................................................... */ /* @@ -936,6 +943,7 @@ static struct spi_driver dataflash_driver = { .probe = dataflash_probe, .remove = dataflash_remove, + .id_table = dataflash_spi_ids, /* FIXME: investigate suspend and resume... */ }; -- 2.35.1