From patchwork Tue Mar 17 06:54:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 11441869 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7B3BB1668 for ; Tue, 17 Mar 2020 06:55:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 57FFB20724 for ; Tue, 17 Mar 2020 06:55:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="qLUq4/RN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725837AbgCQGy7 (ORCPT ); Tue, 17 Mar 2020 02:54:59 -0400 Received: from mail-pl1-f202.google.com ([209.85.214.202]:42068 "EHLO mail-pl1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbgCQGy7 (ORCPT ); Tue, 17 Mar 2020 02:54:59 -0400 Received: by mail-pl1-f202.google.com with SMTP id t4so11944034plz.9 for ; Mon, 16 Mar 2020 23:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=cF0mn8RFp/NzGOPpgquFoVLhCbRSN6dQrHYHqFzbKxU=; b=qLUq4/RNPb7PhrgnudeQu/ls8asTv9i4YDOfr3NggSvcNYi4UxSfYMit8S1WUgfRKZ hZbbZQPFLrVYc4w+L0UZzkonnR+9Rm8+cgeDoLy//zUl/eEx1tyOtsRTwwk0IC1GmMk5 7CS7xqEvKVY1hdXlUYzYVEQFG7dy5X2lR4whv4tssypZlespqwDBYf2ykgBrHzGRsoWw KSyWF/LIwFFvygdQi7hxsX3du+o+gHjUR3p65oe+tr2Bc5ohTBv5n7uD892DON5VSkoX pinFPh3FrUqi+8QXt/ZEbxdi0FQwUvd8TPga7GUwJMefUnNRxfnPnWu3NX9YAlqNlHUu 10hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=cF0mn8RFp/NzGOPpgquFoVLhCbRSN6dQrHYHqFzbKxU=; b=I6gfnqR3wn1d04etoAEIAi6IR4wI/VHDxoiBo/hQPNQkkL8QZemigVdMSZL9fZETlK sNutMWnbaTsofD4t+upZktDiJ/JVR7lo5hkurH2wJitaEz/yCQKA61ZqB5SccYu6cobg Sir7VQbmI9XmGUHEl2MP5qMb9wc6wq6+U1QNmAMkoNlKv9HDjLSuVK8GXuGXdSyB+Wko QtKsYjHXyIUcZjHuDZQxNU4eM8FSH4nhTcC5v1eVocMlB9R7aCvuRXZfAPLScubhCacB V+lFHJzL6bhEXhOg/MXGlH8AmIzzqHSuZNXWkFgZvLyihQkZitYL4HtQnhVZFVQvn/vp L9tw== X-Gm-Message-State: ANhLgQ3mJ9/3FknnauA1SWDbb9zYSXrvguYZCPEBV4fYEC0tEpTM6K9U eCXTsKxSs2k+DWgGbiuIzuz706uI7G6/HKo= X-Google-Smtp-Source: ADFU+vt2Zvqf1px/Dmb35lmQnUB5JpW8RvY7l95YZat6XfupQdXF2UMeOYFTa4BNyZ32vltscuYTU3kAv+PeRtc= X-Received: by 2002:a63:8342:: with SMTP id h63mr3660917pge.141.1584428098211; Mon, 16 Mar 2020 23:54:58 -0700 (PDT) Date: Mon, 16 Mar 2020 23:54:46 -0700 Message-Id: <20200317065452.236670-1-saravanak@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.25.1.481.gfbce0eb801-goog Subject: [PATCH v1 0/6] Fix device links functional breakage in 4.19.99 From: Saravana Kannan To: stable@vger.kernel.org, Jonathan Corbet , Greg Kroah-Hartman , "Rafael J. Wysocki" , Len Brown , Pavel Machek , Matthias Brugger Cc: Saravana Kannan , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel-team@android.com Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org As mentioned in an earlier email thread [1], 4.19.99 broke the ability to create stateful and stateless device links between the same set of devices when it pulled in a valid bug fix [2]. While the fix was valid, it removes a functionality that was present before the bug fix. This patch series attempts to fix that by pulling in more patches from upstream. I've just done compilation testing so far. But wanted to send out a v1 to see if this patch list was acceptable before I fixed up the commit text format to match what's needed for stable mailing list. Some of the patches are new functionality, but for a first pass, it was easier to pull these in than try and fix the conflicts. If these patches are okay to pull into stable, then all I need to do is fix the commit text. Thanks, Saravana [1] - https://lore.kernel.org/stable/CAGETcx-0dKRWo=tTVcfJQhQUsMtX_LtL6yvDkb3CMbvzREsvOQ@mail.gmail.com/#t [2] - 6fdc440366f1a99f344b629ac92f350aefd77911 Rafael J. Wysocki (5): driver core: Fix adding device links to probing suppliers driver core: Make driver core own stateful device links driver core: Add device link flag DL_FLAG_AUTOPROBE_CONSUMER driver core: Remove device link creation limitation driver core: Fix creation of device links with PM-runtime flags Yong Wu (1): driver core: Remove the link if there is no driver with AUTO flag Documentation/driver-api/device_link.rst | 63 +++-- drivers/base/core.c | 293 +++++++++++++++++------ drivers/base/dd.c | 2 +- drivers/base/power/runtime.c | 4 +- include/linux/device.h | 7 +- 5 files changed, 265 insertions(+), 104 deletions(-)