From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: Re: [PATCH] firmware: qcom: scm: Peripheral Authentication Service Date: Thu, 02 Jul 2015 11:37:57 -0700 Message-ID: <55958505.3020508@codeaurora.org> References: <1435693579-16109-1-git-send-email-bjorn.andersson@sonymobile.com> <559564AC.6030100@codeaurora.org> <20150702173725.GE9633@sonymobile.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:45951 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753713AbbGBSiA (ORCPT ); Thu, 2 Jul 2015 14:38:00 -0400 In-Reply-To: <20150702173725.GE9633@sonymobile.com> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Bjorn Andersson Cc: Kumar Gala , Andy Gross , "linux-kernel@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , "linux-soc@vger.kernel.org" On 07/02/2015 10:37 AM, Bjorn Andersson wrote: > On Thu 02 Jul 09:19 PDT 2015, Stephen Boyd wrote: > >> On 06/30/2015 12:46 PM, Bjorn Andersson wrote: >>> + >>> +int __qcom_scm_pas_init_image(u32 peripheral, const void *metadata, size_t size) >>> +{ >>> + dma_addr_t mdata_phys; >>> + void *mdata_buf; >>> + u32 scm_ret; >>> + int ret; >>> + struct pas_init_image_req { >>> + u32 proc; >>> + u32 image_addr; >> Please mark these as __le32 and do the appropriate conversions to little >> endian. > Just out of curiosity, are there any big endian systems out there that > will run this code? The option is available to turn on if someone wants to. I'm not aware of anyone that's doing it besides me though. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project