Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1648290ioo; Sun, 22 May 2022 22:58:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZJwBARHT0ZTUs5zwL5HtOfMrxqk08pX289jW/04hlVXqXoc0QFmpS9KKUEbKK5Tqc8sTO X-Received: by 2002:a17:902:6505:b0:162:6c7:7236 with SMTP id b5-20020a170902650500b0016206c77236mr9984078plk.96.1653285505894; Sun, 22 May 2022 22:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653285505; cv=none; d=google.com; s=arc-20160816; b=gUfQbX40NDtzMfliCF+CkxxYBRrCP+BeJO5PmZn/WLC7jUeBe99dW+f6N96xeGUyTR Sz/rWzK7gB1SsJlKoMB5XzvljSsC68NZZa5iiWvBhpdi10FB0ZNMt7Wzq1LJE1hEpyx+ xcv7JxWFwFS0pN5NJx7ORVhoOQ9SwJlUzK2+OoHwsdzjttxzUtZ+RmZ/97/gqZYAuynM FhuJM8J9g5bH6nanBa4aYAVy09TcZ8zuXQGCNtPqapW1unh34lne7iRnHN771Gbme/oS ELekaA6TrJWHh5Y/NkCw9AGkOMzmY7wCPfon1obWqvrJSypO1wQ2gF3K+RM/VXa1H/js Dwlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3hmYwiverMb1N0J61Fi+8bzNM2DByfoLQaNKfPSLJ9k=; b=nOdElwo9WmCuSIpF8r4buFMpAxPoFzNNkILn4jrtl00ZGJHqksIe4ZTgnSxJ2NdD1f v07dQlWgYhSGQS3hJgx49Uv/wMy7kotfJiK8Z6LQ3GtCMhvQJI7iN8mfPplpqLMcoQ0e XEcEURRA5zrPHtrvPBFadzBEEpC32k6xgsZkhv6mXEV92wlTbSrybOoqTFHUnfUGqQJY oxVUuc2hRH8rOuCvShsIiXYxZNLZGwjW5o57zxV/V8fqUD2xDlvnVIM79HlbSVOs6Bcb ADW2S8HQ1wNDyYtV8eH5rn/5QYG/XyMNqvX383UlWaG5/jEb3kmRZhDK+bc76OFRkiwl ExLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=Ql9Sep6+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w2-20020a170902a70200b0015d17ba5b65si8666649plq.22.2022.05.22.22.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 22:58:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=Ql9Sep6+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 978862E9DF; Sun, 22 May 2022 22:53:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351201AbiETP5A (ORCPT + 99 others); Fri, 20 May 2022 11:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351212AbiETP4x (ORCPT ); Fri, 20 May 2022 11:56:53 -0400 X-Greylist: delayed 1389 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 20 May 2022 08:56:51 PDT Received: from vern.gendns.com (vern.gendns.com [98.142.107.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D70856B7CF for ; Fri, 20 May 2022 08:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3hmYwiverMb1N0J61Fi+8bzNM2DByfoLQaNKfPSLJ9k=; b=Ql9Sep6+YZYzeNT4c/2jhSUvgk pu0cmPSjxKPfjL6DXri1z6i9804pTe+syIlCTXqR/QGA7ydZOV0hX1S/ExFEsalEIuAHjRZkjXyoR l4brXxjojKL01gM75PAybV2oeWIcfcdpnsu1zbEAdiYJ9npo/V+Zq47sn7Wp4XvbIL9TuWmpxc3qz 38U6YAwnEWq5NKnTqAObF0dVKw2stIQQ/7vuC5Ix6qlVEDl5YukGLOzfrhmww72MeUmb/HoGlH72Y iZFsZ1IiFTZkmyaJlAYX0eZsylJvWO6hfUevE1LEK+B2UD0l+vXYoiV8YCe9CbU03g64AM8q4ml5C eU28VhJw==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:45970 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.95) (envelope-from ) id 1ns4d4-0003zy-OF; Fri, 20 May 2022 11:33:40 -0400 Message-ID: Date: Fri, 20 May 2022 10:33:37 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH] drm/st7735r: Fix module autoloading for Okaya RH128128T Content-Language: en-US To: Javier Martinez Canillas , linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven , Daniel Vetter , David Airlie , Geert Uytterhoeven , Sam Ravnborg , dri-devel@lists.freedesktop.org References: <20220520091602.179078-1-javierm@redhat.com> From: David Lechner In-Reply-To: <20220520091602.179078-1-javierm@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 5/20/22 4:16 AM, Javier Martinez Canillas wrote: > 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 > --- Acked-by: David Lechner