From patchwork Sat Feb 22 01:40:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 194408 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6935FC35669 for ; Sat, 22 Feb 2020 01:40:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3F5A920722 for ; Sat, 22 Feb 2020 01:40:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="tiWAct/l" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727973AbgBVBky (ORCPT ); Fri, 21 Feb 2020 20:40:54 -0500 Received: from mail-pl1-f201.google.com ([209.85.214.201]:49215 "EHLO mail-pl1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727962AbgBVBkw (ORCPT ); Fri, 21 Feb 2020 20:40:52 -0500 Received: by mail-pl1-f201.google.com with SMTP id w17so2142921plq.16 for ; Fri, 21 Feb 2020 17:40:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=KcPp0gP7GELHPbQmhvOuNvrhkif2qUrzumcvFBDOK9U=; b=tiWAct/lW1qWhKwT1NraZmKOl/hogEF7BkErGRXVit1viyco6ajvbC9mz3kiFMua6i TXNq2t+i0wPehD/a08VL1JQQH9Rnr9VR2NEKeEmZ8FLJhmSFDZ0rVirUFv3+tELLG6Gp 1Odhw8Q7qlUlkq1pZqeqAMwP3dTqnrHwG/aPULh9Zktd5pHO30UGcf0fGZWZPZ85s0Y6 g5vruuy+o5NmhnAq1Bi7z5UhTM9KxLDhHYWDSFQ31yZ5D0g/dNjltCGyIjGVEk50kOv0 /sABPtof6x7ACZaNTuqAWywFBrRPUIP1zVHm1SpMLSbhEsUJQJhGbghszJjbeEqYP4d+ zPkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=KcPp0gP7GELHPbQmhvOuNvrhkif2qUrzumcvFBDOK9U=; b=fwNkOHyoV/erW9kllpspz6S3qgvCN3AE8XctHCgnJeK/mDCVgi2aIl4ijbdfaMrq2I hzvk3G6Od4meApciZyIhQ9w7syhKsqol6LwAeiW06WULmjzCvKcwoq0ZILJ0FxgyEXia /ZqGijFStcE9WJfdsqPCAiyN35RRgsCiFjj1z9RAZb70az6kTCHsA9uXCn1i6N1CH3YF i4YeL7WAP84j02NhCsQtK8l3uodmX1Sv3huItxHGS/jsHdAoewB6IlP/KIrxgsEh+jCq UFLlYmJF+VaY2VSI5ducT/4SibsA7BbWZTT7FG7iFdDj1RxgS9UuxOxpnaPrsxxx/yxW xXQQ== X-Gm-Message-State: APjAAAXUo2qndO0Lq6xwo3Lbl1uI6v5dv1GmlB5aqI3jQVTsfYw7ZCV2 71w63vGAM2z9hk96je2lQHQIl1vr/urSrIc= X-Google-Smtp-Source: APXvYqzPdWRjgeOkhSTiaxyK4n8nsnHWWk0aEfT3lTbN5PVbLfvLNibYxGOnd/zAFy69mSlFb3/Z8610AQaog60= X-Received: by 2002:a63:ec49:: with SMTP id r9mr41310425pgj.445.1582335652146; Fri, 21 Feb 2020 17:40:52 -0800 (PST) Date: Fri, 21 Feb 2020 17:40:36 -0800 In-Reply-To: <20200222014038.180923-1-saravanak@google.com> Message-Id: <20200222014038.180923-4-saravanak@google.com> Mime-Version: 1.0 References: <20200222014038.180923-1-saravanak@google.com> X-Mailer: git-send-email 2.25.0.265.gbab2e86ba0-goog Subject: [PATCH v1 3/5] efi/arm: Start using fw_devlink_get_flags() From: Saravana Kannan To: Jonathan Corbet , Greg Kroah-Hartman , "Rafael J. Wysocki" , Ard Biesheuvel , Rob Herring , Frank Rowand , Len Brown Cc: Saravana Kannan , kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, devicetree@vger.kernel.org, linux-acpi@vger.kernel.org Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org The fw_devlink_get_flags() provides the right flags to use when creating mandatory device links derived from information provided by the firmware. So, use that. Signed-off-by: Saravana Kannan --- drivers/firmware/efi/arm-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/arm-init.c b/drivers/firmware/efi/arm-init.c index d99f5b0c8a09..6703bedfa9e1 100644 --- a/drivers/firmware/efi/arm-init.c +++ b/drivers/firmware/efi/arm-init.c @@ -349,7 +349,7 @@ static int efifb_add_links(const struct fwnode_handle *fwnode, * If this fails, retrying this function at a later point won't * change anything. So, don't return an error after this. */ - if (!device_link_add(dev, sup_dev, 0)) + if (!device_link_add(dev, sup_dev, fw_devlink_get_flags())) dev_warn(dev, "device_link_add() failed\n"); put_device(sup_dev); From patchwork Sat Feb 22 01:40:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 194407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7CF6C35641 for ; Sat, 22 Feb 2020 01:41:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BDAB120722 for ; Sat, 22 Feb 2020 01:41:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="e/G2izCt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727992AbgBVBk4 (ORCPT ); Fri, 21 Feb 2020 20:40:56 -0500 Received: from mail-pj1-f73.google.com ([209.85.216.73]:37882 "EHLO mail-pj1-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727982AbgBVBk4 (ORCPT ); Fri, 21 Feb 2020 20:40:56 -0500 Received: by mail-pj1-f73.google.com with SMTP id dw15so2025054pjb.2 for ; Fri, 21 Feb 2020 17:40:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=dLJUCpK8J7QSv9pjJWTn5rjODL1aEvnJG2mu5Q6XKZg=; b=e/G2izCtRWiEex8vSlfihQZwWbRD38v38ILG4l4r0PBFW4nViuSsYy2XUvAta7Lg+H iwqAKMJhoSdeJvTXWCRNXcpv/oibXCTVqKiCZAtcZ/10EL22JqVpY311ZGjdWeCZ6TWl 8dyvPrRs3TcgxxUs+km0ytcbrL8LP1G4CqJEc+oX/d3UX0nhbrwIbgTzLHjrUY9Qv0iT vMKmD8aus0eCRycaqJkgLLOPimbsn9TPbDIsjZfKcyaWKw7f7WfeukqDuKNG4mncrK8V XMYT45YusmnMzgHTM21b3xNOrzprNYN46RRF/MK+TTqfmcgndJlUtph86LKTOtFenFaQ uNyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=dLJUCpK8J7QSv9pjJWTn5rjODL1aEvnJG2mu5Q6XKZg=; b=mp40xXxtbP5sQPByU+BPD+80qhVBn0X2UgRI/RnBXQKHy+odEz2bIPzQpL74fkcn68 QnNZwVIv0yoXdO4Bchxx8Q9mNetXX7R6rEczuucjjd0ys6Ap3IlmD8brbNH4wbwzhabq MoifLcd9DlLgOZDTACIXqDotF/DG3WLR6lw3HXQ18/px1+HsrUQAwjfnkGVTDrHTBv2c nTffdTuhmVMxDTacb6NaPJ3qiZsMHdq8dbsOjvXb+kgmSsKWL2F/5E0jRxivR6iH4XSm ft0uMMegbxKsAyr01vm4rHv6vZ1lGvmD7aMKp5sUbHrmOyZcPpUl/3NvUwZfbm9pyW9D qBXQ== X-Gm-Message-State: APjAAAXl2vtqrKAFE7dgYUqSrOyWOI4zX7y/fXYpjakRONHu5Dv4eedY 4bu2DIn2WooZd7A/1oGCwtZKLKygA/PKfwU= X-Google-Smtp-Source: APXvYqzesfXR7lGxs6e5jxSQUmuI+4SNQj8u282WnFoEoOOntmofH4HAOCXHvIB2dz4XXYHvKMvIdKicGMtW4q8= X-Received: by 2002:a63:be48:: with SMTP id g8mr42416014pgo.23.1582335655195; Fri, 21 Feb 2020 17:40:55 -0800 (PST) Date: Fri, 21 Feb 2020 17:40:37 -0800 In-Reply-To: <20200222014038.180923-1-saravanak@google.com> Message-Id: <20200222014038.180923-5-saravanak@google.com> Mime-Version: 1.0 References: <20200222014038.180923-1-saravanak@google.com> X-Mailer: git-send-email 2.25.0.265.gbab2e86ba0-goog Subject: [PATCH v1 4/5] of: property: Start using fw_devlink_get_flags() From: Saravana Kannan To: Jonathan Corbet , Greg Kroah-Hartman , "Rafael J. Wysocki" , Ard Biesheuvel , Rob Herring , Frank Rowand , Len Brown Cc: Saravana Kannan , kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, devicetree@vger.kernel.org, linux-acpi@vger.kernel.org Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org The fw_devlink_get_flags() provides the right flags to use when creating mandatory device links derived from information provided by the firmware. So, use that. Signed-off-by: Saravana Kannan --- drivers/of/property.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/property.c b/drivers/of/property.c index e851c57a15b0..15fc9315f1a7 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1262,7 +1262,7 @@ static int of_link_property(struct device *dev, struct device_node *con_np, u32 dl_flags; if (dev->of_node == con_np) - dl_flags = DL_FLAG_AUTOPROBE_CONSUMER; + dl_flags = fw_devlink_get_flags(); else dl_flags = DL_FLAG_SYNC_STATE_ONLY;