From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Wunner Subject: Re: [PATCH v2 4/9] driver core: Fix handling of runtime PM flags in device_link_add() Date: Thu, 7 Feb 2019 20:15:08 +0100 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 Return-path: Content-Disposition: inline In-Reply-To: <3655840.AXlINldeOc@aspire.rjw.lan> Sender: linux-kernel-owner@vger.kernel.org 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 List-Id: linux-pm@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