Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3662646rwb; Sun, 25 Sep 2022 10:16:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Hu8bkCDWKM/lWuB6sp60EYwyo2kftHdQjD5qOIfeItwXMJwiOcw58sXiFfjp+pIovTWYX X-Received: by 2002:a17:907:96a2:b0:782:4072:19da with SMTP id hd34-20020a17090796a200b00782407219damr15147775ejc.398.1664126189619; Sun, 25 Sep 2022 10:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664126189; cv=none; d=google.com; s=arc-20160816; b=zq76TwlhZ5l6k9Nip4/BTiaFr/AQWsKNOgMY18d1en7twbiUNq286FhpOycWWBAV/H uSxl5hhJWbRP3BVa2xJ+SiZmagBkQCaB5AC5FmGBoyuVc8hH/s7nwKkbNQlKj4ULFK2v 0gLJ9pla0fJg1gUTnLs2rbXpz1Ss1S1Bo95w+HdFd7VxR/FEeCq1zR6xvwzrwSz2yqzd 9JvCnbUyGxxMI59NxMvQuhdENUPa98Yq4HpRTEAH5ZhmZYuQjsk5MvsXGPq46doz+xOx kb757KrUnDlCGrp8ebeOXD/SDjkvjvFuP437MW2MfpSKIutOxxD+eYos17AYNG8zBcF/ X8UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=whqa4IZ9E8eYRp5tpjI3xMjStmHfvrnT7dRhb5xOaos=; b=mNju8T4iRGGT5CBWnJCPW9B3HlZZmVZv92M8TDpcq2hU/peoBcc+fVI6WKiuxSNAk9 vCwop9hzmiEhpKCVJO9XGff3+ha2mO7SoeyjPbiLxerzCFDFtnDsdUk6eMge4VpKNzfb BDhjc+xuyvhOuLjAv/Ic5/OAbQLdUni1zjCNmH4mfldgMYGrLIE9EzX2ti+XN2UftdBz U2sz42Jg8iiYREXDVGOUkOwOvjKIUE7EzadNqELaK9tA2hXzaYkCmVfl2+x/zg6QnB2N l+ivrRgYmiQBiW7wn7Bhpa59Uxs+9Ay2Gw43VsFWH2vh1cHcERsM2XyxvoD50DT75u2d zlSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=d9L5BQzg; 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=fail (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 s5-20020a17090699c500b0073d68cb42f0si9994326ejn.717.2022.09.25.10.16.03; Sun, 25 Sep 2022 10:16:29 -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=@gmx.net header.s=badeba3b8450 header.b=d9L5BQzg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232770AbiIYQWD (ORCPT + 99 others); Sun, 25 Sep 2022 12:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbiIYQWC (ORCPT ); Sun, 25 Sep 2022 12:22:02 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CF45E0B3; Sun, 25 Sep 2022 09:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1664122895; bh=fI8v2MjLTWColJNckOi/CL8S2YaxkCPvzxue3zGfDQQ=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=d9L5BQzgHmgrTVpJly5w97+p1QcINxXisS07Hu4KdkpasB9ud7fGQHSw1rkzZytW1 UryFuYVvHSVXAgCKHM1/Oj1ZGkMiou2iSsj5XGe7YZw0YKs1Xnq5/XdsVtvTRIOFbS GgRQjalXWvWLx/euY3O5aQ9gLp39RnLF1MnKqxqk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.188.118]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MYNJq-1ohYsv34pW-00VQ5i; Sun, 25 Sep 2022 18:21:35 +0200 Message-ID: Date: Sun, 25 Sep 2022 18:21:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH -next] video: fbdev: tridentfb: Fix missing pci_disable_device() in probe and remove Content-Language: en-US To: ruanjinjie , zheyuma97@gmail.com, javierm@redhat.com, wsa+renesas@sang-engineering.com, tzimmermann@suse.de, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220922013709.3324521-1-ruanjinjie@huawei.com> From: Helge Deller In-Reply-To: <20220922013709.3324521-1-ruanjinjie@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:4C350QFUsyfxOBN9unp7HZnhW3cx3yY62B3+HaSeKy7Y83u0ETf wcxeMn461m2islOO4yVPWtwWOInz6mdQiukZsXTbijl/YJpgYVmT99qsd0XnNqHsB3gDYOo srmLQqX0Bz6d8wZc7h9BYlW9S+54WEcG3NoycQjXWJLJSvugJ+idhSSjyO+hOafZTxGmcjP mDuBZub5EeYy+u1Ff/SyQ== X-UI-Out-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PcF+iFhRtQ8U0WRPuq2cu0Eo3qCEG2ID7WK7LO70NLZ4pdvXYObzGgOmWJX+mmKWQ04NtiB SZj0BkDZjtMOl75MPNd5Nj6U7jRC4Py4VfH6zQAXg7vm+i7CB7utqGmQAe2BkFtX7l2H3Kq/7 Zj0skJ6XqiTFKM8h/0794dqrud X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 9/22/22 03:37, ruanjinjie wrote: > Replace pci_enable_device() with pcim_enable_device(), > pci_disable_device() and pci_release_regions() will be > called in release automatically. > > Signed-off-by: ruanjinjie applied. Thanks! Helge > --- > drivers/video/fbdev/tridentfb.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/drivers/video/fbdev/tridentfb.c b/drivers/video/fbdev/tride= ntfb.c > index f9c3b1d38fc2..7933e01aacc5 100644 > --- a/drivers/video/fbdev/tridentfb.c > +++ b/drivers/video/fbdev/tridentfb.c > @@ -1475,7 +1475,7 @@ static int trident_pci_probe(struct pci_dev *dev, > if (err) > return err; > > - err =3D pci_enable_device(dev); > + err =3D pcim_enable_device(dev); > if (err) > return err; > > @@ -1715,12 +1715,10 @@ static int trident_pci_probe(struct pci_dev *dev= , > kfree(info->pixmap.addr); > if (info->screen_base) > iounmap(info->screen_base); > - release_mem_region(tridentfb_fix.smem_start, tridentfb_fix.smem_len); > disable_mmio(info->par); > out_unmap1: > if (default_par->io_virt) > iounmap(default_par->io_virt); > - release_mem_region(tridentfb_fix.mmio_start, tridentfb_fix.mmio_len); > framebuffer_release(info); > return err; > } > @@ -1735,8 +1733,6 @@ static void trident_pci_remove(struct pci_dev *dev= ) > i2c_del_adapter(&par->ddc_adapter); > iounmap(par->io_virt); > iounmap(info->screen_base); > - release_mem_region(tridentfb_fix.smem_start, tridentfb_fix.smem_len); > - release_mem_region(tridentfb_fix.mmio_start, tridentfb_fix.mmio_len); > kfree(info->pixmap.addr); > fb_dealloc_cmap(&info->cmap); > framebuffer_release(info);