Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1179468pxb; Thu, 9 Sep 2021 23:18:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxehRPW8dqPb7O1wPuDrWtIdeAAvZGo1R9bgnMrqsf+yf3HEENvklsormapIlHMVtloW7w9 X-Received: by 2002:a17:906:7a07:: with SMTP id d7mr7488787ejo.257.1631254700708; Thu, 09 Sep 2021 23:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631254700; cv=none; d=google.com; s=arc-20160816; b=clvDeA+bUeSbifY75d25zuoNpv12SOvoYhLLK2JDJR1HkOWyDyItOfFLnh606TwVLT KI6HL3Er9vSmH9TSszQ6lXbpi/2bkH41/vsmHQVW1hwuauPhuJTvrp5Maobwd038dBIf TSUd8uwQ5VVlaC5q6MyzhJ/oNRfgNJD+690NJclKulkk/S7p3epRfduZYnSmtzFq5lzG sHLusyyWX1ejpsztkOUo/SWe5fTbtkLNdaVoUFCKTXdkp4NQYH1siiaBY5/dGHXkLcCG vb/Q9UP/1i7TSAEqjGDjYG3edrQWsX5GxEHv/pKjq5hMH/CqRNt1Ur2RaV1d8Xvo/3+q DrQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oGZApT3ek9C0cZtuD4TvFvWzBJx/yZfBHnifrfr+D3I=; b=f76E7g35HHw3FN/Iu2zhoBzuXg08fFM5QDBcnj9m9GIGzwW0757p9hXwgxG90Q0W81 cKDIYbjCMQDy/LpYVwqZQHi0Pbv2/URZ4P7yJ7qMNFX0fS74lSeJbSpMdV14tRZCGDw3 B6WLnFWJRCry+W8qnj1vk7V4xQ9uOAWZBzpOrEGIUUBTXckPilgNk/oFcebzMkY/A68F tU8HExXiBZ3t/bt9D3ZYWQTszcaKxBFXzInPhhj4OalmBDz9mSnNVWNxnQX60kguDPzy yjrnLCgnRYon9t3QoxSBpbI8yWuB9UxPl3C8UIfPQf0FDOebfHr+/Id1JYbs2C9MzzP8 dh/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=smqJnTAI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 25si4864926ejh.765.2021.09.09.23.17.53; Thu, 09 Sep 2021 23:18:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=smqJnTAI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230467AbhIJGRN (ORCPT + 99 others); Fri, 10 Sep 2021 02:17:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:43938 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230417AbhIJGRJ (ORCPT ); Fri, 10 Sep 2021 02:17:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AA69A611B0; Fri, 10 Sep 2021 06:15:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631254559; bh=I9jfoZPzgk5wgindVIV+Rty1kIvDXNjltpXvOCUC4LM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=smqJnTAIi6gpQGZmfdJk4Xa0pEas3D5h9xKu3DiAwL2kziBEwvDN+rPnEE7nouI+j YTRMBLod9zPsjBLvj7TUdnvYNaTOs4uCUoRqo1qr6p+YF2r+3i27F5HSgcJAmV5GES lgk6Lz2gSN6yk51PdD8TwQ0J4HNla6DmEfviK49s= Date: Fri, 10 Sep 2021 08:15:37 +0200 From: Greg Kroah-Hartman To: Saravana Kannan Cc: Rob Herring , Frank Rowand , Andre Muller , kernel-team@android.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] of: property: Disable fw_devlink DT support for X86 Message-ID: References: <20210910011446.3208894-1-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210910011446.3208894-1-saravanak@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 09, 2021 at 06:14:45PM -0700, Saravana Kannan wrote: > Andre reported fw_devlink=on breaking OLPC XO-1.5 [1]. > > OLPC XO-1.5 is an X86 system that uses a mix of ACPI and OF to populate > devices. The root cause seems to be ISA devices not setting their fwnode > field. But trying to figure out how to fix that doesn't seem worth the > trouble because the OLPC devicetree is very sparse/limited and fw_devlink > only adds the links causing this issue. Considering that there aren't many > users of OF in an X86 system, simply fw_devlink DT support for X86. > > [1] - https://lore.kernel.org/lkml/3c1f2473-92ad-bfc4-258e-a5a08ad73dd0@web.de/ > Fixes: ea718c699055 ("Revert "Revert "driver core: Set fw_devlink=on by default""") > Signed-off-by: Saravana Kannan > Cc: Andre Muller > --- > drivers/of/property.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/of/property.c b/drivers/of/property.c > index 0c0dc2e369c0..3fd74bb34819 100644 > --- a/drivers/of/property.c > +++ b/drivers/of/property.c > @@ -1444,6 +1444,9 @@ static int of_fwnode_add_links(struct fwnode_handle *fwnode) > struct property *p; > struct device_node *con_np = to_of_node(fwnode); > > + if (IS_ENABLED(CONFIG_X86)) > + return 0; I love it :) Anyway, getting a "Tested-by:" would be great to have here. Andre, can you verify this solves your issue? thanks, greg k-h