Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2814303rwb; Mon, 15 Aug 2022 11:53:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR58qkomIJ7ymKSyWGGJSHUYpTYqtbg+b50VKitECR0BJBOaYTDj9pXz1vmJGLlafrttaq++ X-Received: by 2002:a17:906:8446:b0:730:ab78:2353 with SMTP id e6-20020a170906844600b00730ab782353mr11067845ejy.625.1660589618013; Mon, 15 Aug 2022 11:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589618; cv=none; d=google.com; s=arc-20160816; b=WS127ffE/01ESk2aK6/k9zMYzcJDN0lMZnX1CLfZeAGj6+D5FxdYKoCPk1tZRYSvgf wxTeOKdC1hpcRukYNMaMFidsPsZnwxd2BwpZU66a+9mdQrz5wh3FYygyBZHlGD9Hjka1 mLfB0I4HJc4J/SJvTgTuR5x4/qWezBWhN2iJLzMvDwSah6X2ryWHoUEnTU4LBou6G6fS vz5ijOU4a0/SSVfkgG2FEpVzoZk7lxsZvd2/IWNsAD8ui0cu6QO+ev7keyb+G2NmF/35 vCGNl9vu9044VHhHGXJ+HEYViElutHO1eKJvOkseoU/l94nAhzdDoP9MfrmgScS2L9IE kaKQ== 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=J+Lgh/KqLnOXvg2Sl9esWLEgwTsIrXmzksE/Nl/nw5c=; b=lYdo7MEK2T1rNPRCnsNFCJSdgdEiGpvzrWBOmchVt0RxYK4YO0707qpRbtNcj469Is bKIH/KHeBaTnmO7moIsiCBHu+PGppZ97z70Q1IknGEFY9V6IO5fjdMmzr3qc934lVBzA DyfUJnzVo7ylOMA++D89g6RhycJJPairzOxTksMjdSinAfj2tRpCYFpw+Ou/V02NME6z HrolmOeJ4FFpaczxhkGx16/fc4tClDYjGfzpcmbkaVHeBks7goQjxhErZeiHqPpcv5n0 nLrYtfo0yofIOxEbHslM1EGei61oTDdfSloIsYN2WNRwzB61HUp74uYPJvmXpNFxKJ+D AfSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1xj9JAYu; 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 dp15-20020a170906c14f00b00734bbe8d34dsi8532617ejc.747.2022.08.15.11.53.09; Mon, 15 Aug 2022 11:53:38 -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=1xj9JAYu; 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 S243514AbiHOSol (ORCPT + 99 others); Mon, 15 Aug 2022 14:44:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243927AbiHOSlm (ORCPT ); Mon, 15 Aug 2022 14:41:42 -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 58C962601; Mon, 15 Aug 2022 11:25:20 -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 DF4FDB8107A; Mon, 15 Aug 2022 18:25:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39596C433C1; Mon, 15 Aug 2022 18:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587917; bh=pnvaMLesXBJXsHLWxICNiZb97IBc/mzaCI8YP8hNkwc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1xj9JAYukJKxtqtXhgKhD/tbX0E8ADylRZazLnIZaijSf/X3kbrRa4F7GfBjof97G U15N2N495nkOLo8LZ3qDoUW5+xYNae9fT/kCF1ebdMBgjJDaQfkELbijrzDo3cBn7B 8fHUMr/3+aPpjxhpLVHSNEk8T89VaHo/lh9njtS4= 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.15 237/779] drm/st7735r: Fix module autoloading for Okaya RH128128T Date: Mon, 15 Aug 2022 19:58:01 +0200 Message-Id: <20220815180347.414913382@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: 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 fc40dd10efa8..713e4b286210 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