Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2096896rwr; Fri, 28 Apr 2023 06:14:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7LXsDeK3QxpCDJ4auoW+Rg7B683M8TCmoGko8vuJsjTZo8Y+jGgJWbLoh9K33UiyorUvNo X-Received: by 2002:a17:902:cec4:b0:19c:f232:21ca with SMTP id d4-20020a170902cec400b0019cf23221camr6347009plg.3.1682687657685; Fri, 28 Apr 2023 06:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682687657; cv=none; d=google.com; s=arc-20160816; b=jKi+m+sCz4ZwkXDRNoHgDRkSL/i1yPoWjQ9+1P2Rl3HYsVyNlbnm/BvgA/N9GkP7ZQ 656Zj/Hh094tTUkLsbCmI9cekCyV20lxFsNNyPJuHA4ud/RHLGjCBSce4o4RfzifuG7q ndxsp+K90cUQe4vyIRQ1PJCgy32jygzbnmCSulylmVX2lM/63LQ0dkgWTIhcfIfnCpbr xDKYj3yCzcuCZCjw7lFKhguPy659barotozbEtz7kiZ2IGPKhKewvxO+04L1qN61QMFr LZHtGP+wfvMhFtM3eIl0slLAUNIKNvZD9JHWZKpPuC7gd6yxVk5KBBeLf9mNRr3mdbPR WZYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=K3hI1/6PyaWFpzEBQJz+6tOnP/hMA6RM+an+N2/SAGU=; b=0JK1fzgYHvrQtOfLjS5oBpw3pDKga3HFWgJJ3KowEKXQI0lotG3hOXOcPSSEPXgMoG vm3nHChn1r1WJ+D+nTBxYSHuiZAp+JMpPpbLexO1lQPEGVOERWZWeytzCkgWHgsABBao cCG3PA0aShKZ2dIubBqpsQggrpdcO7EzC5uicS+qTbd7wxaAseQpUHH1/8V/fD4c53lC Jf6RnUdbzwt+jh2AqJ/ERVLBNWJNpYZxTOXTVFU0mwZbWpOWksW97F7jB4t1li10MPHl eaHO+pEg9jw9Uwesx0Q8n7fE6c05d6GhFriGUHugjok5zB4d82xDzxVUZhBrKX2NdAYw Z0gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=p3ndZrQK; dkim=neutral (no key) header.i=@ravnborg.org; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x2-20020a1709029a4200b001a922d1f4c7si20324957plv.60.2023.04.28.06.14.05; Fri, 28 Apr 2023 06:14:17 -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=@ravnborg.org header.s=rsa1 header.b=p3ndZrQK; dkim=neutral (no key) header.i=@ravnborg.org; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345750AbjD1NNt (ORCPT + 99 others); Fri, 28 Apr 2023 09:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346130AbjD1NNi (ORCPT ); Fri, 28 Apr 2023 09:13:38 -0400 X-Greylist: delayed 746 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 28 Apr 2023 06:13:36 PDT Received: from mailrelay3-1.pub.mailoutpod2-cph3.one.com (mailrelay3-1.pub.mailoutpod2-cph3.one.com [IPv6:2a02:2350:5:402::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98F612717 for ; Fri, 28 Apr 2023 06:13:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=K3hI1/6PyaWFpzEBQJz+6tOnP/hMA6RM+an+N2/SAGU=; b=p3ndZrQKMSUlzm/nDAnCwsGo9L0gGsWF75qxTZlsIwroX36ZzR9n/TqOk4Ikh1KZ1uEf801ySHAOB yuaU+Ld6Tw73sXVUTCxgTr+rQtcP3cQmoy6O/PS1W8Sw8U9Pz9QGbdm64v/oi2D93X9aS9pWDvQBjj 1loPbH8TJoA3VwFcCEH3fDeOHvFgiaivV98L8z4aVI/2AqW+CcNGaMH4Ja1wy5lJuo0gXHVO8OyZ+J /MQqwNKpEigOaL2YHWV6UAAtq1w9lPACg3xLRKCDc+ma3cU6cZxRVzOTH6WsG+3ThvFok4EbOK+CEe srZdeI7kmtl+ASR7D+jcke8Z2koxNkw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=K3hI1/6PyaWFpzEBQJz+6tOnP/hMA6RM+an+N2/SAGU=; b=MuIZq23kU+epw5Oh27NhFCj+lmErbvHXzjBgCVAf/M7xbtvvXoyNyi3h3ZVbeWRyRg+tHgMDHRmS6 X388u8sCA== X-HalOne-ID: 79fad2fe-e5c6-11ed-b78f-b90637070a9d Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay3 (Halon) with ESMTPSA id 79fad2fe-e5c6-11ed-b78f-b90637070a9d; Fri, 28 Apr 2023 13:13:34 +0000 (UTC) Date: Fri, 28 Apr 2023 15:13:33 +0200 From: Sam Ravnborg To: Thomas Zimmermann Cc: deller@gmx.de, geert@linux-m68k.org, javierm@redhat.com, daniel@ffwll.ch, vgupta@kernel.org, chenhuacai@kernel.org, kernel@xen0n.name, davem@davemloft.net, James.Bottomley@hansenpartnership.com, arnd@arndb.de, linux-arch@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-m68k@lists.linux-m68k.org, loongarch@lists.linux.dev, sparclinux@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 0/5] fbdev: Use regular I/O function for framebuffers Message-ID: <20230428131333.GF3995435@ravnborg.org> References: <20230428092711.406-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230428092711.406-1-tzimmermann@suse.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Thomas, On Fri, Apr 28, 2023 at 11:27:06AM +0200, Thomas Zimmermann wrote: > (was: fbdev: Move framebuffer I/O helpers to ) > > Fbdev provides helpers for framebuffer I/O, such as fb_readl(), > fb_writel() or fb_memcpy_to_fb(). The implementation of each helper > depends on the architecture, but they all come down to regular I/O > functions of similar names. So use the regular functions instead. > > The first patch a simple whitespace cleanup. > > Until now, contained an include of . As this > will go away patches 2 to 4 prepare include statements in the various > drivers. Source files that use regular I/O helpers, such as readl(), > now include . Source files that use framebuffer I/O > helpers, such as fb_readl(), also include . > > Patch 5 replaces the architecture-based if-else branching in > by define statements that map to Linux' I/O fucntions. > > After this change has been merged and included in a few release > without complains, we can update the drivers to regular I/O functions > and remove the fbdev-specific defines. > > The patchset has been built for a variety of platforms, such as x86-64, > arm, aarch64, ppc64, parisc, m64k, mips and sparc. > > v2: > * use Linux I/O helpers (Sam, Arnd) Much better, thanks! Sam