Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp818485rwl; Wed, 5 Apr 2023 08:07:14 -0700 (PDT) X-Google-Smtp-Source: AKy350aq1iijXIfiY4+oOK4EmTQg7ESOZiSD5SsR8BIFgHKNvSIm6mRbN8yM9XQvkmDkx4eIxLAY X-Received: by 2002:a17:90b:1a85:b0:23f:680e:78be with SMTP id ng5-20020a17090b1a8500b0023f680e78bemr6336600pjb.48.1680707233871; Wed, 05 Apr 2023 08:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680707233; cv=none; d=google.com; s=arc-20160816; b=cX20r/q6efdtwE4+wJmfRdbnDMIPNBe5YG1D67TR3HmrEIzrNUjYVP/VJ2QyPyXzrP xtWRkmiywPjrsXgXIuIZ+UOLHYyvG9VE+b1Ph+dMJ63Pnqon1vIQ1gBAw7swfkG8xWf5 oIQ2LaOeTtXpOkuiRE34zfjW5/d7Z0LFpkh9ToCXFz2J4dsloghu/4O5OpzIJiLqvKl9 QyoHMKfeBYoLfbOpE8tBGA3ulfayKaB1uS3i0BQaUeiHLh3nOEuTPI9Lk6zhnhDvMSy0 HXK3KrNhUQ6Fwt+a8q1UL4abvxq91rH9iGSZ5l7Dlea5EOuyGI1cfxdOEbgosWdPSeRX QfMw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=clUDjDH/bPWQSIzDszYi3/oWFwNxlrGwwLdQNX68Lw4=; b=UVij4N5Y6DGcIRS40erq0qgvg8guDSaRnTM/qAVy7U0PaMAkavStn4rC47GwjoZvya 1LK7ZDJC4Rc8rZSnXUKYWNqk5XVfrpssFoEmRnOocj8MMfoNLl+sn9cyyBSKT+IKDvKz mytzBRayZufiFaVn4Aw2FiAMkMGbJPSw8DYbnZqE5tRhfvI3HqkvAfiuLP52jl3HOdxJ 0HFjcgs6McNkN1wwMJfoyTHCiI6rAeJuM9uEGl/+JVn41yPtr+meP39PYkG5PRD+1uHu fTJdAlpwc/jWVs3PYKI+L3T+C8FCHvFjBIBp6A4fONMWgpMz6fhdkc1q3LhqsGXoWitb 8VYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=SCCfYtik; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lx4-20020a17090b4b0400b0023a30502979si1516429pjb.155.2023.04.05.08.06.58; Wed, 05 Apr 2023 08:07:13 -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=@suse.de header.s=susede2_rsa header.b=SCCfYtik; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238797AbjDEPGb (ORCPT + 99 others); Wed, 5 Apr 2023 11:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238625AbjDEPGR (ORCPT ); Wed, 5 Apr 2023 11:06:17 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BED3BCE; Wed, 5 Apr 2023 08:06:04 -0700 (PDT) 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-out1.suse.de (Postfix) with ESMTPS id 46852228D4; Wed, 5 Apr 2023 15:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1680707163; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=clUDjDH/bPWQSIzDszYi3/oWFwNxlrGwwLdQNX68Lw4=; b=SCCfYtikyJntIkM9ayKnsR2gc1qIo9MhAAmFAvJeAABjvNkYsTyUuzl1P8Wcu+lw0QoH3n bDWOEpiXB6oUD7j4BpqFJSkY1eFEGZAGzWXNdaWMsJfLfFw+PlisVX+Xsvn626hsp7LT// dlGL+jnhOIq7igAIgvxF0gNHwVdhq3U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1680707163; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=clUDjDH/bPWQSIzDszYi3/oWFwNxlrGwwLdQNX68Lw4=; b=jD7ude7u+DdXewIRm2eoWHZxO2mneTJDmmt/Zt6iSKj9glRQCIoQc24gh8o0lB2uUOEwUk pYIhM25CQPBYxzBg== 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 CD27A13A10; Wed, 5 Apr 2023 15:06:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WGQwMVqOLWTPIAAAMHmgww (envelope-from ); Wed, 05 Apr 2023 15:06:02 +0000 From: Thomas Zimmermann To: arnd@arndb.de, daniel.vetter@ffwll.ch, deller@gmx.de, javierm@redhat.com, gregkh@linuxfoundation.org Cc: linux-arch@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, Thomas Zimmermann , "James E.J. Bottomley" Subject: [PATCH 12/18] arch/parisc: Implement fb_is_primary_device() under arch/parisc Date: Wed, 5 Apr 2023 17:05:48 +0200 Message-Id: <20230405150554.30540-13-tzimmermann@suse.de> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230405150554.30540-1-tzimmermann@suse.de> References: <20230405150554.30540-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 Move PARISC's implementation of fb_is_primary_device() into the architecture directory. This the place of the declaration and where other architectures implement this function. No functional changes. Signed-off-by: Thomas Zimmermann Cc: "James E.J. Bottomley" Cc: Helge Deller --- arch/parisc/Makefile | 2 ++ arch/parisc/include/asm/fb.h | 2 +- arch/parisc/video/Makefile | 3 +++ arch/parisc/video/fbdev.c | 27 +++++++++++++++++++++++++++ drivers/video/sticore.c | 19 ------------------- include/video/sticore.h | 2 ++ 6 files changed, 35 insertions(+), 20 deletions(-) create mode 100644 arch/parisc/video/Makefile create mode 100644 arch/parisc/video/fbdev.c diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index 0d049a6f6a60..968ebe17494c 100644 --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile @@ -119,6 +119,8 @@ export LIBGCC libs-y += arch/parisc/lib/ $(LIBGCC) +drivers-y += arch/parisc/video/ + boot := arch/parisc/boot PALO := $(shell if (which palo 2>&1); then : ; \ diff --git a/arch/parisc/include/asm/fb.h b/arch/parisc/include/asm/fb.h index 55d29c4f716e..0b9a38ced5c8 100644 --- a/arch/parisc/include/asm/fb.h +++ b/arch/parisc/include/asm/fb.h @@ -12,7 +12,7 @@ static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE; } -#if defined(CONFIG_FB_STI) +#if defined(CONFIG_STI_CORE) int fb_is_primary_device(struct fb_info *info); #else static inline int fb_is_primary_device(struct fb_info *info) diff --git a/arch/parisc/video/Makefile b/arch/parisc/video/Makefile new file mode 100644 index 000000000000..16a73cce4661 --- /dev/null +++ b/arch/parisc/video/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-only + +obj-$(CONFIG_STI_CORE) += fbdev.o diff --git a/arch/parisc/video/fbdev.c b/arch/parisc/video/fbdev.c new file mode 100644 index 000000000000..4a0ae08fc75b --- /dev/null +++ b/arch/parisc/video/fbdev.c @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2000 Philipp Rumpf + * Copyright (C) 2001-2020 Helge Deller + * Copyright (C) 2001-2002 Thomas Bogendoerfer + */ + +#include + +#include + +#include