Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2230657rwl; Thu, 6 Apr 2023 07:32:33 -0700 (PDT) X-Google-Smtp-Source: AKy350a6pUAHBJ14ljkoQ/IZdpJidkV3TdEb6e09OQ+bmVexoczks3ykf+vvEjxmoRefqeQOUBB/ X-Received: by 2002:a05:6402:38c:b0:4fd:2363:16fa with SMTP id o12-20020a056402038c00b004fd236316famr4741138edv.41.1680791553669; Thu, 06 Apr 2023 07:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680791553; cv=none; d=google.com; s=arc-20160816; b=CUYQ+mbKR1ngdyzqyf6dyzNWNkTu3JsvrWN0dnYwHiaFR+mO9FeS4otJb/F4QyIigd KzC4UbACzB5b9pL1mx8Fb8TgwqPBrzI23HhPBnpU2Youh5KSA8mfcvcJmQUHiaTA2rAf ejg703noRoKhOnXTzPFzEEabaNdd6Ts59+3ivovPAi0k9fkNePpl4J6bT5R2+Oi7JRdW pKRcisSo6RDq96qimMkFbJ8Shs9a36ftEaDSZxMVaQOt/uzpLW6IQtZ7UgvHBs09vBb1 sPFBEgUDWhWut7niC8GiXGT1P8FPjnHut9ADCgLbHXCrqnxpdDqRoBrkr6eCM4virdrt 1W2A== 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=veOA8AlClIBeJMHHNJOZ9zPcPGl+YZKhfFQI2Qa6xGRB1AlGMl8iqN783sfvb7mlHV zFRIjb3EMTJVmLXNIr7SK/GOxms68liZwznpxkhwRuUuI6tLJecBvx5IAGjvoneF1sBC aBnpNB2V5ThepI7pz/Q1GCX8VBMX00O3O38/u1Lowhk15xbWSj7VmdLQ+G4p0OFtoGUP gG/BF6MCPZOdQyAHAPt4TLVJgfChVLEDsNyutF2vpCg1/fZADeV+k2oVBFWremqqSKx2 4EF0pzXSIR838eJuE/cNC25XaS5ByIz5OHIT3t5uXy2zfKumAvusKGW8RasshzdVuslz 6XVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=O3JIV9aZ; dkim=neutral (no key) header.i=@suse.de; 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 y5-20020a056402134500b004be12ce8b1fsi1292141edw.438.2023.04.06.07.32.05; Thu, 06 Apr 2023 07:32:33 -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=O3JIV9aZ; dkim=neutral (no key) header.i=@suse.de; 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 S239172AbjDFObW (ORCPT + 99 others); Thu, 6 Apr 2023 10:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236004AbjDFOac (ORCPT ); Thu, 6 Apr 2023 10:30:32 -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 428A58A5B; Thu, 6 Apr 2023 07:30:28 -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 A534222779; Thu, 6 Apr 2023 14:30:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1680791426; 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=O3JIV9aZj01dUREkBPcKX7DfFguBJ7m/21KVH9oG8SscYE8S6r7ULz39L8edo3LpmSO03i PwluFpaoZX+Zw0mCjqUU12biFiDsbbs/HD6akSKvH9O7xAUVSHlY7/mCGFQJ7sd9ctjZka vShl78zAZNoYK9CVSLaJYU7jYreOm6c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1680791426; 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=g8JGIz6AWpRXBcTMp6xH/eHWqY+ZUxE3jy74KIXX3XuXHW4vHCq8iXXwC95zBhbroL6Bvd vecpjH8GO4fPa/Ag== 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 44A5E13A1D; Thu, 6 Apr 2023 14:30:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8JPpD4LXLmS4LgAAMHmgww (envelope-from ); Thu, 06 Apr 2023 14:30:26 +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 v2 13/19] arch/parisc: Implement fb_is_primary_device() under arch/parisc Date: Thu, 6 Apr 2023 16:30:13 +0200 Message-Id: <20230406143019.6709-14-tzimmermann@suse.de> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230406143019.6709-1-tzimmermann@suse.de> References: <20230406143019.6709-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