Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp603348ybl; Thu, 12 Dec 2019 01:44:14 -0800 (PST) X-Google-Smtp-Source: APXvYqwl7mBnYjzqQA4GXmo+OasEiqMVMITJzpqv1MGE0H3f8IRWPvxTkOPUyX+tKIYUyyZ384/r X-Received: by 2002:a05:6830:18d7:: with SMTP id v23mr6820165ote.213.1576143854862; Thu, 12 Dec 2019 01:44:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576143854; cv=none; d=google.com; s=arc-20160816; b=G58Ic3BLAulMTUHxokHVTrsnbtZHGgkdPvATAAIF0qffXbfhNcdc+EjOaMjHrt8sMK F8aKT/CRcoL/onNIrnJ5Z0Yp11ZI3mY/q0djzXWJTjz32wcOX+UhZB92p54cWgjVITxg xsPtGt4ARy716Grov9BkM//uYL6BGfEYfX9l/snhZecar1qpXLJX7Ox9yFTY1EOfrHrh Y0kjCA/q4ujjvA1TL/95Dqya2PRXhHeLsv42QwaxlPWw6oLLQ6Os7nSeynQS8qmkz+AA r5DT8TEhUsmZSYbYSlVjIx14Oc33tUd0mJVrjIYGBWNhfA9lT/PO/gR4zdTITZXDPFLw Sm0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=W7ta/D/nEVXWd0swsme5vM2t6D5+rqjLo8hFeAJNVHk=; b=DSkdpLkkJ5B4WbqGVVj+5UhzI9moDed03fo7RyB4FG/t20Sddpkla35ege2hGgKAAN eNzZugFD/K6oUR74TAVxRyUtbZRoht5G3kIWD53Tl/VrlyZoA3Gar+cRPv7DpF1eXHW1 htBkBaICGdPQvfjV5bLueiqH3Hv0z+aoqA/Fpo2Ob+2MbcGYCCSQxvVgI0FpNwJ+3G7G iu7uQ1pJLPT/cEnBMXpUMfvUUHIH42IvQ3PB727Y8UzJPR/JKhIfqbGOXg1xQvhu9OC8 ir70zhtsi4PzziL9aWza2RsbyTvzLwzzzCzgag/UsGu0421kkjsQJy9YmYUMuqHHIJk6 Sg2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b="rVmo3/Ey"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l21si2817960otk.142.2019.12.12.01.44.02; Thu, 12 Dec 2019 01:44:14 -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; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b="rVmo3/Ey"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728465AbfLLJn1 (ORCPT + 99 others); Thu, 12 Dec 2019 04:43:27 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:13260 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728374AbfLLJn1 (ORCPT ); Thu, 12 Dec 2019 04:43:27 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xBC9bXog013369; Thu, 12 Dec 2019 10:43:15 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=STMicroelectronics; bh=W7ta/D/nEVXWd0swsme5vM2t6D5+rqjLo8hFeAJNVHk=; b=rVmo3/EyUG85blnhiM7tQSAV0dAr0Fjzn1vGZx5fUdsQC5GoLV2gCUln9bv0km9RvQix QWPstxdaGvO9YjYG/219WQ/r1mb0otvJ+tXz/KLHXF26HFQEfInGOpsAj/DWZB+k0QJB Se3enbBVWQfMKbbvVhs4eB88XJMK0BL0IOcGWtgfWWvxA6gNziBTECpGfwck4+fQjYa0 D0nVGyYuywdDuc/96zKZFKcVLdWb98BEjxMJ6lSexJ7VIzG6vU3OOxbZxvp7M7Iy0cFS 95vW7nPBuKvyL1E+UMrnBfN5pRjm7Qh5+Q5lQoUo/NuIAQCLoHSETofACQKe3IEynj34 6w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2wrbrfpma4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Dec 2019 10:43:15 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1DD6910002A; Thu, 12 Dec 2019 10:43:14 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EE8442B8FFA; Thu, 12 Dec 2019 10:43:13 +0100 (CET) Received: from SFHDAG5NODE3.st.com (10.75.127.15) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 12 Dec 2019 10:43:13 +0100 Received: from SFHDAG5NODE3.st.com ([fe80::7c09:5d6b:d2c7:5f47]) by SFHDAG5NODE3.st.com ([fe80::7c09:5d6b:d2c7:5f47%20]) with mapi id 15.00.1473.003; Thu, 12 Dec 2019 10:43:13 +0100 From: Fabien DESSENNE To: Paul Cercueil , Ohad Ben-Cohen , Bjorn Andersson , Rob Herring , Mark Rutland CC: "od@zcrc.me" , "linux-remoteproc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v4 2/5] remoteproc: Add device-managed variants of rproc_alloc/rproc_add Thread-Topic: [PATCH v4 2/5] remoteproc: Add device-managed variants of rproc_alloc/rproc_add Thread-Index: AQHVr3iIZbYIxXYBCk6/jTgSiJoOx6e2MW2A Date: Thu, 12 Dec 2019 09:43:13 +0000 Message-ID: <6fff431f-dd3f-a67e-e40b-8cee4060c37a@st.com> References: <20191210164014.50739-1-paul@crapouillou.net> <20191210164014.50739-2-paul@crapouillou.net> In-Reply-To: <20191210164014.50739-2-paul@crapouillou.net> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.48] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-12_02:2019-12-12,2019-12-12 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgUGF1bCwNCg0KDQpHb29kIGluaXRpYXRpdmUhIFNlZSBtZSByZW1hcmtzIGJlbG93Lg0KDQoN Ck9uIDEwLzEyLzIwMTkgNTo0MCBQTSwgUGF1bCBDZXJjdWVpbCB3cm90ZToNCj4gQWRkIEFQSSBm dW5jdGlvbnMgZGV2bV9ycHJvY19hbGxvYygpIGFuZCBkZXZtX3Jwcm9jX2FkZCgpLCB3aGljaCBi ZWhhdmUNCj4gbGlrZSBycHJvY19hbGxvYygpIGFuZCBycHJvY19hZGQoK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