Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp758507imj; Thu, 7 Feb 2019 11:21:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IYbaiUIcKi8D3VIGIJAC5XNWLhbYjpIqt1e55+4BqGumsPTQrMJTUPqnF3gY1oG5q/T+4M7 X-Received: by 2002:a63:2706:: with SMTP id n6mr543009pgn.352.1549567282549; Thu, 07 Feb 2019 11:21:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549567282; cv=none; d=google.com; s=arc-20160816; b=Bx4Bty7iPpQJPxdlowgygRitwybfFEw5km9q3s5jPkWdTJOIZtz0nTT92ofig+kegR 93bTKNOwu4/kX7I7kBGyH94nE54LTgx4yjc8q3vXo/Ln2u2MkU8379cMfd/sqMeIs76H lrFA4uhnS9/LtitliY8F+mj0aQmCNFFXOsFdmCGJbEVT/87Lsw0LsjtGuBo2wsTZxel8 h/ujUHXO7DhZy+tIdaolxhp9+/UeBqE/JuymdymY/dRxhpOgDa2VjxV9wcMDW/NACv+W pup4fHAhsDtr2Rjybrat543fJ27obtE2D+zWZH1U1gNnSw6C/rFEvMmgs6wlRY3kOTN9 8bGw== 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=Gu3h9Vd/JDdqiaV7QYobe+QXyM9WZMKqdJeXpHh7bZg=; b=obOlK3PSaLYzAUMm1THLAK8VvLGF6X605rCF4dHk75lui8e+6HfJ/LrFE+slaZBxyi wCjwdxNzIJgMzj//srzQReTwPdc6Nj8WppZMhsDn2Z2I8ne/ZfbrZq7eVhGHPCo7dg/F nXzuCqKLhO71SdBZazF4SbwBiJ5n5Eh2R+LJbikpnl4Xn4q5Ix0p08y68MmS4ZR+02dg gK0r+4xHiTK1546R44vq4j9b91Q9GJV1AGndxF5xLFdu6rbBNBXqvLKgeebFqhx+LPl8 6W3XiwYxd0C+OlYOdsYB0qMhXG4GjJIulQcis+urWWO2X/zrHQgiO0Ka7vm6IWeCTZPg Pszw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v19si6441069pfa.80.2019.02.07.11.21.06; Thu, 07 Feb 2019 11:21:22 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726916AbfBGTVC (ORCPT + 99 others); Thu, 7 Feb 2019 14:21:02 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:45061 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbfBGTVC (ORCPT ); Thu, 7 Feb 2019 14:21:02 -0500 Received: by mail-ot1-f68.google.com with SMTP id 32so1700968ota.12; Thu, 07 Feb 2019 11:21:01 -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=Gu3h9Vd/JDdqiaV7QYobe+QXyM9WZMKqdJeXpHh7bZg=; b=tOU8MJ0ymaF5kV3teaQwT5uaa7sEMICO5xhn0pvGAlXDfEPRq5oF82tLpgpyeuZVjI KXqTAsoVw0yRfEM9Q9ApqQmYUgkfRsEIpixcrIuPc65Q1HrdBVOB5KSpyjhTXCnWRvrl X3+++dkR6M+L3Fga5Kj7JsQnz8QDTGjiXH5nCG4BcUf/5TmLsJtDu8B/n4nWt5AsYElm plFtzSLnlm8uXZs+J+cn3HfNjlMYwKjaQjLzX+GZ53fu1gDCoM2vgO9JKvG4BPYiPmz7 Vqs0oHEzDo1QfMxXJLZVjUNFYO1KWBn493ZSN8kGwsXS+R5VRrKNLELSmfVA929TkcrU Zceg== X-Gm-Message-State: AHQUAuazarJt8l+1+PRtimUKQSIUZNLi2iVhifO0cmbTpoZlvjEVXHi8 MX6/3XnS5y+RMAmPzvs+lThRjLbWBH/ckGGn4To= X-Received: by 2002:a9d:588c:: with SMTP id x12mr9931355otg.139.1549567261207; Thu, 07 Feb 2019 11:21:01 -0800 (PST) MIME-Version: 1.0 References: <1952449.TVsm6CJCTy@aspire.rjw.lan> <3655840.AXlINldeOc@aspire.rjw.lan> <20190207191508.pa7g5c2vhxksrtio@wunner.de> In-Reply-To: <20190207191508.pa7g5c2vhxksrtio@wunner.de> From: "Rafael J. Wysocki" Date: Thu, 7 Feb 2019 20:20:49 +0100 Message-ID: Subject: Re: [PATCH v2 4/9] driver core: Fix handling of runtime PM flags in device_link_add() To: Lukas Wunner Cc: "Rafael J. Wysocki" , Greg Kroah-Hartman , LKML , Linux PM , Ulf Hansson , Daniel Vetter , Andrzej Hajda , Russell King - ARM Linux , Lucas Stach , Linus Walleij , Thierry Reding , Laurent Pinchart , Marek Szyprowski , Joerg Roedel 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 On Thu, Feb 7, 2019 at 8:15 PM Lukas Wunner wrote: > > On Fri, Feb 01, 2019 at 01:49:14AM +0100, Rafael J. Wysocki wrote: > > After commit ead18c23c263 ("driver core: Introduce device links > > reference counting"), if there is a link between the given supplier > > and the given consumer already, device_link_add() will refcount it > > and return it unconditionally without updating its flags. It is > > possible, however, that the second (or any subsequent) caller of > > device_link_add() for the same consumer-supplier pair will pass > > DL_FLAG_PM_RUNTIME, possibly along with DL_FLAG_RPM_ACTIVE, in flags > > to it and the existing link may not behave as expected then. > [...] > > Fixes: ead18c23c263 ("driver core: Introduce device links reference counting") > > I think this should be: > > Fixes: 21d5c57b3726 ("PM / runtime: Use device links") Again, sorry for failing to look deeper into the past. Yes, there should be Fixes: 21d5c57b3726 ("PM / runtime: Use device links") in the changelog of this patch, but again, I still would add the other Fixes: tag too as the issue is still present after ead18c23c263 and that commit is needed for the patch to apply.