Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1036457pxj; Thu, 17 Jun 2021 20:51:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJxPCzt+Ss5WkMgWDJMBqI1HX2koWrizkUsQHQ6MDLvF0sElSxSuQN7ot1xMpwYb7dk9Jc X-Received: by 2002:a17:907:8329:: with SMTP id mq41mr1888107ejc.319.1623988263662; Thu, 17 Jun 2021 20:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623988263; cv=none; d=google.com; s=arc-20160816; b=0NuXY87c+Z+b0+xM3FvY+GIcpNzYh7qtuHeWub4QpSuOr6E+k48NCzr/UFI+1MIulE XvwX03bID93fimdCM6M5vaQt4W48cZmkNdahk9eAf0dPg0SAij56aa/kETn6JymJRtn/ tdS5MO95QHlIRm2+rzd+jpoEyC4SSoh385N0VNYn1Drei1PQBwHcPMaruc4ykgrR76iK dcDlbdB8PzK5+tOfc1XYkmJP/uCzBgaGPpNjwUIJ7tnkcaOzkYvJyVY52J/xdUxV5rKY INRgeqB3xvzSYapsWjaKYAUt+ms4TLGDgvRnzd2UYSjP5oQ9DV5GSlPfEsoIb92NS6io Xpvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BdIjaeFTZpVsBKHMm9R9wteXnVU412WssR8D0FVx4Jg=; b=HYmNSsw6HxYyA0UCNiDlSNEP0krN655ifp8K7NPnEMvaaWOAkFn/vebMF599rXjwRd Puqs7sg3IVWm5tOc47OaJ680nCs1cM2IqW7fNyy1skv4rdVwxS8nqkcLJrlovWqfcCiC zDyz5tC0RNDwCM4eW6w8o/U34yDGYiqK/7Y0Md+vgwOJMVzgfZNdm1JNTmEkZ6hpPkKr CEnSsj3PlFkBeAFlj+2jvM+4R8H58BB5cL49nefrrKgkCcLw3qMEdrR9A1Z2Y+zNQm29 w2yh4yzPBfi+h/b47KvcP2PfL0B3tiOwjs31SYSQ23qcWYGgNuJltqYkDzltX8J2GJO8 p9cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=HtNa2hwG; 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=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si993763ejp.651.2021.06.17.20.50.37; Thu, 17 Jun 2021 20:51:03 -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=@alliedtelesis.co.nz header.s=mail181024 header.b=HtNa2hwG; 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=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232101AbhFRDeO (ORCPT + 99 others); Thu, 17 Jun 2021 23:34:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232163AbhFRDeM (ORCPT ); Thu, 17 Jun 2021 23:34:12 -0400 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD014C061760 for ; Thu, 17 Jun 2021 20:32:01 -0700 (PDT) Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id C4A3E806B6; Fri, 18 Jun 2021 15:31:58 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1623987118; bh=BdIjaeFTZpVsBKHMm9R9wteXnVU412WssR8D0FVx4Jg=; h=From:To:Cc:Subject:Date; b=HtNa2hwGWi9cGPddUgyzCSYVcioY/Q2DzQGUaQVPQ4PHZ68uNRDbNL80sJhkATOV8 q0XDG6v7tPeu1o6Yyw1U4xKGfI22i48c/jSBi6rdtxlwkk9LM5dyt7XdIXXfhSRIOJ kTMc2nWSJfz8TgUZyTN5DY/4cyZftcX+Km5ju1nNKGamOtCUsd17J3eCliE0OIyFhD HduNlaeoeXZ2qjqSR6o1WGPhRUUINpwl7zKTSL89Qo6HAPR6pHd0NcQRJQ+XquzmFj 1DOU7tz1D66BHJq+3KPBsuWMWCJVrm4JP9hXNvTf9Nk0vzu+iBIDV9GA4D3v8nXIEK YWnWCHwbL1B/w== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Fri, 18 Jun 2021 15:31:58 +1200 Received: from pauld-dl.ws.atlnz.lc (pauld-dl.ws.atlnz.lc [10.33.23.37]) by pat.atlnz.lc (Postfix) with ESMTP id 90AD413EDEE; Fri, 18 Jun 2021 15:31:58 +1200 (NZST) Received: by pauld-dl.ws.atlnz.lc (Postfix, from userid 1684) id 82D341E053B; Fri, 18 Jun 2021 15:31:58 +1200 (NZST) From: Paul Davey To: Manivannan Sadhasivam Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Davey Subject: [PATCH 0/2] bus: mhi: Fix MHI on big endian architectures Date: Fri, 18 Jun 2021 15:31:30 +1200 Message-Id: <20210618033132.24839-1-paul.davey@alliedtelesis.co.nz> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.3 cv=IOh89TnG c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=r6YtysWOX24A:10 a=FyegsYdXSWPfw3ArC9gA:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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(-) --=20 2.32.0