Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3029933rwb; Mon, 15 Aug 2022 16:28:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR5DsGQikz10aX9UP9oeAh2CxJxr0sJnj2UD6V4ltcRUdES7YgBjnlABhkFlCB2sM1dYw8vd X-Received: by 2002:a17:907:738a:b0:730:6d62:4ec8 with SMTP id er10-20020a170907738a00b007306d624ec8mr11885124ejc.590.1660606133126; Mon, 15 Aug 2022 16:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660606133; cv=none; d=google.com; s=arc-20160816; b=kBvkyO8KAqDHqm1EAmfpJmw0wOR+4aGt+O8UHqyfze+1pjbUcYWW2wZ6LAn7iYplQm m6QlgBBVeBRc/7o8acz/cE3ncGun09tjS/yvbClxdMISU6Kw2uCHIOhCh/rILDAbdZzu govLSSEjCvUUqbDXyn7Oua6q9JjZOIdvOqJKFYaDxroFcsplLiF7c9LdOQYP5MCeCf0K Rvhjnd/sJzbG9QTlFRQ2D3na41BvddTtWwdEnZbFLMpI7TPItRVPA4+cYLvKIAlkPSxB 3s/7ENr45FfP9WMz7k93aFYJyFWJ66lwAQ5Eo2Y0jZfizJNxM7Brb3Bt302Mm/XBmoaw 06kg== 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=/cuNjBIuvLNrp7iK1MJPtd8SCB0Blp3sUSuAljW0DUc=; b=dy6DnpLL6MINDFW/s+TIc+ID/RJRL7ahL+jwHePcV7mpfMbxBZvP8v9C/R9KphrAsd EAcA/SQB/Ejryg+lbSp9vhbLD1CHW6XG1izuim8mZYfIXle0Vsb3Io21yjrxr6w0RD4Z cr4r193WYLnBsenMVFU7tErPHnjZgE6odWGb+kgcXpyeBhcL8KooFQvb2TougNejPbhk 3trlXGUqQIC2wWKgOVmE2+8mo1qxhI6ztsex5Ir+2dDMRlVHJqXHjYzP98LwsC74n0LV tQqjE0wWYcs2chgqlEjjzAccYgsHgCXO27wC210rgeiARBixdSA35iwXEF2pL6OvEohd Yqgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2ZaABJEW; 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 wt11-20020a170906ee8b00b007305f8cc1d8si8990644ejb.819.2022.08.15.16.28.23; Mon, 15 Aug 2022 16:28:53 -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=2ZaABJEW; 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 S243857AbiHOXTD (ORCPT + 99 others); Mon, 15 Aug 2022 19:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347644AbiHOXPa (ORCPT ); Mon, 15 Aug 2022 19:15:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E265863F37; Mon, 15 Aug 2022 13:02:32 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 80B54612B8; Mon, 15 Aug 2022 20:02:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B222C433C1; Mon, 15 Aug 2022 20:02:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593751; bh=aDKi8r+Ka7824Zy81hOI8/sqQakOv5cZuDn04XHuXOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2ZaABJEWvuQsZvgBgR1XmbPZYD88XT1yr8GkPKKbu+hRt8OwY9ciJ6QVR9UpDbWtV p2Pu/h1g44IkOPn7rLSCWFi7g12C3lxjo6SBMMxT86Y6fdsIbS3puqA5lZ6mbEkpSn fScRiSThLkWNxxW44qDSBvtt/UGFZSHIcASkFmYg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Javier Martinez Canillas , Geert Uytterhoeven , David Lechner , Sasha Levin Subject: [PATCH 5.19 0320/1157] drm/st7735r: Fix module autoloading for Okaya RH128128T Date: Mon, 15 Aug 2022 19:54:36 +0200 Message-Id: <20220815180452.438851716@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: Javier Martinez Canillas [ Upstream commit 9ad6f181ad9a19a26bda73a7b199df44ccfcdaba ] The SPI core always reports a "MODALIAS=spi:", even if the device was registered via OF. This means that the st7735r.ko module won't autoload if a DT has a node with a compatible "okaya,rh128128t" string. In that case, kmod expects a "MODALIAS=of:N*T*Cokaya,rh128128t" uevent but instead will get a "MODALIAS=spi:rh128128t", which is not present in the list of aliases: $ modinfo drivers/gpu/drm/tiny/st7735r.ko | grep alias alias: of:N*T*Cokaya,rh128128tC* alias: of:N*T*Cokaya,rh128128t alias: of:N*T*Cjianda,jd-t18003-t01C* alias: of:N*T*Cjianda,jd-t18003-t01 alias: spi:jd-t18003-t01 To workaround this issue, add in the SPI table an entry for that device. Fixes: d1d511d516f7 ("drm: tiny: st7735r: Add support for Okaya RH128128T") Signed-off-by: Javier Martinez Canillas Reviewed-by: Geert Uytterhoeven Acked-by: David Lechner Link: https://patchwork.freedesktop.org/patch/msgid/20220520091602.179078-1-javierm@redhat.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/tiny/st7735r.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tiny/st7735r.c b/drivers/gpu/drm/tiny/st7735r.c index 29d618093e94..e0f02d367d88 100644 --- a/drivers/gpu/drm/tiny/st7735r.c +++ b/drivers/gpu/drm/tiny/st7735r.c @@ -174,6 +174,7 @@ MODULE_DEVICE_TABLE(of, st7735r_of_match); static const struct spi_device_id st7735r_id[] = { { "jd-t18003-t01", (uintptr_t)&jd_t18003_t01_cfg }, + { "rh128128t", (uintptr_t)&rh128128t_cfg }, { }, }; MODULE_DEVICE_TABLE(spi, st7735r_id); -- 2.35.1