Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp774346ima; Wed, 24 Oct 2018 09:02:05 -0700 (PDT) X-Google-Smtp-Source: AJdET5cc/IASxWw7srWF26kCZjD0ovqptm46rcBCL74WvE4szmiiVTEx0MdbEZ1sT0jzG64XcNxJ X-Received: by 2002:a65:4244:: with SMTP id d4-v6mr2300747pgq.289.1540396925013; Wed, 24 Oct 2018 09:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540396924; cv=none; d=google.com; s=arc-20160816; b=I/cx4Q7CBVdgeS92WpgAf5CVz7hJWVEb+MJxOPsWS1r1WKxydyr9u/Zpmb0wbmhzad 8nNgIEx+aw27zA1nRtILPfN5ObUSM3drTimnZvv0n4oQ3u4as38Cf9rz3yUPjdXEvEiQ 5uiQX2+FYWhKOl5eSaBsRV4Oj+VTT9fQOL4z8u97pO4MvfqqYLWNg+hneH2KYMw43C5E ynLqvs8OgUm5G89DEfl2Sk2ePr+nSLL92TbYFnC5nQ2WcSx/gmfv73jUFWayPPm9DExD 7p6JYu/NreacCB94/3G2dZSFOUyzgLhu2YC+Du2bfGe6W/GxanuQ6Q8RR2tC0gN+YdRq uy/Q== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=EQy8OF0jDqpVN1UnAbpKSsoSU6l/f+ebSja6j57ZPiI=; b=s9g2adnV01WHZ2WU75qWp63px5wH8nljEd1XBnto126sxpATmJ66j2z8oB8L/3S6y7 B2AfpAzpxKPOy2hcp6smd+NdtetSiWqtkbhqd/lk0LiH4eaFw5SqGTFEwXmYAIwPcM3C SCf4LR/GIp1y1ydofW9mNgBBeh/QRDrwkNmxIXQtHadXYj4m4xsGGrMpM0jRHv0YusRJ Q9OWINscje7PKGnG5TyRLbftGMkEu8YH76jL/5RXl0265qu+1tR8/7TAbYlv5ck0Qe7C dB25HEnjPxjbFEW4qdZbnxRFcHAfhJQt4B4h36g0rU0wKfRo8L5pgVTqXIH2Dq2a9nyy rvpQ== ARC-Authentication-Results: i=1; mx.google.com; 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 e2-v6si5168627pgc.233.2018.10.24.09.01.44; Wed, 24 Oct 2018 09:02:04 -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; 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 S1727030AbeJYA30 (ORCPT + 99 others); Wed, 24 Oct 2018 20:29:26 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:44948 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726449AbeJYA30 (ORCPT ); Wed, 24 Oct 2018 20:29:26 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w9OFnY0d007403; Wed, 24 Oct 2018 18:00:39 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2n7stx3q6m-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 24 Oct 2018 18:00:39 +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 BB73C3A; Wed, 24 Oct 2018 16:00:33 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8B52352BE; Wed, 24 Oct 2018 16:00:33 +0000 (GMT) Received: from SFHDAG7NODE2.st.com (10.75.127.20) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 24 Oct 2018 18:00:33 +0200 Received: from SFHDAG7NODE2.st.com ([fe80::d548:6a8f:2ca4:2090]) by SFHDAG7NODE2.st.com ([fe80::d548:6a8f:2ca4:2090%20]) with mapi id 15.00.1347.000; Wed, 24 Oct 2018 18:00:33 +0200 From: Loic PALLARDY To: Suman Anna , "bjorn.andersson@linaro.org" , "ohad@wizery.com" CC: "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Arnaud POULIQUEN" , "benjamin.gaignard@linaro.org" Subject: RE: [PATCH v4 08/17] remoteproc: add alloc ops in rproc_mem_entry struct Thread-Topic: [PATCH v4 08/17] remoteproc: add alloc ops in rproc_mem_entry struct Thread-Index: AQHUJavhp2IatlcKrkSD4+Xo4tSbjqUtv40AgAFQvkA= Date: Wed, 24 Oct 2018 16:00:33 +0000 Message-ID: <78d8875a7f444632b758103113d51f5b@SFHDAG7NODE2.st.com> References: <1532697292-14272-1-git-send-email-loic.pallardy@st.com> <1532697292-14272-9-git-send-email-loic.pallardy@st.com> In-Reply-To: Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.49] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-24_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbC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