Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp620501ybl; Thu, 12 Dec 2019 02:05:51 -0800 (PST) X-Google-Smtp-Source: APXvYqwUCaYed6FqsR4Sa+UyanoZyEvlS7BaRkchLt13Bs+tS0yR3ExizjrXn6OLF7LPMNaHZ2mQ X-Received: by 2002:a05:6830:4a4:: with SMTP id l4mr7372293otd.91.1576145151062; Thu, 12 Dec 2019 02:05:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576145151; cv=none; d=google.com; s=arc-20160816; b=CzfaR1ue8SEe5/H5+lU678OLEFhv9w90TqasDINTlgUKBbQqrg8CzhgUxSmaQ2lzCY gMMflos8YwyaZooL/UdkbI8tSFG8z3sgQ6vTf751cGq/HOwS9ckSn01vSdipTj/pgF4S /JSuS7kwWCzs94kKRUWgcPElBdUyVj8vLDTb3zpfqtiq0RTeZ4zosIgeIhi/hj+ldZfy 3yZTotPMKBSLFPDdk59JJZ4Gwvjx2jpw6yJHlciuLYLAW5wyFJcJ9cBHkvQw23ZyVQ2M nhZ8i5jZ1u6Y+xyrNpbh8xlfoAR2vs7u87bz90rwqSrL+PXQ2E0t27JynJI0s8Yz4tqo yxMQ== 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=dpMHjjbInUpLUskSrI7RT6ikCEHKPk+prPxxqthL2VA=; b=pRMnVJZ6Ve0YoUCXWIQztLmmgrc60oJF8namoQoGlHRVbML/oNVuMvCPPL7iVZqWVJ rpHt6Xht20R+Oaej6/2KqizOa2pxqgq3gjVhf7tl1JXqozRDlVP0FI8qgnzpcUPsnQv7 tPGfRitd0m/Pu8bpsDcRgaPuPOutt2syPOdBsuv9ZcB159yKwvMwkpHq9dBTnnM9KEI+ N44ugZtO5n3tzEgoHW8PWIljJyib4DLxfAq4B7D9JYzPhaOq9GRkeEb8rPCdXYate3xI Y+6EQA6NEK8xuL3KucZBJ+dvFzYHJY1QiBgK8VrqmnlSpSR+UzortHiY4oJoh8zxMKc7 BHiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=siwB0OfA; 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 g26si3143271otn.180.2019.12.12.02.05.27; Thu, 12 Dec 2019 02:05:51 -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=siwB0OfA; 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 S1728435AbfLLKDx (ORCPT + 99 others); Thu, 12 Dec 2019 05:03:53 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:18042 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726382AbfLLKDx (ORCPT ); Thu, 12 Dec 2019 05:03:53 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xBCA3IR0026906; Thu, 12 Dec 2019 11:03:39 +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=dpMHjjbInUpLUskSrI7RT6ikCEHKPk+prPxxqthL2VA=; b=siwB0OfArfvejgfvIJESwVe1mBfRs6cY8v5/+HJec5eCjnnxqS0zSLQPNkrbQXfKaXsc 1c7kQ6LpoQyZFunsETi4FpPUVvTRZF2IwzOwtLbXgSn9ZdxTfJbQ9qxArwn12MMw+yLw apy9PlLyXnHyEGnMWhVMLIUEP0q+sccZ9t2Y+RMgcVwxXsul1i40Wb7f1uPAsU70SOj+ 6yUO8fRWDeguhvJx9FRIsnH3Yua3NDdSo+TqjWLEh2dOeWdx9yTCaRllFA7cUc3ytJBu ICFFZW4B18/scFB9eKyCJWq6IWSZdCKLs24w3Hfbzra7T+J4o2q/rxuu9YiQ43R7SPj/ 3Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2wtfqh8vus-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Dec 2019 11:03:39 +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 2DE5F100034; Thu, 12 Dec 2019 11:03:30 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 9BCE42BC7A1; Thu, 12 Dec 2019 11:03:30 +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 11:03:30 +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 11:03:30 +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 3/5] remoteproc: Add prepare/unprepare callbacks Thread-Topic: [PATCH v4 3/5] remoteproc: Add prepare/unprepare callbacks Thread-Index: AQHVr3iM0Th6FxYEikio3vlP+UikqKe2NxmA Date: Thu, 12 Dec 2019 10:03:29 +0000 Message-ID: References: <20191210164014.50739-1-paul@crapouillou.net> <20191210164014.50739-3-paul@crapouillou.net> In-Reply-To: <20191210164014.50739-3-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.51] 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 SGkgUGF1bA0KDQoNCk9uIDEwLzEyLzIwMTkgNTo0MCBQTSwgUGF1bCBDZXJjdWVpbCB3cm90ZToN Cj4gVGhlIC5wcmVwYXJlKCkgY2FsbGJhY2sgaXMgY2FsbGVkIGJlZm9yZSB0aGUgZmlybXdhcmUg aXMgbG9hZGVkIHRvDQo+IG1lbW9yeS4gVGhpcyBpcyB1c2VmdWwgZm9yIGluc3RhbmNlIGluIHRo ZSBjYXNlIHdoZXJlIHNvbWUgc2V0dXAgaXMNCj4gcmVxdWlyZWQgZm9yIHRoZSBtZW1vcnkgdG8g YmUgYWNjZXNzaWJsZS4NC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