From patchwork Mon Nov 13 11:55:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 164442 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1147696vqg; Mon, 13 Nov 2023 03:55:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXFM8Vur6xH+2tLyPKBR5bSIhRwgFTkd+VEbMaFmBQnrxVmtlWorHMfcfzFw4NyHK5sG6O X-Received: by 2002:a05:6a20:12d1:b0:185:a90d:3628 with SMTP id v17-20020a056a2012d100b00185a90d3628mr4516269pzg.38.1699876530350; Mon, 13 Nov 2023 03:55:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699876530; cv=none; d=google.com; s=arc-20160816; b=vzmuq6Wcm0GUWWIJ0yHdLGQmjDPSbKq7SN36Ng4VB9cdU1i/wYMg9KU/Sk9364QAoB fqIzyQLytdHrZ5HgHvre4kM94Qenj8uAM49oDq2o2skPn4kq077cwnp3fRROdiyW2ulf DCF7SqJHIGyE1rloHeHSbMz5oF+CXzr0kxv27EkABXuSOK1dZbqNw8qbPKx+7tMnv9au nFmluZQ/SB3s14yyDyAJZ+paZ2DjdGLJiSQQmvPeXuLD18/9FdJnDWvRGBlytJZdpROw Lu6AmR9zu0iaX+a4sf7HflRr0hbYJhkettx7iQ6Ew3zVmOmwD91RrVLfm72VieiNbuUI W3ZA== 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 :organization:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=/5kYUV1rEFjHNEaAdgspwkitSoq5USt+2BcNwPIYOiU=; fh=JeYjYvZyAReszeuY4kjC7OLqtFnS1ATElhw2qi61KRk=; b=hwwcjyY2DRbRE1hWZdx4uKFBBCfFzFVoKwrP5HszydcqhtHl9LfRnAx3FZT65WC0l+ 62hCc2Eysiw/r8UoB98D6uviqiGZCaO7FyiXDrMwaqbD/eqM/ieNxd2xDGGNkDtk5lqb pu1CXNRtexIEdrTbUsU4R6uokSJiyJg8/i7TCXYHmfO9/6CLZQDJQLEJ27Sxo2mRG+YU dg/nTml4UOVmXgqOmWdBg14hZwEuLN+OK7bYPljrStTCfVlX4ps4o36lF4QXZ6XzPL6Y i2UhwlqGM7KbxiZ7LXjRDgSre4A+eax8FwDqkW+6JAYAFN/HYeIV8rzBnfKPE94Exu9D M77w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="Yg/aw22N"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e1-20020a170902b78100b001cc67fd5170si5054941pls.638.2023.11.13.03.55.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 03:55:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="Yg/aw22N"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3AB1680BD240; Mon, 13 Nov 2023 03:55:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230206AbjKMLzR (ORCPT + 29 others); Mon, 13 Nov 2023 06:55:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbjKMLzP (ORCPT ); Mon, 13 Nov 2023 06:55:15 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F3BDD6D for ; Mon, 13 Nov 2023 03:55:11 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 43F621F6E6; Mon, 13 Nov 2023 11:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1699876510; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/5kYUV1rEFjHNEaAdgspwkitSoq5USt+2BcNwPIYOiU=; b=Yg/aw22Nos0HVsCb5HEK5E32aSCmR06EFnT4UpNQTWPjFJ7uQbsNMaZf+hEzbZ2bqmWtKC uv1odWRywV3JDpiZvxhPzfHu6gMJWNgT7BiYbEYeSlc267cU0l3OeZwXOZE3gAAIHehEo2 HkG78RkdvantjYAuXd3CX/3KFlFei4c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1699876510; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/5kYUV1rEFjHNEaAdgspwkitSoq5USt+2BcNwPIYOiU=; b=x8udOIrW2UzPgkn0PE4X5AnRwBJXxDyIFtjNi4s5+TctjDfGMmnBKr29duhBys4vMbXFnG sec97xrJuw4HAOCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id EC15213398; Mon, 13 Nov 2023 11:55:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id JL/9N50OUmVcVwAAMHmgww (envelope-from ); Mon, 13 Nov 2023 11:55:09 +0000 Date: Mon, 13 Nov 2023 12:55:08 +0100 From: Jean Delvare To: dri-devel@lists.freedesktop.org Cc: Sui Jingfeng , David Airlie , Daniel Vetter , LKML Subject: [PATCH v2] drm/loongson: Add platform dependency Message-ID: <20231113125508.4dc755e8@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.34; x86_64-suse-linux-gnu) MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 13 Nov 2023 03:55:29 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782449733023546206 X-GMAIL-MSGID: 1782449733023546206 Only offer the Loongson DRM driver as an option on platforms where it makes sense. Signed-off-by: Jean Delvare Cc: Sui Jingfeng Cc: David Airlie Cc: Daniel Vetter Reviewed-by: Sui Jingfeng --- Changes since v1: * Use the architecture dependencies suggested by Sui Jingfeng. drivers/gpu/drm/loongson/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-6.6.orig/drivers/gpu/drm/loongson/Kconfig +++ linux-6.6/drivers/gpu/drm/loongson/Kconfig @@ -3,6 +3,7 @@ config DRM_LOONGSON tristate "DRM support for Loongson Graphics" depends on DRM && PCI && MMU + depends on LOONGARCH || MIPS || COMPILE_TEST select DRM_KMS_HELPER select DRM_TTM select I2C