From patchwork Thu Apr 16 16:13:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud POULIQUEN X-Patchwork-Id: 11493419 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 711211392 for ; Thu, 16 Apr 2020 16:15:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 59B6022240 for ; Thu, 16 Apr 2020 16:15:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=st.com header.i=@st.com header.b="m4npXIVv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2636648AbgDPQOi (ORCPT ); Thu, 16 Apr 2020 12:14:38 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:45368 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2442785AbgDPQOg (ORCPT ); Thu, 16 Apr 2020 12:14:36 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03GGBqO0014914; Thu, 16 Apr 2020 18:14:32 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=i7rw/RtCj8mfGz7yhHkYABF7/EhksBCp43vLFplujnY=; b=m4npXIVvf17hNsHFXkA/EiYKrvP9Wbk7Mift9UB6b2O2h1/3cHsaGTXmB3H3FfhQ+mqa G3Q0aWuuCvF4hBGzb7VHrG3TOHTdACHf0mfkra4XKtJB3ghfOYpiTtOr1zb1s0R2ywyh hBM/4YkoQTfV+Kt9/rtiufieh9CVm5bSfKwHogb0/fnBipy2rI4chkl7BTP8P+rbq+2w bX42EDitSKu16ku0oywvqTNTKZgFUKGdhOPVAMcgb1aJu2FlUqeHq7fmZn5FzAycdl5e OvzZ65uWBZAuS88A3lIuXA4V5w/Mf1UARxSY1njoX5BZRRsVnZEmbBiBnTYMiRINb1lA Uw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 30dn75umff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Apr 2020 18:14:32 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 79BAF10002A; Thu, 16 Apr 2020 18:14:32 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 6EF222B2D2C; Thu, 16 Apr 2020 18:14:32 +0200 (CEST) Received: from localhost (10.75.127.45) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 16 Apr 2020 18:14:32 +0200 From: Arnaud Pouliquen To: Bjorn Andersson , Ohad Ben-Cohen , Mathieu Poirier CC: , , , Subject: [RFC 17/18] remoteproc: stm32: Add the pa to da ops. Date: Thu, 16 Apr 2020 18:13:30 +0200 Message-ID: <20200416161331.7606-18-arnaud.pouliquen@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416161331.7606-1-arnaud.pouliquen@st.com> References: <20200416161331.7606-1-arnaud.pouliquen@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-16_06:2020-04-14,2020-04-16 signatures=0 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Add pa_to_da ops to translate the physical address into device address. Signed-off-by: Arnaud Pouliquen Change-Id: Ie1aa26769635d6d4c4581486700c4061f0f99ff1 --- drivers/remoteproc/stm32_rproc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c index a18f88044111..1dd4c0f9c423 100644 --- a/drivers/remoteproc/stm32_rproc.c +++ b/drivers/remoteproc/stm32_rproc.c @@ -507,6 +507,7 @@ static struct rproc_ops st_rproc_ops = { .find_loaded_rsc_table = rproc_elf_find_loaded_rsc_table, .sanity_check = rproc_elf_sanity_check, .get_boot_addr = rproc_elf_get_boot_addr, + .pa_to_da = stm32_rproc_pa_to_da, }; static const struct of_device_id stm32_rproc_match[] = {