Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4088942ybg; Fri, 25 Oct 2019 13:09:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCEOROmNdgYN+dGAMgMs2EJBv0EzpaL8cUXH0WZ8x8ruPb5zfqv5ts/Wsdi+AiqvR64xZ+ X-Received: by 2002:aa7:cfd4:: with SMTP id r20mr5980833edy.268.1572034167843; Fri, 25 Oct 2019 13:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572034167; cv=none; d=google.com; s=arc-20160816; b=WogjeCHCatK4hf2H3Xn/04DnPRCDA8ia3WBPtm7tMOflUP5UvPwGwhvKqW4KDn6CMP WoLM9kkriNtVY1RKRuNX4Qb3i9IO2PEPAr/H3CM+z8ttxygz0SiWzisvJSRSIR5E1LaA spBgIBWHgZa0ozBvKrq9FThmyj5TaiETN9EohPexRfiL/+T87D+ximkKfvwWYhotf2+v rMSqPMxvfsyxDvVqzPd/zhJbU3rDuzDcPRrWhphxurSC3Xx0tYDpFgnlNZlseW2Tu1BA FMfjnpsz6I/S/akgzDV8lj82yD/qe1nWUYF7tuU1HJqweS3zn4OKs/zrTWIzbK143bc0 UZOg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nNhTW3U2Xf+f8X6ztyGJ0vdPsrVEzgnkoLb09kGESGY=; b=sLZLKWVpVBusFvynxH51xcIqJUySqckZk3beKmhXmFdFmU0tl0jkw5Z2d5iE02zAXo 9rRz6tjZTwo8f51uzuXEpReYZWzmI9NRU9PcmLsi4JrLARWeddaTlAQDPyvKLjfp7a6y 3p6/TtAWoFXTGYdm/nB+8x4ThqnX3WgRaM3VYC86nqt9B67rqXGZeeuKfMSrDtrsFKC7 MB74oecVV4drOOiO0+aDio54ptIRObeoaGp92S453CBz+jnQKQy8XtDCX5CmbjEPXcUf /hUPCGlSxY9k80NhOmkIVJiVtOrC1Q2BIUkqbjVo/ioKCMhXDnLjnPBUnwG1LF9Newug 51hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=gr43qyfK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k63si2130609edc.347.2019.10.25.13.09.02; Fri, 25 Oct 2019 13:09:27 -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; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=gr43qyfK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440289AbfJYMlG (ORCPT + 99 others); Fri, 25 Oct 2019 08:41:06 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35473 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440272AbfJYMlG (ORCPT ); Fri, 25 Oct 2019 08:41:06 -0400 Received: by mail-lf1-f68.google.com with SMTP id y6so1634758lfj.2 for ; Fri, 25 Oct 2019 05:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nNhTW3U2Xf+f8X6ztyGJ0vdPsrVEzgnkoLb09kGESGY=; b=gr43qyfKeoGH65CYsJHoPG+YL9Tx4hVUZVoQzYzb9XsMqHySY57WJtUCKdPh98abFb 978lBekDEIJw3ctIHrCrHNrnVte3xIHmGJW9xZwa+BVM8YrwNCtva1EUvT8mgMQ0+NIk RMH0xuXFjObqrkldH+wRmh6xxURbjD8yMaUAw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nNhTW3U2Xf+f8X6ztyGJ0vdPsrVEzgnkoLb09kGESGY=; b=XzUzr919OZknlvE5P6YaiIaOVdZwh5aSXN7yI8LxQtDL7t2+wKyf5WRjjgyPnqP0sk li5doorAnrRnBo+8HVqA3NQWeg5YlNmxgnxMZDQyjgk+R9RwbYbblELJDY1g5/6+HNNz hf5uYMqgo3vOBr/EUq2V12SXHa9DIwxuUjGp9sTzt4eZQHKpEyq2ehO+HE2QsLFJXbfu jFwDEFn1w3Dzq/UOS9MQofUpndRLIW3vVOdGmyKYFejg4WXu7WOY7kTFPe2Rjij6kY7A fCPGiVbAujVNPu1TzBYOg3O+G4oz/gavlx1CfE37ig5UU19zbSoTrgEJV4YRvkLNrxmu Sw5A== X-Gm-Message-State: APjAAAVOq/dFOBv/WdPEqM5Jui0/HHEXOk6jcgt2Wkg/4Hxuyog7RTG0 7YvFtETyZMcRZw4JW6Qzu6WFjg== X-Received: by 2002:ac2:4d04:: with SMTP id r4mr2706461lfi.136.1572007262270; Fri, 25 Oct 2019 05:41:02 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id 10sm821028lfy.57.2019.10.25.05.41.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 05:41:01 -0700 (PDT) From: Rasmus Villemoes To: Qiang Zhao , Li Yang , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Scott Wood , Valentin Longchamp , Rasmus Villemoes Subject: [PATCH v2 00/23] QUICC Engine support on ARM Date: Fri, 25 Oct 2019 14:40:35 +0200 Message-Id: <20191025124058.22580-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191018125234.21825-1-linux@rasmusvillemoes.dk> References: <20191018125234.21825-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There have been several attempts in the past few years to allow building the QUICC engine drivers for platforms other than PPC. This is yet another attempt. In v2, I've fixed a few style issues. But more importantly, it now contains enough to actually remove the PPC32 dependency from CONFIG_QUICC_ENGINE, so that's what the last patch does. I haven't found a way to address Christophe's concern over the performance impact of using the (on powerpc) out-of-line iowrite32be instead of out_be32. I could of course introduce some qe_ prefixed helpers (similar to the already added qe_clrsetbits ones) and make their definition dependent on PPC32 or not, but that seems to be a bit ugly. Rasmus Villemoes (23): soc: fsl: qe: remove space-before-tab soc: fsl: qe: drop volatile qualifier of struct qe_ic::regs soc: fsl: qe: avoid ppc-specific io accessors soc: fsl: qe: replace spin_event_timeout by readx_poll_timeout_atomic soc: fsl: qe: qe.c: guard use of pvr_version_is() with CONFIG_PPC32 soc: fsl: qe: avoid tail comments in qe_ic.h soc: fsl: qe: merge qe_ic.h into qe_ic.c soc: fsl: qe: drop unneeded #includes soc: fsl: qe: move qe_ic_cascade_* functions to qe_ic.c soc: fsl: qe: use qe_ic_cascade_{low,high}_mpic also on 83xx soc: fsl: qe: rename qe_ic_cascade_low_mpic -> qe_ic_cascade_low soc: fsl: qe: drop assign-only high_active in qe_ic_init soc: fsl: qe: remove pointless sysfs registration in qe_ic.c soc: fsl: qe: move calls of qe_ic_init out of arch/powerpc/ powerpc/83xx: remove mpc83xx_ipic_and_qe_init_IRQ powerpc/85xx: remove mostly pointless mpc85xx_qe_init() soc: fsl: qe: make qe_ic_cascade_* static soc: fsl: qe: remove unused qe_ic_set_* functions net: ethernet: freescale: make UCC_GETH explicitly depend on PPC32 serial: make SERIAL_QE depend on PPC32 serial: ucc_uart.c: explicitly include asm/cpm.h soc/fsl/qe/qe.h: remove include of asm/cpm.h soc: fsl: qe: remove PPC32 dependency from CONFIG_QUICC_ENGINE arch/powerpc/platforms/83xx/km83xx.c | 3 +- arch/powerpc/platforms/83xx/misc.c | 23 -- arch/powerpc/platforms/83xx/mpc832x_mds.c | 3 +- arch/powerpc/platforms/83xx/mpc832x_rdb.c | 3 +- arch/powerpc/platforms/83xx/mpc836x_mds.c | 3 +- arch/powerpc/platforms/83xx/mpc836x_rdk.c | 3 +- arch/powerpc/platforms/83xx/mpc83xx.h | 7 - arch/powerpc/platforms/85xx/common.c | 23 -- arch/powerpc/platforms/85xx/corenet_generic.c | 12 - arch/powerpc/platforms/85xx/mpc85xx.h | 2 - arch/powerpc/platforms/85xx/mpc85xx_mds.c | 28 -- arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 18 -- arch/powerpc/platforms/85xx/twr_p102x.c | 16 - drivers/net/ethernet/freescale/Kconfig | 1 + drivers/soc/fsl/qe/Kconfig | 2 +- drivers/soc/fsl/qe/gpio.c | 30 +- drivers/soc/fsl/qe/qe.c | 59 ++-- drivers/soc/fsl/qe/qe_ic.c | 289 ++++++++++-------- drivers/soc/fsl/qe/qe_ic.h | 99 ------ drivers/soc/fsl/qe/qe_io.c | 42 ++- drivers/soc/fsl/qe/qe_tdm.c | 8 +- drivers/soc/fsl/qe/ucc.c | 16 +- drivers/soc/fsl/qe/ucc_fast.c | 70 ++--- drivers/soc/fsl/qe/ucc_slow.c | 38 +-- drivers/soc/fsl/qe/usb.c | 2 +- drivers/tty/serial/Kconfig | 1 + drivers/tty/serial/ucc_uart.c | 1 + include/soc/fsl/qe/qe.h | 1 - include/soc/fsl/qe/qe_ic.h | 69 ----- 29 files changed, 299 insertions(+), 573 deletions(-) delete mode 100644 drivers/soc/fsl/qe/qe_ic.h -- 2.23.0