Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2877932rwb; Mon, 15 Aug 2022 13:08:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6vxjiL9zJ/1Hfy4y2vwAqX2GWpigDvW8I71yQnxtS8XY6GiXO9nj0y99bBv1A9oNfWqxET X-Received: by 2002:a63:e24e:0:b0:41b:bfc0:139b with SMTP id y14-20020a63e24e000000b0041bbfc0139bmr15460818pgj.298.1660594134501; Mon, 15 Aug 2022 13:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594134; cv=none; d=google.com; s=arc-20160816; b=Dzw3sBfatrmtWNsAKva5FEYFY0Bx76VHytPd4fn/H6w79z0PDenNl1gY3VVPrAYxhQ w4Bllkp8f0bj30vUvYnvqYvSrkdoZxx2KP18zlK26fs6kpD5u2zOTvqP8YYnm2wcoOMQ Hkmkg8PUKqkpM5bEZX6w7Wh06vbJKHpxiIgTT9MOYIc5WclzMNj6ISPp59cUrX4QW1Vq YlqzwU6CO5nEKUGIatiP1e3ds2K2y0VKfZ82700H8V+vu0+9QABVYgSAAnub/EGfxiV8 crKItjLJC6o8cl3kxhdKIzWkNRTGbJW6qx/q5x9i4qgOrC14eaigdQgg8IQNrdfVANlP Mhgw== 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=tIwaYqcSwNpFMA/Y1rcR6is2cNQB9x00B3H1HBaCE9g=; b=OuDDVeis9zMjXE5BAkOMFLFl/s2MpgyGOT4sDaDEZcae2WlJ3OIkF8F+Lm++zTDp4D 93Hw13N8P5q+cqKPaqNodNDLitbYlmJBy70duxvg69AZHmwQbTRhfJmEVAWY+uLnwW/1 Zp1WZc46GvbN3Xe66M1Wf1sCO0kIPVHx7mmcoUmnY31c2S/xU3xYdUwv4kezw+16B1EO Gd/XpyB3VHHmrw0B/22H4CpJOKXxhGIO3xUo3flLPI481R2Fnevl7Wj/7e0vKOiSEC9M J4KDwJQDyfUj6leOsdR0kiuQOkPiv6mQ0zM0Pjw0yIFZ6XFQh1+tum0+I5bCuc7PwIrh b6IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZvUcyCd8; 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 j7-20020a17090276c700b0017086b1c40dsi10692009plt.400.2022.08.15.13.08.38; Mon, 15 Aug 2022 13:08:54 -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=ZvUcyCd8; 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 S1343617AbiHOTMd (ORCPT + 99 others); Mon, 15 Aug 2022 15:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343561AbiHOTIw (ORCPT ); Mon, 15 Aug 2022 15:08:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C36D39BBF; Mon, 15 Aug 2022 11:35:50 -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 8883CB8105C; Mon, 15 Aug 2022 18:35:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D24E6C433C1; Mon, 15 Aug 2022 18:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588547; bh=oN4SatVjTHyC2dGIr0dnQaeRRTBhraK/hcKFR13JZp0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZvUcyCd8nUKOSkQzLZSlsgYzXikv9/oXgiHHAAMo5c+FmV3/BPoahrzmQv9tH0vvu v0HPERDQmDHhKLq/KY3NW+fCRafTSn7yZ5GMb3zcBoxxCAkqdRUUmIWxyuhFem1mtQ yI0kpy0Q/xwFF0JYArWwsGtXQ2PsqirkjYvjlY/M= 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.15 439/779] mtd: dataflash: Add SPI ID table Date: Mon, 15 Aug 2022 20:01:23 +0200 Message-Id: <20220815180356.039213941@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 2b317ed6c103..9c714c982c6e 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); + /* ......................................................................... */ /* @@ -938,6 +945,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