Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35726879rwd; Mon, 10 Jul 2023 11:35:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlHSt3zDAMRkbLqyMP/+aSAPrUCesMfgPd1DN94zWf1zcH5cU9D8AGgbP7QgfPaLeUJ9+VJd X-Received: by 2002:a05:651c:120c:b0:2b6:fc80:c45f with SMTP id i12-20020a05651c120c00b002b6fc80c45fmr10385507lja.13.1689014133917; Mon, 10 Jul 2023 11:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689014133; cv=none; d=google.com; s=arc-20160816; b=gqrRUxd8UBzkqAyxe+ZjfRKLpcuLZaaeazJ62X6U4zTbzYkTTO92dDnfEFxD1AhOvG DRPzLS2nAcffk81DK4JAiQQnIEqyazaOdJmE+YY98+pY3xR/0WQ0FrfAm+RLKALut5VV ggvJmyXHD4l/yulCYtOEAQExdTm/CoVecfV32Mq92SIrs37w/kg4JL/g4xSwha7lvQtI nqucCbfDb66JSmBxAt7JRWhbCbPTFV58+QmZ8JOXjzO/T05IElTchfPT0AWx8S2ODwHC j62wtLAZ08h9DhpfY7Ng94UITNH5emtdZUu2kVd2Zxk0eVMhts1Tz2VytxYlpK+s+oqz L44w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pJ0X7LH8Y32+25vFKtVfefQZ8VxfYOg+I+aDeHwgaRg=; fh=ndHb+O2jjA0RgTk4Jt4rgNvlUloAKCSUZdRcbcd7rnk=; b=iIHLfDa6hub86JLjyTfQDkRgVhY80ril+CYfXmK1S8nsmcuWiue6hSou3S3+78Xndq q3KJUUspU7+12GRXH4IEOP2pWnD1aTRH4eVfnNgCog0v97C4k4frdPAP1JCJB9ODf3W2 FsTlnat8/DrjIvuf31otofnCNkXC5Mp5ucHJDnzOTE1Wn1XgfnnMaQ82Jo91A6CqGjur Vbc62cJKBFKTu2AIxF+ZJJ5c6WDb7/K16U0bEXFvqD7Ni3woop5dvMlXhZvaoyWlY4dU eJkmJ9L9qCHSoIW1LPq8Cnw86HsQmdYkm2RH9X3SJRwqffqlxxpO75OvZKY6YdNsS3Ul +/gg== ARC-Authentication-Results: i=1; mx.google.com; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v10-20020a170906338a00b00992bd970d9csi150022eja.429.2023.07.10.11.35.09; Mon, 10 Jul 2023 11:35:33 -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; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231328AbjGJRkV (ORCPT + 99 others); Mon, 10 Jul 2023 13:40:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230397AbjGJRkU (ORCPT ); Mon, 10 Jul 2023 13:40:20 -0400 Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EBA8135; Mon, 10 Jul 2023 10:40:17 -0700 (PDT) Received: by mail-io1-f42.google.com with SMTP id ca18e2360f4ac-78362f57500so243177639f.3; Mon, 10 Jul 2023 10:40:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689010816; x=1691602816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pJ0X7LH8Y32+25vFKtVfefQZ8VxfYOg+I+aDeHwgaRg=; b=ea8pNLA3H378zc+JylHhCzz6ZFAycmOCxxiA3R46VYh9UVYdBjav9B7keAQbvCsXbK ynSNLKnHOMpgvb429xybA/nVdXVeu79Ok+Ln7iLybDTmtJlYIhZlDGUAl9FawZINC+8u C+lyPZrriz/I1KEKRIkUiYBSFY1D+oZjdhClZBOnD8N+g+IbwoyAcZjl4kwBH0A9QpOV HUIc7clL0+nBdrjGOvEUDx+0V97Z/jluph3uANqCwCs0muSCe6l9u3lwkE2CN0e5bGDN kJQdDrffWnwo2b3XjPfzseM8ruUmxz7WrdYfGyY5B4i+anzA0jBNt04xykLEIbLfzNPd GrlA== X-Gm-Message-State: ABy/qLZIe+XDfVCE/NQLsr9B+A3I03tv38TKIVYSoaQJ38gkSAGpFAa5 tTByAbXOH5x8T2OnZwsETg== X-Received: by 2002:a92:4b08:0:b0:33b:dcbf:e711 with SMTP id m8-20020a924b08000000b0033bdcbfe711mr15060887ilg.8.1689010816389; Mon, 10 Jul 2023 10:40:16 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id w18-20020a029692000000b0042036f06b24sm3449146jai.163.2023.07.10.10.40.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 10:40:15 -0700 (PDT) Received: (nullmailer pid 2291150 invoked by uid 1000); Mon, 10 Jul 2023 17:40:13 -0000 From: Rob Herring To: Frank Rowand , Michal Suchanek Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, stable@vger.kernel.org, Cyril Brulebois , Thomas Zimmermann , Helge Deller , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] of: Preserve "of-display" device name for compatibility Date: Mon, 10 Jul 2023 11:40:07 -0600 Message-Id: <20230710174007.2291013-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Since commit 241d2fb56a18 ("of: Make OF framebuffer device names unique"), as spotted by Frédéric Bonnard, the historical "of-display" device is gone: the updated logic creates "of-display.0" instead, then as many "of-display.N" as required. This means that offb no longer finds the expected device, which prevents the Debian Installer from setting up its interface, at least on ppc64el. Fix this by keeping "of-display" for the first device and "of-display.N" for subsequent devices. Link: https://bugzilla.kernel.org/show_bug.cgi?id=217328 Link: https://bugs.debian.org/1033058 Fixes: 241d2fb56a18 ("of: Make OF framebuffer device names unique") Cc: stable@vger.kernel.org Cc: Cyril Brulebois Cc: Thomas Zimmermann Cc: Helge Deller Signed-off-by: Rob Herring --- drivers/of/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 051e29b7ad2b..0c3475e7d2ff 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -552,7 +552,7 @@ static int __init of_platform_default_populate_init(void) if (!of_get_property(node, "linux,opened", NULL) || !of_get_property(node, "linux,boot-display", NULL)) continue; - dev = of_platform_device_create(node, "of-display.0", NULL); + dev = of_platform_device_create(node, "of-display", NULL); of_node_put(node); if (WARN_ON(!dev)) return -ENOMEM; -- 2.40.1