Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp754836imj; Thu, 7 Feb 2019 11:17:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IaPMDIH3YF54xD/8exmyQArRmiIjOjyGx0ysM91XAKqYikLxFDdIfVgpSXVYnK7EHAYPPnd X-Received: by 2002:a65:40c5:: with SMTP id u5mr5847746pgp.46.1549567050055; Thu, 07 Feb 2019 11:17:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549567050; cv=none; d=google.com; s=arc-20160816; b=GXk/8WyB4cTmFJiutGLSRVbmOeHOd/5AvuMIYL/ge7NYbYkdYhbf9AfV70bJXCF3gB YehIw6D8/ASK5j5P8BOLOWxoNQZf0lgh7vW7CwzskVJun2994NcpUdxfQ14vwx+cJ+ik ngamB8PJ8ZUnlmOPMpslxs9L8DcO/BRuEI6/v/h4WVYTToxqghJvBmUYe6Agt6OmjfMU cg8bkzWUBsDRJdGEE4KAEsp5DR1P6xfqW84ntrw1oakV4moUWYltpkZanscDYbdX87si 4Cvzz6OGNLuYZz6ctWWAdfsVWi/f0D1RaXHVMJiwSnkYVhVn4UDmGeRtGd2yc29MK4KS iPJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3nN4XjOxZEGUqEebS5RnTYv2Qea0UTA0QWQ6uBO/+tg=; b=Sf3VsWLVRxuCB1vuJlCK2uh7eKmTpC0fNXi1yJ9dT2pRg3a9X3PqC30oW4vRqErFwb 8O654AvASuI+Yco9/P288XZb2DPz5+Zflf1yVhFWEKSzHSgL4Vrzf72nLPF0y6IpegwG XDhLFOiT/QBnu7V/4kaK6kjSPhOY9jiJX/i2i0uGngf/LXwLeXMfhGAkhbsqMOnysg6C 9Z0sQnYbHqaAV11PVUyKzjwgWWTmFYon/mYL5gKYgkyCljLnL6R0Xiitrez4hV3iXCab IcAt4eFfpKw/ZIQp7TMUBGdwE7nnxBzTSskUFud1pM6i03l257zeGAjSIvaDwo+jEWON xZQg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si7226192plt.273.2019.02.07.11.17.14; Thu, 07 Feb 2019 11:17:30 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727124AbfBGTPL (ORCPT + 99 others); Thu, 7 Feb 2019 14:15:11 -0500 Received: from bmailout2.hostsharing.net ([83.223.90.240]:56061 "EHLO bmailout2.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726836AbfBGTPL (ORCPT ); Thu, 7 Feb 2019 14:15:11 -0500 Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id 1B6562800B489; Thu, 7 Feb 2019 20:15:09 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id AA3A28372B; Thu, 7 Feb 2019 20:15:08 +0100 (CET) Date: Thu, 7 Feb 2019 20:15:08 +0100 From: Lukas Wunner To: "Rafael J. Wysocki" Cc: 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 Subject: Re: [PATCH v2 4/9] driver core: Fix handling of runtime PM flags in device_link_add() Message-ID: <20190207191508.pa7g5c2vhxksrtio@wunner.de> References: <1952449.TVsm6CJCTy@aspire.rjw.lan> <3655840.AXlINldeOc@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3655840.AXlINldeOc@aspire.rjw.lan> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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") Thanks, Lukas