Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1008021pxv; Thu, 15 Jul 2021 22:44:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaimUHDmCf5Gl/HUt+T9Mc45s8nlN1qvb7tqEQ2Pn3V1AgPISynHe/+Vl2VwbxzDP+v3va X-Received: by 2002:a5e:c90c:: with SMTP id z12mr6220485iol.192.1626414272896; Thu, 15 Jul 2021 22:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626414272; cv=none; d=google.com; s=arc-20160816; b=MiT/mOw3LKreASNvqOvj+CQ/xcE+8InVl+fvrgZCpgMVBwMkiiH1i+fgKf7gMQ7TtR c3XndPGxvEpIivIE/Skzn1BjufDh/NvIJfUGRMDmvjr0JmVO9VQi6W+ubsJNdXH+CSUe ph7/CU6blulzgGtVFlb0nVNLRJBTf7n+8iwqkrGmmfB6hRfIFrGS7AYIABe/jaD3Apw8 Wu4BuhrIWEyNtMe4p4hOzNo11pMtQJP9pVFMiXztU0XUXwTso2e7dWnG35lAmIETlVcE WKeVSO4OVhoCs16CtAO5qiTimFpQUx+ZNB481G7IDABiFuCKZu7jpBLztFe3Ih4nmXiP 92VQ== 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=tVE4x84Hj+OyzITUIMr9Ca+XACuvk5GSMQHe3F8MtiU=; b=T1j51hxn30//gPVaUPasZiC7oQmcnYvLE/Tj18299SpRLkXwia306Sj6rwiQCXwT2V mNywy5Yal4Jale1Dw6kONqDZ4Gnbd0aZaDiXFYuyfLEVDBw7Woow7RTJoXqlWy33aI3v LSmkodZNbr+mcrsIBf/n/cJ9bJNc8VepNZ4HO5FncmKw5BxcS0/yhgZv098Yli2j8d8G wa7wJ1o7XOtgnihiT0xTVHqAz2abSJyz3sHzQcCHhuqEmfn7dJJhJl3ZRctTBWSKOyL2 wAzpuIeaQ72PgTcbcNn0+3Zc2DwGkBsyFPfpn/6pcd+mdZNv6oA1N4sm+W+reGmEQvNt vMWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YIGzgdq2; 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 q14si9045155ils.147.2021.07.15.22.44.20; Thu, 15 Jul 2021 22:44:32 -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=YIGzgdq2; 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 S234205AbhGPFqn (ORCPT + 99 others); Fri, 16 Jul 2021 01:46:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:35552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231961AbhGPFqm (ORCPT ); Fri, 16 Jul 2021 01:46:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 15494613DF; Fri, 16 Jul 2021 05:43:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626414228; bh=7Og9mjRr4RSX7ScC1qJ9LPTfU/5gI//bIxkmkWSqya8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YIGzgdq2eluPDfXbLPWrg9avmjJFWDeLtMKeNtqcKBHEs4h+/+mDsCZByYG7gv90O iI+7XASE2W2lm/HU2lsLEf9yr6160MWTdLM2OzLItd7tWvvHiBKQsK+y760tID4GAu clDQ7LM1KkkcUi+jRueVYL2GiSZ7x0ZEtnBSHYnPQUP4zy18Obm/xXfVkOFv4g3Rp9 6Ridp6GSM6YkCpMsYJOgDxg8/kmRnU9mP7jTYMwFDk4UYRO0ShwZzojhzlx+11spoj R23P3Bm+OKimN1w7Ja4tDL4q1iNqENarmFpdDgsnaD/I5wumx8pPX8ewyyLDg3Wv7k HVIMnPhEv08AQ== Date: Fri, 16 Jul 2021 11:13:42 +0530 From: Manivannan Sadhasivam To: Paul Davey Cc: Hemant Kumar , Bhaumik Bhatt , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/2] bus: mhi: Fix MHI on big endian architectures Message-ID: <20210716054342.GD3323@workstation> References: <20210629035357.11091-1-paul.davey@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210629035357.11091-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 Tue, Jun 29, 2021 at 03:53:55PM +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. > > Using little endian explicitly allows the interface to function as > expected. > Please add fixes tag and Cc stable for all the patches. Thanks, Mani > Changes in v3: > - removed change of doorbell helper functions db_val type from > dma_addr_t to __le64 favouring doing conversion only when writing to > context wp fields. > Changes in v2: > - use __fls instead of find_last_bit in pm_state conversion patch as > requested by Hemant Kumar > > 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 | 43 ++++++------ > drivers/bus/mhi/core/internal.h | 119 ++++++++++++++++---------------- > drivers/bus/mhi/core/main.c | 22 +++--- > drivers/bus/mhi/core/pm.c | 4 +- > 5 files changed, 109 insertions(+), 105 deletions(-) > > -- > 2.32.0 >