Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp104504ybc; Mon, 11 Nov 2019 21:21:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwOMZ5Fq/Yjidac77Y/p+S/OEvASPjx3nYEqB+NhGpR1tz7zuzYl7ZWFrfIdMlQdY3+A5xP X-Received: by 2002:a50:84e9:: with SMTP id 96mr2897865edq.182.1573536080725; Mon, 11 Nov 2019 21:21:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573536080; cv=none; d=google.com; s=arc-20160816; b=KROyP4GdbYLgiJ2YqbORtZkJwje5WFIyuUm2a4pJgDZ9sAcKizod5/59G0DwM+CoeY /8PI7RhfntFMJXoUrW1kLfc/uhbM2bdZxVmwG6B9vEtVbhtglW6u+w8RxXryRQUh7Mef 4kyPiH791cqQVQ/K7mVTvTkHm7LsZUEdUIfEPkCMnGW/DTYGYpScx7MLcLBw39xb+e9d JkpdVGpv2cjhQlRRsoX8ODkxMH9hWv8YqPD459fG8K38eUegf1zSNyl6/St5Phz233ID OphIP2ty4zF27XP/z2sy3c65YSMVGK3zKXOViLuxXsZibwBbcYu5Vl/IJ1p2s19w4D8l ZJeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+sjdYVv8CDJT89mCUOL1IQ+FuBUStP5YIxV+BRhizMI=; b=ibbUOUtCBl56g/mqv9co8noqjJfEjVvhIn+Kzq4ue2UNOp1ZkXOnhAKe8LrtIN6L27 z3VsjoRY4HO7y60mgPIBOd4bFa9MJK/GIhHxVFyx+7B76SQQBvX5OWevGEdrHLOGtKjq MHXYWLeARsEueqQUI+5r0k2M0NRqvdTYuZy/vz6G17WfZlqBfPFY3476x7m+hOIKWQ3K OE+V7c2J+Je9JhAvr6LD908sf1EK79dSmMbHCqIhqfcB6ZRNF7WtLnVaVFNMc+u4oZT9 f4RhFLUQXbWNy6PiZ9b8nUHVNDqx4nXgxLV6NL5uwHBgy2harkXCi8pOxn7ANhwLbYrV PL9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="AwabfAw/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id y16si10522431ejw.142.2019.11.11.21.20.55; Mon, 11 Nov 2019 21:21:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="AwabfAw/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1725955AbfKLFR7 (ORCPT + 99 others); Tue, 12 Nov 2019 00:17:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:58012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbfKLFR7 (ORCPT ); Tue, 12 Nov 2019 00:17:59 -0500 Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 629E021783 for ; Tue, 12 Nov 2019 05:17:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573535878; bh=+sjdYVv8CDJT89mCUOL1IQ+FuBUStP5YIxV+BRhizMI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AwabfAw/3h3DTKe7ptAw21A+aiLqSS9Yxtb7Av60cvCyaX4JpmVRVRr8OsqAf4lNV QEz7Mq+KHshF2+zP6/N541Gce1O1w8RSqjiJso4xEz746D4OsJ0PWU9AL+EsC4yve/ 7mPCYSMKbwQdGzxYkXiLnR/LlvpOcRHS0co25vjo= Received: by mail-qv1-f45.google.com with SMTP id c9so5884916qvz.9 for ; Mon, 11 Nov 2019 21:17:58 -0800 (PST) X-Gm-Message-State: APjAAAVseOsIPduV6i6hCBBs0xyEEIT4ucxkABRnbEzRk2j9+IKvdMA0 mG/I2Ye2ibj8EwUqqZ7zEuLqsWCzJQy6SNu9ba4= X-Received: by 2002:ad4:462d:: with SMTP id x13mr7948364qvv.105.1573535877525; Mon, 11 Nov 2019 21:17:57 -0800 (PST) MIME-Version: 1.0 References: <20191108130123.6839-1-linux@rasmusvillemoes.dk> <20191108130123.6839-5-linux@rasmusvillemoes.dk> In-Reply-To: <20191108130123.6839-5-linux@rasmusvillemoes.dk> From: Timur Tabi Date: Mon, 11 Nov 2019 23:17:19 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 04/47] soc: fsl: qe: introduce qe_io{read,write}* wrappers To: Rasmus Villemoes Cc: Qiang Zhao , Li Yang , Christophe Leroy , Scott Wood , linuxppc-dev@lists.ozlabs.org, lkml , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 8, 2019 at 7:03 AM Rasmus Villemoes wrote: > > The QUICC engine drivers use the powerpc-specific out_be32() etc. In > order to allow those drivers to build for other architectures, those > must be replaced by iowrite32be(). However, on powerpc, out_be32() is > a simple inline function while iowrite32be() is out-of-line. So in > order not to introduce a performance regression on powerpc when making > the drivers work on other architectures, introduce qe_io* helpers. Isn't it also true that iowrite32be() assumes a little-endian platform and always does a byte swap?