Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3032695pxb; Mon, 18 Oct 2021 07:00:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf68vpdBfKOd0JNUu/7TVwgrDUeZbaCYNrr/ZPaR+bJKU3nHaFkJ9nU3mO19Cn9snAC7Ev X-Received: by 2002:a17:906:eb05:: with SMTP id mb5mr31082305ejb.88.1634565609859; Mon, 18 Oct 2021 07:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565609; cv=none; d=google.com; s=arc-20160816; b=qLApeB8lTxBwuCiCgtem2eUunxW/NnKnsdbGRx3/FJh4aw48AQbWTfIufoWytHvi4M OCw+VKj3u9dKzLDkFVHCJ8Xa1v/utiMyTn63G0/Vrs251U+vilWuVdEXLiCuIjIYDE1I 0Hnzj6OaFOQOYEG9ytbdgBdAH0wowyTQljmSoK1wwDhqMcuyf78s9s4WR+vaG73KRnBW 5XQ4YGF/JtCIWZaQvhQWEjq8zQAXS4C7mLDb6cyPJiyj6GquXaXlOKbJgnsGYizP4EoD BJrebKOISWC+fJH47CutzQpia7CmdMLUoA9N+v8Busqgvp1aVcdGup8l5h0ZnfH9F1yD eulw== 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=Odj9/R53lMr5hwP0kaA1qj71h3iG8ItUrv0fbFHpK7o=; b=CE1XXcwDgIEq7qpzS7YcU/CfpWfNnQm3V0xOKMESkz5pmLUIT09FEC/2GyBk/1Ubqq Fy+9gtW5naxfoBcYcb/kTFnHgNLRKIzshmZYMFePZvlz48Gne3SMW0kwDdhKMhlnZ73B 1RCpJDqscoiblAiqjLv2OTGhLqzwN/cjDkH/ffXFJ+Lq+Jf5VoMjP7PrqYiI3eqg+gzq 2knedMaYLdSSjuDDxQl30ZPEkyi3vF8NSwaShg4qreN7ZcWctN3uQy6bwfHlIbc7K2Ph aRYtiK8drFJ1Bjrvcp+qwcKK42kO1RUp35vNgXUrlkhm8LYpNsiFTL+Yu+Y88g1DJlmj XprQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yTzm4lVM; 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 b11si19796718ejg.467.2021.10.18.06.59.44; Mon, 18 Oct 2021 07:00:09 -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=yTzm4lVM; 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 S234223AbhJRN76 (ORCPT + 99 others); Mon, 18 Oct 2021 09:59:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:58170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234304AbhJRN5z (ORCPT ); Mon, 18 Oct 2021 09:57:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E61306139E; Mon, 18 Oct 2021 13:41:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564468; bh=rEet7YUxuIXeiVZf3/YE6pPboeMS3BSY1qV4RzFQQlE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yTzm4lVMy0BUXetqWNeprlUrB8ZG1Q/WvMftp8ziVpba2udnulJCUgF3bbcicWAqT s3TDO1kG1bxWYkijEGLbnVA6iXdBjdVRE6Rn7QzqKUFzUKSu/4X1Gd43gMJ6zeSDRQ 4OJI9UwVkpke7GQVjEFsnjVUhlzzQxMAG5i8K4nc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Brown , Linus Walleij , Bartosz Golaszewski Subject: [PATCH 5.14 099/151] gpio: 74x164: Add SPI device ID table Date: Mon, 18 Oct 2021 15:24:38 +0200 Message-Id: <20211018132343.887300062@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 be4491838359e78e42e88db4ac479e21c5eda1e0 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 a SPI device ID table. Fixes: 96c8395e2166 ("spi: Revert modalias changes") Signed-off-by: Mark Brown Reviewed-by: Linus Walleij Signed-off-by: Bartosz Golaszewski Signed-off-by: Greg Kroah-Hartman --- drivers/gpio/gpio-74x164.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/drivers/gpio/gpio-74x164.c +++ b/drivers/gpio/gpio-74x164.c @@ -174,6 +174,13 @@ static int gen_74x164_remove(struct spi_ return 0; } +static const struct spi_device_id gen_74x164_spi_ids[] = { + { .name = "74hc595" }, + { .name = "74lvc594" }, + {}, +}; +MODULE_DEVICE_TABLE(spi, gen_74x164_spi_ids); + static const struct of_device_id gen_74x164_dt_ids[] = { { .compatible = "fairchild,74hc595" }, { .compatible = "nxp,74lvc594" }, @@ -188,6 +195,7 @@ static struct spi_driver gen_74x164_driv }, .probe = gen_74x164_probe, .remove = gen_74x164_remove, + .id_table = gen_74x164_spi_ids, }; module_spi_driver(gen_74x164_driver);