Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D05F1922FA for ; Fri, 14 Jun 2024 09:40:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718358023; cv=none; b=fJjtn8adzXdP+hLwBg/G309sTpS/kRGcCdhUgYPFa9c2mKMWqBcVyknaQhYlxwsp/HtI/wGoDV1prde92BY45/3kUwNyDGgXrx1f/9wchCLiOTjhnOPdZVSLjQZ48KELIlIO7hVlXTRbh5SQn4q2TRSPaE2GCcBez2BRXo6gzCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718358023; c=relaxed/simple; bh=cUSGw7VhImpZ3HLan+pTkmExdx4glGEn4Q1EnM5Ip0Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LsI3y35ItxPvUAoisLbCiV9s/1LXFf0iiHUK0Cs0rd/N7TLoKeLjmSib5iPO8Mcssd9YUrcis8/YWjfuqiWuoYSzi/dpmIHOydSagH02Xv1bU8/3hl9QD64TKi5EuY1KSlkfrdyXGnli87hu7TTH5BUISmepGeJffxpeK1LGXJ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=VzEudlC7; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VzEudlC7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718358020; 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=WQ6vmkLbNkSPu/I9Dwqivb7WpaSBecMeWv8oRqgyEK0=; b=VzEudlC7Sc6ffrMl3Ar+y4UQhx4XC/CiTG4N9B6KvlQLQdIb8o1rw3o+ZCNX0+XiWOZFAn dwCgvTqXEJxLy8IodNCpFYXf1jEhetC/S12jHF9EdGJe08bzEJeq5LMTSzD4wkwElPG8va lu3E24+7/b0vkwprPA9Bl8loSUQ8JBY= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-443-dEnX9wPgPUm-icIUatiR9g-1; Fri, 14 Jun 2024 05:40:19 -0400 X-MC-Unique: dEnX9wPgPUm-icIUatiR9g-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4213441aa8cso13518785e9.2 for ; Fri, 14 Jun 2024 02:40:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718358018; x=1718962818; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WQ6vmkLbNkSPu/I9Dwqivb7WpaSBecMeWv8oRqgyEK0=; b=LvrcQDxF+/Lzvy9PoBvVGkYyXH7pXKdYgA7bOf4BlSNhnkKBK+IsL2XIAHO++2FyY2 LOtrIw96BHzWnXYu/m1gBzKgdTkYOxf8cQaCAM+qTxI9qhOA+qrc/fs1YDyPhv0PO3Wg 7dg2c6c2HDSWnmJRJh9bgDqwv62zXDfVbV5DHM7Y2SIixlGYVMUHEEZkanFisTULpvLl pHAlsJF3JnsSCclehryIeq4QPBt/j01hODorkXMsKSBw0K4mYl3ZNtk59jG8G88lr5iO TlNRJvRRHT/n2Bt6THBBp8MTTqCWWQgCZL4FQlqr/MPK2ROdOpj1UY1J66kbfJOsVSRp ocMw== X-Forwarded-Encrypted: i=1; AJvYcCWHOu6mB1M1dQdVHMNKAObrdQUGOeeWI+9G6jjmNod4O2z5+DufWuA3T/4leQE3am60UDlfmd9BNKBsrOujg3X4nAsHIV2QXLpUR34= X-Gm-Message-State: AOJu0YwZcMBcnxL2X6azCutfr9Aua4AXVHRDkNKF5NQfdO7tSJtuMhDk f87q/4T1rwBM/1IOWpub4lNlD156UsdyilvrQyryAm6IWt/jhrGhqIogEtp2Yv+TxpWWDJbtDLh 2Ex60k8cAJFnJk4SG/Kc60vHS7uX7c7NMKFmb2eL0ukS/SrI3ljafFSjbSBWl X-Received: by 2002:a05:600c:15ca:b0:421:5605:8c92 with SMTP id 5b1f17b1804b1-4230482bd1emr18547845e9.20.1718358017894; Fri, 14 Jun 2024 02:40:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFakVoq3MEUrERr87P+t+k5+jmQRc+ZytUh6W0nxxbHQtB6z8XVXp9wq7vZ5Y5GyQYgFyH93w== X-Received: by 2002:a05:600c:15ca:b0:421:5605:8c92 with SMTP id 5b1f17b1804b1-4230482bd1emr18547655e9.20.1718358017557; Fri, 14 Jun 2024 02:40:17 -0700 (PDT) Received: from ?IPV6:2a01:e0a:c:37e0:38da:a7d9:7cc9:db3e? ([2a01:e0a:c:37e0:38da:a7d9:7cc9:db3e]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36075104a3dsm3876092f8f.112.2024.06.14.02.40.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jun 2024 02:40:17 -0700 (PDT) Message-ID: Date: Fri, 14 Jun 2024 11:40:16 +0200 Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/7] lib/fonts: Fix visiblity of SUN12x22 and TER16x32 if DRM_PANIC To: Geert Uytterhoeven , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: Helge Deller , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org References: Content-Language: en-US, fr From: Jocelyn Falempe In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 13/06/2024 21:18, Geert Uytterhoeven wrote: > When CONFIG_FONTS ("Select compiled-in fonts") is not enabled, the user > should not be asked about any fonts. However, when CONFIG_DRM_PANIC is > enabled, the user is still asked about the Sparc console 12x22 and > Terminus 16x32 fonts. > > Fix this by moving the "|| DRM_PANIC" to where it belongs. > Split the dependency in two rules to improve readability. Sorry I think I misunderstood the SPARC && FONTS condition. Your fix is much clearer, thanks. Reviewed-by: Jocelyn Falempe > > Fixes: b94605a3889b9084 ("lib/fonts: Allow to select fonts for drm_panic") > Signed-off-by: Geert Uytterhoeven > --- > v2: > - New. > --- > lib/fonts/Kconfig | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/lib/fonts/Kconfig b/lib/fonts/Kconfig > index befcb463f7381d1a..3ac26bdbc3ff01a3 100644 > --- a/lib/fonts/Kconfig > +++ b/lib/fonts/Kconfig > @@ -105,7 +105,8 @@ config FONT_SUN8x16 > > config FONT_SUN12x22 > bool "Sparc console 12x22 font (not supported by all drivers)" > - depends on (FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)) || DRM_PANIC > + depends on FRAMEBUFFER_CONSOLE || DRM_PANIC > + depends on !SPARC && FONTS > help > This is the high resolution console font for Sun machines with very > big letters (like the letters used in the SPARC PROM). If the > @@ -113,7 +114,8 @@ config FONT_SUN12x22 > > config FONT_TER16x32 > bool "Terminus 16x32 font (not supported by all drivers)" > - depends on (FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)) || DRM_PANIC > + depends on FRAMEBUFFER_CONSOLE || DRM_PANIC > + depends on !SPARC && FONTS || SPARC > help > Terminus Font is a clean, fixed width bitmap font, designed > for long (8 and more hours per day) work with computers.