Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp339756imm; Wed, 13 Jun 2018 00:59:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKMwVSsw7DkfLW6ORkIVXkK2IRpu8F8y97xAOf7iWNBhDPxyYDZ4pmyDfqMEwqGkEsZfFCm X-Received: by 2002:a17:902:ac97:: with SMTP id h23-v6mr4105046plr.140.1528876773657; Wed, 13 Jun 2018 00:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528876773; cv=none; d=google.com; s=arc-20160816; b=dkNVYfQ7ypG4m7Zxfue996FDP1Zrg9tFlB3mIbeiFx7FSrSZP+wdnvfbB2Uml/MJGW 8stPK1ECo3g3f1zkH0mBDMQXrUzceG7Ytavm/yMxz56G8JTcMMWnEG82jD92APSF4mMk WPEqPTXDuw+lvcWC8UX9qahCA0J0fWSk5wLQzOZmFbB+P4Mtm0Lz8jdUqk7g5PblZqlh GNvfigtx2iNj6aeW5yB7sfQ9LeV8plvOvJF2pYfBM5YAJkCIkV78Z0fMJ+tX7aH2euLy v9sWVLMWDuy3YA1jEuITbT4WoPZB3ejadD5PN61jrZL3stOFxL0fDInMT9/T01uvE9qT sqfA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=fIdUJBBZVqdD86TJJVMpEHa/XwGDq6K5QSv+EGJTghk=; b=Vf4lwzfVdRX/Unhhgmt4mcDlnQkgkQ/n1wjuGiJEhUFO9srg4CJyAON8TLERUKUlcv 5vhHLSCfQ7UqIStcqgA+iyeqUNMzu/VHWPEEYI6KamF3IyF17aNjoV95+D4bd5xW7NiF TOJL4qPunMO5Z08f9riHQXR1RShcYpCK+/ZKICSN/4f4HZ1HulcKlf1xIZ1OdnPXfB+K g1uMNb3eB+8qahhrRJIERXDc8/Uetnlo9of8tH6ggocG2ZPzv+2EJ+G4650zB2TTQGtb v+obW8yXRO+67AYvTe7pN41e2EpgiAEIgO5MTupT/J5nDwKkS1oZviKWsk52fDqDIqDp iGhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=s09zyqwa; 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 f3-v6si2272855plf.436.2018.06.13.00.59.19; Wed, 13 Jun 2018 00:59:33 -0700 (PDT) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=s09zyqwa; 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 S934250AbeFMH66 (ORCPT + 99 others); Wed, 13 Jun 2018 03:58:58 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:44093 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754467AbeFMH64 (ORCPT ); Wed, 13 Jun 2018 03:58:56 -0400 Received: by mail-oi0-f66.google.com with SMTP id c128-v6so1465624oig.11; Wed, 13 Jun 2018 00:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=fIdUJBBZVqdD86TJJVMpEHa/XwGDq6K5QSv+EGJTghk=; b=s09zyqwacTaYcWejx6N2pbYDWdLLPeOz6ciTsiLtjNJlqkpe97MOr+iE9TIyBPZVGR GT3TTnhindjZiwy0NcqOjDreqAJPAI5EQB2wnx2yuO9xjfOmd/ws/PzSDyRQIhg4BxRq 6+wLKEEJQoK1uhJZi0PYc3H15nHfixM2EhWg2KD8RNIT+/BlA6KbbP75UqcqEGAy1Puq 7TCl6BFUh34gxhB4r1nopfagOKKu7JURaIGrqzqyMOANTc1NFJvukhM/g/GON2uVgfX7 nLd7PUQC87HJsaYIs5C7ReeFU8zndSoY25kGohxWqqRZQYf0G0+EBlsibXvFmZo/Hgyu TSuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=fIdUJBBZVqdD86TJJVMpEHa/XwGDq6K5QSv+EGJTghk=; b=HwqgBVpwh8OGgLs8dJTO1rL6KQk8VkghxRBxpxG9K/YXGGMhnaZiYJREsVFfgJ8f4X CQQm/Y50Abrf3rnrDBaZjsPYivdb21pyetX+1OjsO+ikp+oezfjC++gjl/OgTJUJGvSP vX/0KXx1FnDxUMQ0WdyzK2G3wSpuI4zufLq3Iib9OHCPJD7rf7mtYcqIcOc7UbnoLwgp gz2JUoz6aeGwUHUcCVfO5aHcwV7mKXkUD+fGBiGztptSvdJGtJAQ7aG3gaNqms3kHHCd rPtS9pj3v4TfGVmtjq5rLr92RZG+UApByDUEica5k1yT9hIVvp85BBMSuHc9apzdolSm lytA== X-Gm-Message-State: APt69E1KcPyXc4oEEZqM28q+HqCfM6Bk1Fq+eksoUvYWXa7dS2b7QxrD N75VgMxzQTLfhF9IFDGhdI6RIHL/zbCU0sUAIjs= X-Received: by 2002:aca:e143:: with SMTP id y64-v6mr3638957oig.282.1528876736251; Wed, 13 Jun 2018 00:58:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1429:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 00:58:55 -0700 (PDT) In-Reply-To: References: <10125310.W3e2TP0641@aspire.rjw.lan> <20180612124424eucas1p101e61369a42132234d103ce52918b08e~3akoRUwbQ3138731387eucas1p17@eucas1p1.samsung.com> From: "Rafael J. Wysocki" Date: Wed, 13 Jun 2018 09:58:55 +0200 X-Google-Sender-Auth: -kRWH2mM_VR0P3igedqGNQqePsU Message-ID: Subject: Re: [PATCH] PM / core: Fix supplier device runtime PM usage counter imbalance To: Ulf Hansson Cc: Marek Szyprowski , "Rafael J. Wysocki" , Linux PM , LKML , Greg Kroah-Hartman , Lukas Wunner , Bartlomiej Zolnierkiewicz , Jon Hunter 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 Tue, Jun 12, 2018 at 9:43 PM, Ulf Hansson wrote: > On 12 June 2018 at 14:44, Marek Szyprowski wrote: [cut] >> >> Is there any way to keep old behavior? > > I think the old behavior is sub-optimal. I am sure there are users > that really don't want the driver core to runtime resume the supplier > unconditionally. I agree. That said, the existing behavior has been there for quite a while and the callers of device_link_add() that have grown a dependency on it should be given a chance to change before it goes away. > I would rather go and fix the few users of device_link_add(), to use > DL_FLAG_RPM_ACTIVE, in cases when they need it. Which BTW was the original idea. :-) > Of course I am fine if we do these changes in a step by step basis as well. OK, because that's what I'd prefer to do.