Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4492054rwb; Sat, 10 Dec 2022 09:13:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Mcr6RSmUd4bjGuZYBVr9MBB/o4qUmW3B9jjJjPKOLLL70+0tj4ppiR723Tm11JRu8Kyox X-Received: by 2002:a05:6a20:d387:b0:ab:62ff:9aff with SMTP id iq7-20020a056a20d38700b000ab62ff9affmr16936497pzb.22.1670692411863; Sat, 10 Dec 2022 09:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670692411; cv=none; d=google.com; s=arc-20160816; b=qF4nunNeBUdi2sECPj61zPHzkbRwbOCee1WG7IJk2tBFEGgxqILYetxDJexwcVhvLL FauXqhTi8cCznP6rbPKRfiD0vlD0R+3PtEbe3wodeBG8hT+rg6OLskA9xEMiS7dwyfw3 NM7RKGCO9TVMFwMJljwFejbUeyOfW1qGzpgeRoHDGP2Pk+mC6Mrg4GoXGNslmWTwtp/F I30RfEgbPZUrU5hxPLwhII3ijFmawRhHF0npp1lx0DCs/7HUh5Cp+KVVHzo1EB0ER44Y sZP90rkwgDo7uJA005CENC1RcapFv0jXD6RATD5W4UJXEwAJ1U857eTP4q8o041VaRXF M7hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=hULunELhZdtE1GkCID2SUUW9EZF1DKJ0BvrmvOkyd/U=; b=nkySCdKhBfYLS1SLKQOKoeLzrH8uwVT8KMdCQ683wxaBRnj8QtuxvAGylX3fVvV+Po DTDCP2JCJMQctpnpPTFIyTPyo55bhobNQ0/qR4/tFQ5d5Nbhc6OiTjBDkAzj67S+wgX7 ozsdBiDIX1u+AjB4yjnpODVUmU2X4qUv4swcdhdYd40gX0xeOf/+NV4wPET+cif3KuAX g1KFBrGXOf4TYULNY5IqHVqVNUzC6Q20qr/VVo5dBcyN5IwkgMVMRkoHJFDCY1jC0inX ewvi6GfjXHnSgKqwvUO/zarcC84el8Xuz/hVjS8nR3zn98hEP3PccN0iX8bDCV3CkjU+ TgXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=VX1bnl5U; 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=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a63f406000000b004772ea50c14si4841265pgi.171.2022.12.10.09.13.21; Sat, 10 Dec 2022 09:13:31 -0800 (PST) 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=@gmx.de header.s=s31663417 header.b=VX1bnl5U; 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=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbiLJQfe (ORCPT + 75 others); Sat, 10 Dec 2022 11:35:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiLJQfd (ORCPT ); Sat, 10 Dec 2022 11:35:33 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C66DD15A09; Sat, 10 Dec 2022 08:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1670690108; bh=hULunELhZdtE1GkCID2SUUW9EZF1DKJ0BvrmvOkyd/U=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=VX1bnl5U1jf13nWLdnNpuh9QmBQXFG9Rz4rVXr6BgCjuSx+R1MrVUyfgH1IZGIpV2 QZ0LWlxofK0NlVDMby3E6Z690cIjgsR1GEVQs18NCb9YYwYI4JkHT8sWTY1DcZsbum peZtMMBx8b96MDIGAR84eyDLf0M/MdNiGazENxbGkmL0Iq2iAoHKOPDfnNlwa3xrgL M1436TQaAvpUvh7JjoMOZmHjTNvuIsYVSSVM5vQoRp7eygO/zETPDfIrTgWlCwXCv2 JgQDtyFXCgvb62+bxrUcCxh4vxQ9CTDYfq+EjanGMR+FWUbC4huO01I23+mxz0jfWo kirS5+pOqdGuw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([92.116.157.120]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBDj4-1pESvq0s9e-00CjAD; Sat, 10 Dec 2022 17:35:08 +0100 Message-ID: Date: Sat, 10 Dec 2022 17:35:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH] fbdev: make offb driver tristate Content-Language: en-US To: Thomas Zimmermann , Randy Dunlap , linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Masahiro Yamada , =?UTF-8?Q?Michal_Such=c3=a1nek?= , linuxppc-dev@lists.ozlabs.org, Daniel Vetter , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20221126000401.25302-1-rdunlap@infradead.org> <46e8cf0d-ab47-59b1-6c87-53d2d63a5bf6@suse.de> From: Helge Deller In-Reply-To: <46e8cf0d-ab47-59b1-6c87-53d2d63a5bf6@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-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Lf1L8IT/nnq+8+F3n7A/5t0a7Kle1WjN17 iIA+mrK26YuFLQeZyzMGpC8bqgOiMKD0Vu+2lc1JDdHbTPWxb005pFuxLWqRprvItLeMvS15n R12WpKKYbW4kMQEqlIjCjI6ghT3Ip5kgrMvoPbk/j7Hd/+p+HCPBh86D8dKZPON37CwhbUURZ GDW35A== X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 On 11/26/22 14:40, Thomas Zimmermann wrote: > Am 26.11.22 um 01:04 schrieb Randy Dunlap: >> Make the offb (Open Firmware frame buffer) driver tristate, >> i.e., so that it can be built as a loadable module. >> >> However, it still depends on the setting of DRM_OFDRM >> so that both of these drivers cannot be builtin at the same time >> nor can one be builtin and the other one a loadable module. >> >> Build-tested successfully with all combination of DRM_OFDRM and FB_OF. >> >> This fixes a build issue that Michal reported when FB_OF=3Dy and >> DRM_OFDRM=3Dm: >> >> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x58): und= efined reference to `cfb_fillrect' >> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x60): und= efined reference to `cfb_copyarea' >> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x68): und= efined reference to `cfb_imageblit' >> >> Signed-off-by: Randy Dunlap >> Suggested-by: Arnd Bergmann >> Cc: Masahiro Yamada >> Cc: Thomas Zimmermann >> Cc: Michal Such=C3=A1nek >> Cc: linuxppc-dev@lists.ozlabs.org >> Cc: Daniel Vetter >> Cc: Helge Deller >> Cc: linux-fbdev@vger.kernel.org >> Cc: dri-devel@lists.freedesktop.org > > Acked-by: Thomas Zimmermann applied. Thanks! Helge >> >> --- >> =C2=A0 drivers/video/fbdev/Kconfig |=C2=A0=C2=A0=C2=A0 4 ++-- >> =C2=A0 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff -- a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig >> --- a/drivers/video/fbdev/Kconfig >> +++ b/drivers/video/fbdev/Kconfig >> @@ -456,8 +456,8 @@ config FB_ATARI >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 chipset found in Ataris. >> =C2=A0 config FB_OF >> -=C2=A0=C2=A0=C2=A0 bool "Open Firmware frame buffer device support" >> -=C2=A0=C2=A0=C2=A0 depends on (FB =3D y) && PPC && (!PPC_PSERIES || PC= I) >> +=C2=A0=C2=A0=C2=A0 tristate "Open Firmware frame buffer device support= " >> +=C2=A0=C2=A0=C2=A0 depends on FB && PPC && (!PPC_PSERIES || PCI) >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 depends on !DRM_OFDRM >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 select APERTURE_HELPERS >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 select FB_CFB_FILLRECT >