From patchwork Fri Jan 7 11:07:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 12706511 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB4B0C433EF for ; Fri, 7 Jan 2022 11:07:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346990AbiAGLHf (ORCPT ); Fri, 7 Jan 2022 06:07:35 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:50467 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232906AbiAGLHf (ORCPT ); Fri, 7 Jan 2022 06:07:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641553654; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+kcDM4DA7iF+2H6LBkZldn3r6QWbKOMJ1NrH2QklOIQ=; b=Mx4FXWdPZ4TiluYsosNBJOJLLQ4rwf2cYYAcc1CDWvqBFdOPDNf8SEqTHnaHI4GJdZzv/c sfKjCgXNW1zhiqUQd+NwCh9dQqvRAQyKd9XoLGpMd60JqphmLfJpFJKtbqDJgT/E0VSyn4 idjop+OcctuK3JsymcAurqIH3nDyNwY= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-8-fV5FVbL_OBKUgYkcVE3A3A-1; Fri, 07 Jan 2022 06:07:33 -0500 X-MC-Unique: fV5FVbL_OBKUgYkcVE3A3A-1 Received: by mail-wr1-f72.google.com with SMTP id v18-20020a5d5912000000b001815910d2c0so2137036wrd.1 for ; Fri, 07 Jan 2022 03:07:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+kcDM4DA7iF+2H6LBkZldn3r6QWbKOMJ1NrH2QklOIQ=; b=Tj4B00NjprJP6QzRdZZSnvaZtK4fkfgpHbc0h1SL1g8ljD9zFjtg3KXir2u7X6ecL1 CH+Y+EIrust8VybprPoLn5eBa5Z9BuEGQj9aFuqXoySV4tu02NX3g7HUhZOKncD+PJO9 a83GO+wqDugN5ZTlyMtHdU08YzFQpxYYwpnno+szXSO94zavITB6w+cPupcgAZdELTA5 KZT+PEH15asbr6qivnYtxNL6KlLd6gRGIhmzQqvb4N74mYG7Bn0WwqNHxF3ZslLNwgeP eEoPy3kI7YzzyckTXa5I8PqlaS/itt1PPV++zH9naCjYcO9jsePfIKKp/01RFsOYLaRg qN4w== X-Gm-Message-State: AOAM5338n1KRQKykWWERQ/cX3Rwd9BS5ZLQEB0ECzjRHhWakwwxBi5Y/ jkCmPh/lXeRZvg7d53URTaEqZMkijZRMnVO459yRE1Z6y4sX5PVKD5d8BAAMRofPJG/VaAmKfoS NDQ5vD7mot8v8kPWUKiZVSRU= X-Received: by 2002:a05:6000:1449:: with SMTP id v9mr54376476wrx.49.1641553652091; Fri, 07 Jan 2022 03:07:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtOPD/6pEBen2ILWzQHaAQuxOtuwbQ3rz4DnLfmgOAOVsFRE5K9lxV3eeCKmjU9fywMsfmMw== X-Received: by 2002:a05:6000:1449:: with SMTP id v9mr54376465wrx.49.1641553651914; Fri, 07 Jan 2022 03:07:31 -0800 (PST) Received: from minerva.home ([92.176.231.205]) by smtp.gmail.com with ESMTPSA id r9sm9337273wmq.18.2022.01.07.03.07.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 03:07:31 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Kris Karas , Javier Martinez Canillas , Borislav Petkov , Daniel Vetter , Greg Kroah-Hartman , Thomas Zimmermann , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: [PATCH 0/2] video: A couple of fixes for the vga16fb driver Date: Fri, 7 Jan 2022 12:07:21 +0100 Message-Id: <20220107110723.323276-1-javierm@redhat.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org This patch series contains two fixes for the vga16fb driver. I looked at the driver due a regression reported [0], caused by commit d391c5827107 ("drivers/firmware: move x86 Generic System Framebuffers support"). The mentioned commit didn't change any logic but just moved the platform device registration that matches the vesafb and efifb drivers to happen later. And this caused the vga16fb driver to be probed even in machines that don't have an EGA or VGA video adapter. Patch #1 is fixing the wrong check to determine if either EGA or VGA is used and patch #2 adds a check to the driver to only be loaded for EGA and VGA 16 color graphic cards. [0]: https://bugzilla.kernel.org/show_bug.cgi?id=215001 Best regards, Javier Javier Martinez Canillas (2): video: vga16fb: Fix logic that checks for the display standard video: vga16fb: Only probe for EGA and VGA 16 color graphic cards drivers/video/fbdev/vga16fb.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)