Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1685150ybz; Thu, 16 Apr 2020 13:39:50 -0700 (PDT) X-Google-Smtp-Source: APiQypLQdmN766nazo3qNf5PZkpTG0s5M9+cLUhf+6HpoqRKzG3i4KgLPlQgs5aFfrZBZVipha3D X-Received: by 2002:a50:c40b:: with SMTP id v11mr37934edf.25.1587069590575; Thu, 16 Apr 2020 13:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587069590; cv=none; d=google.com; s=arc-20160816; b=hngvFxdIDGNWqvc6oDP84Ix2JWZArtNHA/bzKLX+WwNJ/hJTmQQVvCu6hA8zvc2bv8 eZr7ZHjHX9bqH1UvTKFEgobSVEl5o04bcb8QwbgcelTZ5kA7to73T8AfQWdA6OoFWM+E 6xHRVXl9/q2oRs3DeQOLrKH3IO3W/bdHP3JJL1kxUZGW64tUX3YeAVraBelIFPHSsUYE y9+TRD0ClqylKNlChAqJF4YF1Io57ulml3uQJwQgGl6fG3/op/03uv//gE2UQfNeGFFG adm61h+Sb0M2F9rr76gvTyEl8kkiLibKoQNa283TYbfweDSspSzMbdYab9ycB2Dz0MOa jt9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=i7rw/RtCj8mfGz7yhHkYABF7/EhksBCp43vLFplujnY=; b=p+Ku/cYMnJ2s1ocYvsmrQaqQMsPsKb+q7djBMQ2VTtg4lFM0MItcns6nmh1lq8ru1W roFV1gNoXdoRW3AOTqw38BtKJhnM8Bw6qfLroZnpIFfE8T9wnnyj/8sk/gRywBvOK3aC LnmsD2xYDXq6KL86GrbwGkOpitmNr/WAALu1b6H8w20ZFZuS4GimA4wd0dmmUbPxKfJX 1nwcsA3H6NU7cmogAJGgbM1GWGcjkXcfzM89wP+QVp1J+LP7hm7Yp9rMTJISboIUquS0 23ruOkPAIcyYMdGGtG5Zl4SJ8jK0NhhVNtGLrXo0cuIyuB/JYFxgB0ezFNdpESC7UK53 Gg6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=m4npXIVv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id pk26si8830600ejb.404.2020.04.16.13.39.27; Thu, 16 Apr 2020 13:39:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=m4npXIVv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2895687AbgDPQPE (ORCPT + 99 others); Thu, 16 Apr 2020 12:15:04 -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 Content-Type: text/plain 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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[] = { -- 2.17.1