Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2624387ybi; Thu, 4 Jul 2019 15:30:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8JOlK7h1frtAZbg29Gj28Hp5Zuc0SItKHddM96atpzU/77UCJcxfZCXHioZ3LjFyshMwl X-Received: by 2002:a17:90a:2506:: with SMTP id j6mr333145pje.129.1562279414405; Thu, 04 Jul 2019 15:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562279414; cv=none; d=google.com; s=arc-20160816; b=H1v+hvBYjchlSOKEBR1EYy12fkZkQ6bxhIKcyfJysJzauiFE0d/i6U790kLHFJW/ql fm8K8cNYazpZqPEfaYa+RtlBZHPs7mq3/IKfalFpR/m4f+LKvzkFZGsO/Tg5aiRc821/ iQ8I2+k1n4I2IQjBjVLM0e6+ZzX7I3QI+Gdl2FyfPDxaN2XLjGFnRdx2u5O7q99jifkW HrZuerx/kuje2mo+ncwpJsohKVnBPvX7ya4NacmR/kgqpmZn+/kDvj1+926Wl4i9TEc9 lfn2KxmDkz6JoGOk/ozN52TNiXaCTRY1Bsq49cwrrsnD5xtJlobtpkkbpcSbG+lLDGpn E3EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=NyIdC58y2Ub2Y306XyljmYe4qE2X3Y8o+U7JgB/DDQc=; b=gMMB5i3mM6GkiwHJXbWKYqAZlRccpohnyKRHEVAK8jZARF+1ZQSeIL0mrCrwRFUHyw qcLcmHFIvQh0nH4dYtc9v4dvVOUTRGkwGnBj8hWYeh9ygdOdTDEoFV9bp3692tot86T5 ak/wrEf90u1nRY1L1NkIF1PofJyBiJ1M/sokHYw1GC8EjRN/ffd1CIeieSUID9SE9CHZ JPkbu2lSCZq1m9+V15TQNydtOsIdzbCis1MskOeibj7I5offxTC3RbW8KkD7IP+GREwd /p2TNatAUy1RKZUEynOIamU4DsKy0fnbhh9/GBXUdc1iwGXYSuzMmmDZfVZYItTUhpcO dnRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="F5/ZEBdH"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13si6361733pgh.116.2019.07.04.15.29.59; Thu, 04 Jul 2019 15:30:14 -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=fail header.i=@gmail.com header.s=20161025 header.b="F5/ZEBdH"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727542AbfGDW33 (ORCPT + 99 others); Thu, 4 Jul 2019 18:29:29 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:44560 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727410AbfGDW33 (ORCPT ); Thu, 4 Jul 2019 18:29:29 -0400 Received: by mail-lf1-f67.google.com with SMTP id r15so5047696lfm.11; Thu, 04 Jul 2019 15:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NyIdC58y2Ub2Y306XyljmYe4qE2X3Y8o+U7JgB/DDQc=; b=F5/ZEBdHLOxVJsQ9+bKnbkInjEdYaGIz+yaiNaiAv5QmMVJBD851G5G1Fevvs8znzP QthYpnw9sSilbWFRu5heyHg53ECaToYeiJaDKRWvFMgLTprIck1otmreLMDnYPjgBZRN ntcpgrWan0ltoIeFcDXPHcJuJalqnMKxFhXKQxYaH0FGIeMcLGefDfy1i4k8vzBK7DAa YgdbjQJMy/dxfdPYvqREvQEiIZvoV1gZlVafOL8EDuMRlYxUqp1W78WHJzNiZp/tObaX af0aQD6DCyBVGq97juiiGeO2wg0ty69sPTHk5C2uCqPGy8J7PS1xtvZq/Vzey96VnIw/ q0Sw== 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:mime-version :content-transfer-encoding; bh=NyIdC58y2Ub2Y306XyljmYe4qE2X3Y8o+U7JgB/DDQc=; b=UVeQHYayKYwH8phdu9sbNAFBtuE2dgsYnDh3UTAIa4sYOuRxKFi/RGRu6ivM0nyLbu cYqeJTZSRgW2goz6/c9gQ84Rgh2h/5qQWIMgolxFkTaCp326RgXWZGro1F1z+3jy3+1W 2qa/Eh35mCCjDfagGSukpwi8Ghxkb2KWL9SYr8zXkmvMioUUDH0ipyv+AqJ2NxNVtHXn DuwsRBNJXBBGgzKre9yuwUJvPFE/TcDxMfsIh1HVD0u10brUA3XJAJ6Z8C61waIsaUtI +1+ncnRY4fxRZM/Nq2MeFqlA/oS7MjixsML3OggPEE+jyXG0y3BJHEonezJAMC7ytNHW 0kFQ== X-Gm-Message-State: APjAAAXg02jOmahF1xCBFKW4DQv5YDrLEhP/hWmjTC5xXo7FufYyIijq kx2+brzIiaThvVSbMOpzbBo= X-Received: by 2002:ac2:514f:: with SMTP id q15mr357516lfd.145.1562279366617; Thu, 04 Jul 2019 15:29:26 -0700 (PDT) Received: from krolik-desktop.lan ([91.238.216.6]) by smtp.gmail.com with ESMTPSA id t25sm403645lfg.7.2019.07.04.15.29.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 04 Jul 2019 15:29:25 -0700 (PDT) From: Pawel Dembicki Cc: Pawel Dembicki , linus.walleij@linaro.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Rob Herring , Mark Rutland , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] net: dsa: Add Vitesse VSC73xx parallel mode Date: Fri, 5 Jul 2019 00:29:03 +0200 Message-Id: <20190704222907.2888-1-paweldembicki@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Main goal of this patch series is to add support for CPU attached parallel bus in Vitesse VSC73xx switches. Existing driver supports only SPI mode. Second change is needed for devices in unmanaged state. V3: - fix commit messages and descriptions about memory-mapped I/O mode V2: - drop changes in compatible strings - make changes less invasive - drop mutex in platform part and move mutex from core to spi part - fix indentation - fix devm_ioremap_resource result check - add cover letter Pawel Dembicki (4): net: dsa: Change DT bindings for Vitesse VSC73xx switches net: dsa: vsc73xx: Split vsc73xx driver net: dsa: vsc73xx: add support for parallel mode net: dsa: vsc73xx: Assert reset if iCPU is enabled .../bindings/net/dsa/vitesse,vsc73xx.txt | 58 ++++- drivers/net/dsa/Kconfig | 20 +- drivers/net/dsa/Makefile | 4 +- ...tesse-vsc73xx.c => vitesse-vsc73xx-core.c} | 206 +++--------------- drivers/net/dsa/vitesse-vsc73xx-platform.c | 164 ++++++++++++++ drivers/net/dsa/vitesse-vsc73xx-spi.c | 203 +++++++++++++++++ drivers/net/dsa/vitesse-vsc73xx.h | 29 +++ 7 files changed, 499 insertions(+), 185 deletions(-) rename drivers/net/dsa/{vitesse-vsc73xx.c => vitesse-vsc73xx-core.c} (90%) create mode 100644 drivers/net/dsa/vitesse-vsc73xx-platform.c create mode 100644 drivers/net/dsa/vitesse-vsc73xx-spi.c create mode 100644 drivers/net/dsa/vitesse-vsc73xx.h -- 2.20.1