From patchwork Wed Dec 15 01:00:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 12677185 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0ADDEC433F5 for ; Wed, 15 Dec 2021 01:02:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CFCA410E173; Wed, 15 Dec 2021 01:01:51 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2FB1F10E173 for ; Wed, 15 Dec 2021 01:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639530099; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2MqjWG1xfqU7ex1w07duXfO7CAxtpTTEsAHmOGPxr88=; b=O/KqVRDROzWoXPGfwmevL8rFPn4O+TazlarQj0uKp0tMApOkjk7ufxZqfzLBHvlamWtxbO ytIbxOUQkWBvEZg/HjaYLjlGddPiddXc4dMiwcKQpuVfeUL1QaP4n8bKhblKCNisWYyurP t3XD1ON4crv33gyqtMDaTzxKElEje80= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-126-tF6ub5cvNYmTa9lfeIdzyA-1; Tue, 14 Dec 2021 20:01:38 -0500 X-MC-Unique: tF6ub5cvNYmTa9lfeIdzyA-1 Received: by mail-wm1-f71.google.com with SMTP id j71-20020a1c234a000000b00342f418ae7cso13892326wmj.1 for ; Tue, 14 Dec 2021 17:01:38 -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:in-reply-to :references:mime-version:content-transfer-encoding; bh=2MqjWG1xfqU7ex1w07duXfO7CAxtpTTEsAHmOGPxr88=; b=xo8/oOZXh3cmDeW9XgtlhllBnhFpZm1SKY5TO3EYc/Y2okxRAGus/STu+9jrH+YCOw fwGAAlh2/yCGKcl6tNDSYxtSm8eDlLOVmwLMAvqbyqkpSudnxtEB+vCCSQSr6yZVlbIZ RD1Xj+g5G1AtWPedLCdcLOkVvSGmsPRxrPcPA1ot9o6YQmZMapaRv3bhhmUkhV+7zKC/ OQX8Im+8z3e0XBvs37hR/vSBa2m2qUpsgjd/tLkzw3LbdWsgIQNfxwMGACj7QkmOqLlk pqerqs2KvKLxfLl6hIwLheKDxkP/MgmeKJV8SgIbneBKqNhpQOBuAyKbpniSd0PqhoIS y69g== X-Gm-Message-State: AOAM532ACxtJ3bqxpz4mj02TKGUhe2xGZamf91qEGnBJBlx7iZbIUKZL hykzCcgiHjdLuXsg5KhJvWOaUwdtX622OgVXZWLZGOKvcUY3fUEGO0bL5CfCxoy5tfe9AtSZ6wA Tnh2sF+Qf7h5NZ6h3dsiw0hcI/ljM X-Received: by 2002:a05:600c:3489:: with SMTP id a9mr2269516wmq.120.1639530097585; Tue, 14 Dec 2021 17:01:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCl+Ug9yU5uFjldGykl05Hl7w6RRr/ctye85ysOcS+o7yaZs9fd51nyFO6kfPtOoS57jVVNQ== X-Received: by 2002:a05:600c:3489:: with SMTP id a9mr2269509wmq.120.1639530097440; Tue, 14 Dec 2021 17:01:37 -0800 (PST) Received: from minerva.home ([92.176.231.205]) by smtp.gmail.com with ESMTPSA id o64sm334543wme.28.2021.12.14.17.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 17:01:37 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH 55/60] drm/st7735r: Add support for the nomodeset kernel parameter Date: Wed, 15 Dec 2021 02:00:03 +0100 Message-Id: <20211215010008.2545520-56-javierm@redhat.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211215010008.2545520-1-javierm@redhat.com> References: <20211215010008.2545520-1-javierm@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=javierm@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Javier Martinez Canillas , David Lechner Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" According to disable Documentation/admin-guide/kernel-parameters.txt, this parameter can be used to disable kernel modesetting. DRM drivers will not perform display-mode changes or accelerated rendering and only the systewm system framebuffer will be available if it was set-up. But only a few DRM drivers currently check for nomodeset, make this driver to also support the command line parameter. Signed-off-by: Javier Martinez Canillas --- drivers/gpu/drm/tiny/st7735r.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/tiny/st7735r.c b/drivers/gpu/drm/tiny/st7735r.c index fc40dd10efa8..841ec1c7bb93 100644 --- a/drivers/gpu/drm/tiny/st7735r.c +++ b/drivers/gpu/drm/tiny/st7735r.c @@ -190,6 +190,9 @@ static int st7735r_probe(struct spi_device *spi) u32 rotation = 0; int ret; + if (drm_firmware_drivers_only()) + return -ENODEV; + cfg = device_get_match_data(&spi->dev); if (!cfg) cfg = (void *)spi_get_device_id(spi)->driver_data;