Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3030141pxb; Mon, 18 Oct 2021 06:57:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ9fndunOWuI9bBkavX3KYw+gDhX5dnz4YgonwW7PkozfvnkqBz3bsUYyTc5a07KClrbTa X-Received: by 2002:a05:6a00:c1:b0:44c:ec40:b47 with SMTP id e1-20020a056a0000c100b0044cec400b47mr29113425pfj.76.1634565446563; Mon, 18 Oct 2021 06:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565446; cv=none; d=google.com; s=arc-20160816; b=vQzi10fOkpnXtxqmggJMJCjAPaZ7QwH9dmnu4v+lya6QBJcQidLXGoWmvdLQ7E8fNB A8wFiyyaIYduoLZQRKK2RhiANNoM9DuXR1VSe2Eh6blR9/EV/hPo11/WazJWlQYxm0+l tCUgigHaCdCjPr3MEbvIRnnarfFUZUuLYJ2d0HJozqztjU6byT2hDqcYVIQoGVphHymu 03PnkH5jTInIDjjK85PF5WMrHmRrq+lSzHcFOeeUAbK3Y5SkzMHQUUkZFjafYo0aSC+/ iqP51Wy8C6oPZBXazG7ZGOc75SVPUVQCvEqXyglpXAyqGWs//ZBa+oBconoIFzoOrEwJ saZw== 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=pr+8OCAahM95eEddHEBVJ5+bfVFX+Y3jDokYAn6LZj4=; b=LIJcSAkCLyVlQaw6TuWXTNdqcdHYy3oLx6TNfEKG7oc2ghD/dFym8a8YaWBqwzie8l X9LnOh/ga3miUoSM2tumybr9oXvItPLsX3jUZdfCCUcDhH0mO8ClvKrlftV54YRGFHDP 8lhnqQO55BvDEmwy4LhrNx31jwFRSyYVRuN0DBAGmCq7Zesh+lopAtwV8TYHIzWQWElE Qajn1fiGDLAtTK8FAia4yDpQiiBv64FuZBsFt1J/9qgNUXokFq6DzNf46s55P3xfkpvT FkWwK35+YSnTf/54eApZgV4U2Iuv12iRFIdNNeOPMzH0NXpjmeJQvmHZnBE80d+a9XT3 lOsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rRZigrnz; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si6314685pfh.257.2021.10.18.06.57.12; Mon, 18 Oct 2021 06:57:26 -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=@linuxfoundation.org header.s=korg header.b=rRZigrnz; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234401AbhJRN6E (ORCPT + 99 others); Mon, 18 Oct 2021 09:58:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:56110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234398AbhJRNz5 (ORCPT ); Mon, 18 Oct 2021 09:55:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C5016613A1; Mon, 18 Oct 2021 13:40:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564422; bh=5uAmbIsyWlNJmxe5/Mf4Itd1jbhwgkNurGQCEKrmiCs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rRZigrnzY4xFegGcJp06o0ie/UKC++nxzEV6Rsqb5LiYHnUq0XFr9qSwEA8/W+dKC tGlMWdAX5hZ2lgY+aI0ADtGl7UdVs9NTQWLa+GP3Mqy6Y+wpUG/uoIuZalV7e24g2h G/LbqbfiJGOV91lB3a7n8bwHLH9KtXJzcUz8f3bg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Brown Subject: [PATCH 5.14 084/151] eeprom: at25: Add SPI ID table Date: Mon, 18 Oct 2021 15:24:23 +0200 Message-Id: <20211018132343.416133030@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mark Brown commit 9e2cd444909b3c93f5cc83463d12291e3e0f990b upstream. 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 Link: https://lore.kernel.org/r/20210923172453.4921-1-broonie@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/misc/eeprom/at25.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/drivers/misc/eeprom/at25.c +++ b/drivers/misc/eeprom/at25.c @@ -366,6 +366,13 @@ static const struct of_device_id at25_of }; MODULE_DEVICE_TABLE(of, at25_of_match); +static const struct spi_device_id at25_spi_ids[] = { + { .name = "at25",}, + { .name = "fm25",}, + { } +}; +MODULE_DEVICE_TABLE(spi, at25_spi_ids); + static int at25_probe(struct spi_device *spi) { struct at25_data *at25 = NULL; @@ -491,6 +498,7 @@ static struct spi_driver at25_driver = { .dev_groups = sernum_groups, }, .probe = at25_probe, + .id_table = at25_spi_ids, }; module_spi_driver(at25_driver);