Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp2764484qtf; Mon, 12 Jun 2023 09:41:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ732mYXNz9o6Hns4HAatXN3YOD/3HSgwQGJsYtD7mvxJrMrTO86EBTraJN2wAZvIuQQLu4f X-Received: by 2002:a05:6a00:1a89:b0:658:cbf1:d05a with SMTP id e9-20020a056a001a8900b00658cbf1d05amr10480619pfv.3.1686588085207; Mon, 12 Jun 2023 09:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686588085; cv=none; d=google.com; s=arc-20160816; b=Qq7e04vePXyoUtTT9LA6Z1MiCl/L2mIHkq5iU+D8zcHsnfiBYqTappk9eSqOn43NBh bXU/1+RgHqJmBJccZISetznIj1r41YNoUuLIxTfKp2dL07A+LjTASipqIjX5eNtugoLH jJhKmzk8tL4vUMK0g8JvqqKFLlkYANxD2ioJU0nkoZ/GfOBY/HmDrEe1O0MjX7/vDdBN OO0Oz5nLGikPJwwBP/pkLW5XGWifM4jd6fa4lVQWO8Uo6SwYplq+2iqw4NM/Zz5kOYys VSsbGwo4mM6DaDVbvkyE8x6F4jU7PuTstkNs8Y1IUPVOrT+9mUh/e+iLK4AkAk3pL9qj 2j0Q== 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=0dH/oRTF+guHoZ2aCWN+cBBdc2GgeZgNnM5H0oi1HW4=; b=OiMdo1NUghZZ2wtnRt5zVgNfGrQPZEpcpg7PtdkUxP5vs1zJUbDP3BlkkjX+fdzQuJ f2RMe3I9Ag9GjDW4GoqfuIloGFRPvq5PVh56bDeGpSfO53r5Zw0NkhqGsZgdU/oGKOAH rVXQVelFjdvEP65BrcE2t1TaZb8dILKJ1TFYAF1Dsq9pPffiRI+T2eQrKpwq+sGgsEEJ L5zpjSrjHTpYeahukWYa3zKfnxOHfIIuvzwUiML6nZ1fBIO0ghZCV8Zbm7U9sqKI7FMu QZ0odFJygWXl7Hl7enZ3v+nDbJzf9NCsoZossSMzzld+CTMtbEQteF1rQCyqWecTljLN M05Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=DMtMgFCA; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed1 header.b=kFjPfBgF; 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 a25-20020aa79719000000b0064f78c32b85si4699168pfg.390.2023.06.12.09.41.09; Mon, 12 Jun 2023 09:41:25 -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=DMtMgFCA; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed1 header.b=kFjPfBgF; 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 S236307AbjFLPwY (ORCPT + 99 others); Mon, 12 Jun 2023 11:52:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232495AbjFLPwW (ORCPT ); Mon, 12 Jun 2023 11:52:22 -0400 Received: from mailrelay5-1.pub.mailoutpod2-cph3.one.com (mailrelay5-1.pub.mailoutpod2-cph3.one.com [46.30.211.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A002910CB for ; Mon, 12 Jun 2023 08:52:18 -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=0dH/oRTF+guHoZ2aCWN+cBBdc2GgeZgNnM5H0oi1HW4=; b=DMtMgFCAz8w7xuqqwYQEelOFxaeBNhQtvqYwwISUTOg8g2iShVN++VhldRLQdgcDAgvH99ZUi+oJp CwVxMrM7vajMBm9WqrSlplxhTAPwSVuEnkGTno6XKYuvIHAEFf2trhvCjt0tgZohDlZGk1cctDlKDy sZs/PNip22Gz1uuHwbDZ+dQbas6FDwiXHLJt+Ef99n4SGti2R0Kau+Vtm2gi1Jjsva1ATGOG7pShy/ OpN/jmoHycVOlVrUt1s/DaVTsMu1uHiejykIGIYDjIxg7EFpiYzHHh33eIev94IBXKB73gW1gQYE+C rFawV5zUMLGMnV1vsOHCAF3gsTQZRpw== 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=0dH/oRTF+guHoZ2aCWN+cBBdc2GgeZgNnM5H0oi1HW4=; b=kFjPfBgFI4g//7VhHuxMhjP+4sZby/YSx6Dh7J8cEwhi3J80mOiahDnmMFj548RhMJQlsKeOvepCH N2dDRd0CA== X-HalOne-ID: f48a10d7-0938-11ee-bd17-231b2edd0ed2 Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay5 (Halon) with ESMTPSA id f48a10d7-0938-11ee-bd17-231b2edd0ed2; Mon, 12 Jun 2023 15:51:14 +0000 (UTC) Date: Mon, 12 Jun 2023 17:51:12 +0200 From: Sam Ravnborg To: Thomas Zimmermann Cc: daniel@ffwll.ch, javierm@redhat.com, deller@gmx.de, geert+renesas@glider.be, lee@kernel.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, dan.carpenter@linaro.org, michael.j.ruhl@intel.com, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sh@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Benjamin Herrenschmidt Subject: Re: [PATCH v2 21/38] fbdev/radeonfb: Reorder backlight and framebuffer cleanup Message-ID: <20230612155112.GB1243864@ravnborg.org> References: <20230612141352.29939-1-tzimmermann@suse.de> <20230612141352.29939-22-tzimmermann@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230612141352.29939-22-tzimmermann@suse.de> X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLACK autolearn=no 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 Mon, Jun 12, 2023 at 04:07:59PM +0200, Thomas Zimmermann wrote: > The driver's backlight code requires the framebuffer to be > registered. Therefore reorder the cleanup calls for both data > structures. The init calls are already in the correct order. > > Signed-off-by: Thomas Zimmermann > Cc: Benjamin Herrenschmidt > Reviewed-by: Javier Martinez Canillas > --- > drivers/video/fbdev/aty/radeon_base.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/video/fbdev/aty/radeon_base.c b/drivers/video/fbdev/aty/radeon_base.c > index 972c4bbedfa36..8f2a527c26ebf 100644 > --- a/drivers/video/fbdev/aty/radeon_base.c > +++ b/drivers/video/fbdev/aty/radeon_base.c > @@ -2517,9 +2517,8 @@ static void radeonfb_pci_unregister(struct pci_dev *pdev) > > del_timer_sync(&rinfo->lvds_timer); > arch_phys_wc_del(rinfo->wc_cookie); > - unregister_framebuffer(info); > - > radeonfb_bl_exit(rinfo); > + unregister_framebuffer(info); > > iounmap(rinfo->mmio_base); > iounmap(rinfo->fb_base); The mix of spaces and tabs for indent looks strange in the diff. Consider to use the style of the surrounding code if you are going to refresh the patch-set. Sam