Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp561171yba; Wed, 15 May 2019 06:14:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5iMzozwAteZPUj+n0Mg9SLN7ULmhukI0tULrgUU/RJzbw09BBuWp7Z9g8bY1BhhzemO+9 X-Received: by 2002:a17:902:2ba8:: with SMTP id l37mr22793522plb.229.1557926040258; Wed, 15 May 2019 06:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557926040; cv=none; d=google.com; s=arc-20160816; b=KccxI4KphnYlACrsdditktBDdkjHVgoZgI/b+LntZvI7sAfSU+gZqhTkESq4CSYbDo /jI+S+U9YD1rvRRl/BL/01bmjbk7RxGEKZ+Cdix8DwPNShCjEy62luy9Fnc5krtRvoBy OYPaYAF0ZZuFfAjSpCptVT7IaN4US1JCun1HlKG4PHbBvfmPwyoWwHU+OgbTUVZIQwgR eZZcwJchMEoFoHQ5zU/DxnsZUjTFNDaUhi6uSrA/dP9mO72+GRIQ/EEYWAzRPcJV58A+ wbJJiQOYj1kYopEd+IYMHqbuglH/53SghYmsBO3nG8rd8E3X7XgMGRYBvYVwD5pYCp8L zSHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=8gW4OV6hlwcWKYSJ9ubV4B9vvzQp9RHTFnttoWQRbC8=; b=lgRukiUyoLuT/JRpDrP/4j5sXNAch9yO/WgpX6eqYCNgLRhEVkjwiCFb8JUENVxwfF kq5TzbOS1rFqs/mKYDueNYV+GizipITPRkt18NAWYp90KSt7dDvSOssAcW1g/jOAw3RB XSeKVI0VgF7sb4Y9L2ciNVtIYxlpaTowH5kAi8WhcN81O1/OJF30LhhJ8/hrkM2RKH1+ oPzXgvz9Vex9D1yuXCDqaZeojR+PTFpwVWMLzsNyrj7Gnd2Cb3p2cqbr3pBdR+FzYatL /P95DD7ULMX3gGgQ6WyCsMWyok3hus43eZEzGOm/2rmWlT9KNin7g6t5ehFUVgBdGiT0 oSEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b="0o/obq/M"; 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 t9si1772634pga.473.2019.05.15.06.13.44; Wed, 15 May 2019 06:14:00 -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=pass header.i=@st.com header.s=STMicroelectronics header.b="0o/obq/M"; 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 S1727568AbfEONMX (ORCPT + 99 others); Wed, 15 May 2019 09:12:23 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:62266 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727388AbfEONMT (ORCPT ); Wed, 15 May 2019 09:12:19 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4FD2OaG022898; Wed, 15 May 2019 15:12:03 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=8gW4OV6hlwcWKYSJ9ubV4B9vvzQp9RHTFnttoWQRbC8=; b=0o/obq/MuqzQjBIOsYvfPNxULfMghhvDdt06quUJu3ztC6CxnOCJlF2NFa58K8+1gJBS bL6WaPiy5zoY7SvNiLVewruh4ZRaW1s5mpRt6HhFT/eXmt8lj4WkSxjtubvgxzKWePIu YxTDZR2P4FDl0ay0P40lWrDssNI/uuZ0/cQrTDsroBMLoKBSQvg8m6+T8bBH8SCWB+L+ rtDD9F/3pqnm9tq77g0zGbQ8UiQubwmSNRkiz+hCxikh5aYbv935naydhyT++55XbcSa AXNuHUx7/6CtURTHJC72VVbj1pDHiXlK6xZVk1V+OSJMmviR0K7SfgmkZ+VE81Rtu7qN GQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2sdkv00p8e-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 15 May 2019 15:12:03 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id AEAED31; Wed, 15 May 2019 13:12:01 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5AF5727F5; Wed, 15 May 2019 13:12:01 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 May 2019 15:12:01 +0200 Received: from localhost (10.201.20.122) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 May 2019 15:12:00 +0200 From: Benjamin Gaignard To: , , , , , , , , CC: , , , , , Benjamin Gaignard Subject: [PATCH v2 0/5] Add of_device_link_add() functions Date: Wed, 15 May 2019 15:11:49 +0200 Message-ID: <20190515131154.18373-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.20.122] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-15_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It may happen that we need to ensure the order of suspend/resume calls between two devices without obvious link. It is for example the case on some boards where both panel and touchscreen are sharing the same reset line. In this case we need to control which device is going in resume first to do only one reset. An other example is make sure that GPU is suspend before composition hardware block to avoid pending drawing requests. To not let everybody creating relationship between devices for free of_device_links_add() has to be called by each driver and not in the core. version 2: - only keep of_device_links_add() and use DL_FLAG_PM_RUNTIME and DL_FLAG_AUTOREMOVE_CONSUMER flags to follow Rafael advices - reword function description - try to use a more explicit property name - rebase on v5.1 Benjamin Gaignard (5): of/device: Add of_device_link_add function Input: edt-ft5x06: Document suspend-dependencies property input: edt-ft5x06 - Call of_device_links_add() to create links Input: goodix: Document suspend-dependencies property input: goodix - Call of_device_links_add() to create links .../bindings/input/touchscreen/edt-ft5x06.txt | 2 ++ .../bindings/input/touchscreen/goodix.txt | 2 ++ drivers/input/touchscreen/edt-ft5x06.c | 2 ++ drivers/input/touchscreen/goodix.c | 3 ++ drivers/of/device.c | 37 ++++++++++++++++++++++ include/linux/of_device.h | 7 ++++ 6 files changed, 53 insertions(+) -- 2.15.0