Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2261305pxb; Mon, 11 Jan 2021 05:27:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFmQ9hileoti3qnWG/ggxX2LqBjCcezcytiEJO7vBeCL0lPNv17i4HK+TomA/OE2LC6ESo X-Received: by 2002:a17:906:d152:: with SMTP id br18mr10843801ejb.297.1610371631035; Mon, 11 Jan 2021 05:27:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610371631; cv=none; d=google.com; s=arc-20160816; b=setOtK1rQrZNAgfGSjDKbQFZp8pmq9SS/qNtE1XanudmcGN0TjtKvK1PtEjyv1O4IU 08krLs/9q9o1+NGXKnFcYGMk6dIBtXqKnSnwa87bldQXCV9fai5uUK5BjZIRq/hr8gOV kaCH7I+7NKjZO/RkIJDStCnGPHSFoJtt0uH3Su0ygouro4fQtFfp2xmrRtQe4Bm+LlJK I1UYXinMS8/nB+kwBakz0kI4DyhBE81H3dfppzBvprxEf/5b95YQLIU1CGn0hGS15+qZ tgnoW/KjsaFnqj3RrFPYiUmvCeDHDLkzIE28G2L2D+E0YxA8GsPWvSwcIGf6VgHrc66L Z+jA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PAYDWJ1OQWxavjKGChOytty+BP5780fUxnKJqsaYqVM=; b=sqkJDLxyGJWCdtbRA7y0WkA3XAJcODVGRMWCV4M3dyuUMMDMO+QV+Yn2P4mkCqmwdU BiMbbKrSASIcJ4ne35nkykLaAWjdWapSth5TpAhEeX1hG//z6Sm4ZnU9P7p9Mk5UVhHS pN2DeulTehHh9ANDd+R3lcvsDXZDk/ADovGhbD2yNbZeb8mqbrGTOPGXU34h7T2Lb5fi FGhSVNW7/guK4I/cg/UUfID4q+0Kd/2j/2SWh4q0XSb67qbDpeK4IC9GUP5n5uU4lpP3 ntX2usLQAOG4UgvKUxBNJxGQmkQGlELKBzHp1HbY64X0gBqGatr78LSk7UamRtIgW7SY /Xsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=awHBeLZD; 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 v14si6972014edq.304.2021.01.11.05.26.46; Mon, 11 Jan 2021 05:27:11 -0800 (PST) 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=awHBeLZD; 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 S1731955AbhAKNNj (ORCPT + 99 others); Mon, 11 Jan 2021 08:13:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:60236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731818AbhAKNNS (ORCPT ); Mon, 11 Jan 2021 08:13:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BDDA9229C4; Mon, 11 Jan 2021 13:12:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370758; bh=9T8pFcfevffuEgPCrRo0iDbr091RgC2y2gqnJBt1GjM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=awHBeLZDmU5Q11vE7Qz/GF2PrGdv9p+aonSrihA6i8MbDDKAmctAQAcJRIxE9sAjl 1Y5N6xHalOza0gsZ8XAUaECClUe4rMLT/d704DE7mP1BCAqODIx5xze6OfaR8rR9Ia LovbQ2WYDPwgaphHqtpsWpD1E/HJjGj0B+vC9LMs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bard Liao , Andy Shevchenko , Heikki Krogerus , "Rafael J. Wysocki" Subject: [PATCH 5.4 84/92] Revert "device property: Keep secondary firmware node secondary by type" Date: Mon, 11 Jan 2021 14:02:28 +0100 Message-Id: <20210111130043.203741289@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130039.165470698@linuxfoundation.org> References: <20210111130039.165470698@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bard Liao commit 47f4469970d8861bc06d2d4d45ac8200ff07c693 upstream. While commit d5dcce0c414f ("device property: Keep secondary firmware node secondary by type") describes everything correct in its commit message, the change it made does the opposite and original commit c15e1bdda436 ("device property: Fix the secondary firmware node handling in set_primary_fwnode()") was fully correct. Revert the former one here and improve documentation in the next patch. Fixes: d5dcce0c414f ("device property: Keep secondary firmware node secondary by type") Signed-off-by: Bard Liao Reviewed-by: Andy Shevchenko Reviewed-by: Heikki Krogerus Cc: 5.10+ # 5.10+ Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/base/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -3414,7 +3414,7 @@ void set_primary_fwnode(struct device *d if (fwnode_is_primary(fn)) { dev->fwnode = fn->secondary; if (!(parent && fn == parent->fwnode)) - fn->secondary = ERR_PTR(-ENODEV); + fn->secondary = NULL; } else { dev->fwnode = NULL; }