Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp59865imu; Wed, 2 Jan 2019 14:05:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN4j6F9BPq3p90mQhthE1b5prMQWmFYW4lfIry/PnbUpYbHrqLQeFl+H2lgBloVl8iWE8PGj X-Received: by 2002:a17:902:7443:: with SMTP id e3mr44992320plt.304.1546466739666; Wed, 02 Jan 2019 14:05:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546466739; cv=none; d=google.com; s=arc-20160816; b=DxnKTzy0h/Ltvpt1ZP1scMin8mrNPTWrkyKx1CIrEKCWidGwOv/D1HZ28HSlHCVg0/ I75SMZHyFCguBt2UA4JPwNnzbZGt1NEgyOHh5RmkUG5a1vYn2cJtwVv9d53ayFUPZ7e7 swEiSAfNZJNXJ7Qomj1jsiGohdS7LS+0bfbaSZwJmDkXySfeb56ptay1/g/TYOGJUl8j 4LFRBXbAnlPC6+ZXF0xeaqfVbXW4YL8Kw1/Y/GKOn5zSjHvJBAcYrHuXpfiZJ6gTfn1V DCkcaZFPTJBWdydSQ8w1eY7GwUUeaY5mASRY78SX9IYhOWeLeJTDRD5Nm5NDevG3vvmA eNog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=wHsg2FG5gmuVBMMbiDxSZDA8VrWifS4gHbxgzJfm+do=; b=vMNp0RNqOvcW2UTpCi8gvExO9YHNz36cjt45DMzEsVBEGZ9mawIrSSiHBRw9xi75Om n4LJ1xUIJ7klSh4iJZo7+eaD1BeejTfIaHeUFomAaNuP6Te/hXhhVIG5HzX0/gk2dg0L DvQ6deUgpbULK7Nevk5F5ONFuS0zaHnpi1BznmnQd/qGY8jwQQJbl0rEMMjEZcgUATog /cYLO92XOIlGQqwlsxFdRpom3z+XTmCUNxBfMAtvv05tXlWSPjmR2GYpHge63z/Q/Gzf gAdJ0YTl4cX8HmownkENAWupeO2aAUcPajOID5TdIS8TaeNLO6Q1UrNZwRHkkcAIcDX+ DKzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si6858000plm.1.2019.01.02.14.05.24; Wed, 02 Jan 2019 14:05:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729834AbfABUD7 (ORCPT + 99 others); Wed, 2 Jan 2019 15:03:59 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:40764 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725984AbfABUD6 (ORCPT ); Wed, 2 Jan 2019 15:03:58 -0500 Received: by mail-ot1-f68.google.com with SMTP id s5so27649290oth.7; Wed, 02 Jan 2019 12:03:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wHsg2FG5gmuVBMMbiDxSZDA8VrWifS4gHbxgzJfm+do=; b=OxyL+salZFJmfttqyOAtjvmUU9bmlSpW9jnbMC54OPh9Mf+zj1dpDSA09xRtOh9078 R/oEczS5DHX+4Ozgz2qZehlqz1OTvFlYJeje9mFCDdIYg9NF3d8sRHCBnCZ4ih1XGwQs 4PQu6nl9acykK5elxjBGA1yAA1QeFKGK8cXLfMDhX8lGv50jutXs1yhiI3A94udiOAEm paFYUUv/h90j/1fLVkzQGCn2Ee5KdyrQRfamotZ+GqBu4k9NTw5nRKytOTshXPRvuJ0e VyYl8d/pVFxN2DXZI51bcnr5DzucBC/GoE+iDloktuVRfiL5SsvtpXsvg1kGNbBizgo3 Bnsw== X-Gm-Message-State: AJcUukcyr96lqWDpwLc+e9iEAN0IbSzNiikF2JWv2VNRY76NSeUCImjm 75T36gb5ksMc0brnmQCk6IFMq7mtLLOCgHpeqV4= X-Received: by 2002:a9d:24c5:: with SMTP id z63mr32953422ota.320.1546459438049; Wed, 02 Jan 2019 12:03:58 -0800 (PST) MIME-Version: 1.0 References: <20181207125844.18775-1-malat@debian.org> In-Reply-To: From: Mathieu Malaterre Date: Wed, 2 Jan 2019 21:03:45 +0100 Message-ID: Subject: Re: [PATCH] video: offb: Pass actual name in offb_init_palette_hacks To: Bartlomiej Zolnierkiewicz Cc: "# v4 . 11" , Rob Herring , dri-devel , Linux Fbdev development list , LKML , Elimar Riesebieter Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bartlomiej, Do you need an Acked-by from Rob, or can you take it in the next round of fixes for v4.20 ? Just to repeat myself, previous code would call offb_init_palette_hacks(), which in turn would do: if (dp && !strncmp(name, "ATY,Rage128", 11)) { with name=NULL. Thanks On Thu, Dec 20, 2018 at 5:10 PM Mathieu Malaterre wrote: > > Rob, any comment ? > > On Fri, Dec 7, 2018 at 1:59 PM Mathieu Malaterre wrote: > > > > This is a partial revert of commit 5c63e407aaab ("fbdev: Convert to > > using %pOFn instead of device_node.name"). This is the minimal work to > > get a Mac Mini G4 back to a bootable state. The function > > offb_init_palette_hacks would need to handle the case where `name` has > > been set to NULL. > > > > Cc: Rob Herring > > Fixes: 5c63e407aaab ("fbdev: Convert to using %pOFn instead of device_node.name") > > Cc: stable@vger.kernel.org # v4.19+ > > Signed-off-by: Mathieu Malaterre > > --- > > drivers/video/fbdev/offb.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c > > index 31f769d67195..6e75851f8142 100644 > > --- a/drivers/video/fbdev/offb.c > > +++ b/drivers/video/fbdev/offb.c > > @@ -648,7 +648,7 @@ static void __init offb_init_nodriver(struct device_node *dp, int no_real_node) > > /* kludge for valkyrie */ > > if (strcmp(dp->name, "valkyrie") == 0) > > address += 0x1000; > > - offb_init_fb(no_real_node ? "bootx" : NULL, > > + offb_init_fb(no_real_node ? "bootx" : dp->name, > > width, height, depth, pitch, address, > > foreign_endian, no_real_node ? NULL : dp); > > } > > -- > > 2.19.2 > >