Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1119455pxj; Thu, 17 Jun 2021 23:20:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzITaoiez5Qg6jdYqVlGEWTOpkMcg824b59akWYLDNHKca6gn6QsMG7/tMDadHeCbpSLqA+ X-Received: by 2002:a17:906:dbf2:: with SMTP id yd18mr9027948ejb.406.1623997217757; Thu, 17 Jun 2021 23:20:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623997217; cv=none; d=google.com; s=arc-20160816; b=voXZPEdClmHUfbwj2qbeLk2BR1KkOO0ZjazyOwP5icFXS9Vio/lSSjZIPvGUXDoKXj HqVVrHe90BBiP0SnpZS+e4KCGnGn/6d9kEzjaepfLywconXxkMra+6hYGsqq0bk//XOk VIgjhWb2QjCJ8DK4uLobNRkLvZDNpNqSSrEU8H6IGf11yd2OYYi5JQIuC2SbwKAknACD p2qnixZUhklBSzId5cAy4I1VxUvscGg9lxcrk+Bvz6mh3TBEEY0r9RKnRlw/sjM7JVDR dEo5Jyive7wVYkYtyL4yRKDQiRFNfA41OkJIbCPpjKFiLjN1qBhqnxKCrceZQDrQfCBb ofEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=TDd1bH1ScDHhje3qN1l6kejjRqS+62bdwKXZfL+8bx0=; b=FWRsy54ad1knfBQ43ptcsAAgdyD2uP+FVR4hq0pS6RONnM3AF5pgu3hAs6jL9unDS5 6ZXURI2nnIGjvtCu0Yt/ZJZGmsuIs9xpT8AlOoR6cd7aTwiSh22GI8r/seIS5UvJwp4H daVfmI13uoNXeD2P/j8FXM3Ccr2WcJHEQX0b0oG09fFwrmsSpvMKI5IBAtXc0ClRELU9 pDa5IzrJ6qEiHMQL1MG05RVhSu9jvc5SKfCm2EpuiMm2wmSsAlF50VlVOJ0HCVvOJzmH VRl0NgzWsVfqOSZHSEL9GGWKGkaHTzX55Oj4NVS5FOe9bhjsr7cJp7pv4tyQ/UKeRUm6 +h7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qvFw7ZQq; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay17si1723484ejb.438.2021.06.17.23.19.55; Thu, 17 Jun 2021 23:20:17 -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=@kernel.org header.s=k20201202 header.b=qvFw7ZQq; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232564AbhFRFrE (ORCPT + 99 others); Fri, 18 Jun 2021 01:47:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:56562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbhFRFrD (ORCPT ); Fri, 18 Jun 2021 01:47:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 38A706054E; Fri, 18 Jun 2021 05:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623995094; bh=dbWGvEAfiOwyJFvGKuRzF0wsAwrqGBZuvn9lAIDW3UY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qvFw7ZQqWkKlwKOz7Ia1Pd+jC2Bb4oQNjNHRqkIqoN+LC5IaYr7JqiAW1Hk49czfv DuFmxP5vupK1SPyDLBXYt8+NfjerCSxPPNwhmlRN/oyFloXS28jvPIOHOyDlJH6I+c 5K0OQAT9kS2XqxKEaZi4VbpKSkSd1Zg3oBtUfY1icDvkLBzjTKK9irtwk1Il0vsxGJ VKHjG1SRSFV2HU589ZSMPi5AzZtIL8tHrW4K7q0X6Z71MlP7kpdwO+i1lJVQj/AW9C GBk2Ovx/ncjnsJgZhx1LbwrSLHC5Hz+p0m3h7bG3tOBJMItcqkGka6Z0TfQbxrkxM3 M5lYxcK4zCzqw== Date: Fri, 18 Jun 2021 11:14:48 +0530 From: Manivannan Sadhasivam To: Paul Davey Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] bus: mhi: Fix MHI on big endian architectures Message-ID: <20210618054448.GI3682@workstation> References: <20210618033132.24839-1-paul.davey@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210618033132.24839-1-paul.davey@alliedtelesis.co.nz> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 18, 2021 at 03:31:30PM +1200, Paul Davey wrote: > I encountered some problems getting the MHI driver to work on an Octeon > 3 platform these seem to all be related to endianness issues. The modem > interface appears to require the DMA structures to be in little endian, > however the MHI core driver was assembling them in native endianness. > So glad to see MHI being used on big endian architectures :) Thanks, Mani > Using little endian explicitly allows the interface to function as > expected. > > Paul Davey (2): > bus: mhi: Fix pm_state conversion to string > bus: mhi: Fix MHI DMA structure endianness > > drivers/bus/mhi/core/debugfs.c | 26 +++---- > drivers/bus/mhi/core/init.c | 39 +++++----- > drivers/bus/mhi/core/internal.h | 129 ++++++++++++++++---------------- > drivers/bus/mhi/core/main.c | 36 ++++----- > drivers/bus/mhi/core/pm.c | 8 +- > 5 files changed, 121 insertions(+), 117 deletions(-) > > -- > 2.32.0 >