Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1013817ybh; Thu, 12 Mar 2020 15:30:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvuXvtMU0YjVfFLsDz5VNHlFXwXAvOKs8fCpkOrtucwqFRftksI4+qopHfggJ0SznM5wfzw X-Received: by 2002:a05:6830:1498:: with SMTP id s24mr7174716otq.242.1584052212296; Thu, 12 Mar 2020 15:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584052212; cv=none; d=google.com; s=arc-20160816; b=ASCP8FGE62jPPFnD/dcP0VnreAAq8Vr0mBcvshWY+5UyLgGCHDyADPj/lm4POb94KD BdTuxL4PVu4r/ZBUCv8UZBASBxO4qUxW2dEbjlmbiityxWYUb0HW/ovtYmukCXewhvJ5 IEAcxKyuyCd3JDb5R9XL7/S8wLR/phZWzqch025h87eGTFzMNBqrMez8w+c3RPZWw6T1 EkZSeHJfIySZMpk+NJddoxTaAlCcO2Y+7GekiiObZ2UJEK31YlA1L9wu1Zb3BSg82jKw DTOVysDTaDEeZM5lPUMELDMxQZP6EsZ6FGBAFNw+jFEJNAPp0XWVDYiR1+IGgLi602oj Tcew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7N+RdC+PTzJnFTuhwqLiU9oaQcQG89/UsF7Q5SMY7T4=; b=n7X8GshbQSCZz9uzzyOYd7l1P5721X0/158WF3/B2LGH6jF0Cg4m9Ii1gDWGW9KGo8 78XO4zcPvPBeks2yMRFcNSKs0AxqOv62gP0SY/PC+Tqpff6kHoUNohhtexZUQVg0htbl Agkirh9/3yMVkX0JZ125zJWDzWyPweTQyDBHboLAQr9s/JCR9XjlX2Ra5buPy4bWfrrm r4K3CF38vUruh9RTXIivCekjIBBVG1eeEeAEl9xfyKVRAnrPsIguYIiviZwl3TiDG/xK WgUcEZpca28tYCPpinOh2wWGiICJ0o5r3WDorsSQdUJp7BTUQ5CBHxwXnXKf0i7xWKy2 uvBA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f63si1311149oib.85.2020.03.12.15.30.00; Thu, 12 Mar 2020 15:30:12 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726801AbgCLW2l (ORCPT + 99 others); Thu, 12 Mar 2020 18:28:41 -0400 Received: from inva020.nxp.com ([92.121.34.13]:38476 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726605AbgCLW2l (ORCPT ); Thu, 12 Mar 2020 18:28:41 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 999851A11AB; Thu, 12 Mar 2020 23:28:39 +0100 (CET) Received: from smtp.na-rdc02.nxp.com (usphx01srsp001v.us-phx01.nxp.com [134.27.49.11]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 5DB571A11BA; Thu, 12 Mar 2020 23:28:39 +0100 (CET) Received: from right.am.freescale.net (right.am.freescale.net [10.81.116.70]) by usphx01srsp001v.us-phx01.nxp.com (Postfix) with ESMTP id C7CA840A63; Thu, 12 Mar 2020 15:28:38 -0700 (MST) From: Li Yang To: Rasmus Villemoes , Timur Tabi , Zhao Qiang Cc: linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Li Yang Subject: [PATCH 0/6] Fix sparse warnings for common qe library code Date: Thu, 12 Mar 2020 17:28:21 -0500 Message-Id: <20200312222827.17409-1-leoyang.li@nxp.com> X-Mailer: git-send-email 2.25.1.377.g2d2118b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The QE code was previously only supported on big-endian PowerPC systems that use the same endian as the QE device. The endian transfer code is not really exercised. Recent updates extended the QE drivers to little-endian ARM/ARM64 systems which makes the endian transfer really meaningful and hence triggered more sparse warnings for the endian mismatch. Some of these endian issues are real issues that need to be fixed. While at it, fixed some direct de-references of IO memory space and suppressed other __iomem address space mismatch issues by adding correct address space attributes. Li Yang (6): soc: fsl: qe: fix sparse warnings for qe.c soc: fsl: qe: fix sparse warning for qe_common.c soc: fsl: qe: fix sparse warnings for ucc.c soc: fsl: qe: fix sparse warnings for qe_ic.c soc: fsl: qe: fix sparse warnings for ucc_fast.c soc: fsl: qe: fix sparse warnings for ucc_slow.c drivers/soc/fsl/qe/qe.c | 4 ++-- drivers/soc/fsl/qe/qe_common.c | 2 +- drivers/soc/fsl/qe/qe_ic.c | 2 +- drivers/soc/fsl/qe/ucc.c | 2 +- drivers/soc/fsl/qe/ucc_slow.c | 33 +++++++++++++-------------------- include/soc/fsl/qe/ucc_fast.h | 6 +++--- include/soc/fsl/qe/ucc_slow.h | 13 ++++++------- 7 files changed, 27 insertions(+), 35 deletions(-) -- 2.17.1