Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp259630ybg; Mon, 1 Jun 2020 00:07:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfpn/Uwbp5iP8v4ss61nkfXGrw5YZBo+k81L0aQErGlxEdxhomZ/ySIUDmNADACV8ZdAT+ X-Received: by 2002:a17:906:a402:: with SMTP id l2mr19209101ejz.14.1590995252160; Mon, 01 Jun 2020 00:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590995252; cv=none; d=google.com; s=arc-20160816; b=JbBoonTWSDMT452fuUEnaJrk4s9szWfvsaubgMGpmRpLNSsSm4+9XPFmrqzdyczSP+ OENSLxi4deQVe+olWfdvUGmQMZQxrYrPGqUII4lWq8Jz3IhcIBp5XjsPkNCd7B7dE5mj I/kH+0uyO9pRsLZPZ5Y3rZJwbD8nNP0JrAoGPP6p57IQOO0sX3+KSWz0Kzi4wLlNyGcI Z+pyKpT4EWv56dJ4fzitcIm7loXxOCR8T4hfh4DPIOjvYP6bkO5FlkflZXzL53IOmHRO VmkumKDdfjgzYHx0rXUa2mfiBHo8R9gk56sSsN6Oi8LPcQ+OMZihtP+LDuAfc85ETTLw rzyA== 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:dkim-signature; bh=NNHhHVmUs1TCxOahOCyW9vdh5Muz5GlQSSTsH/tgPvg=; b=oon08vfLTV4aU4utboIu89Nks6OV+PXBFhlsP4O9agYIso0cNO9sEmI9N38cZWgp87 UV4paq15iwIiK5jP5+kQb5udmTOy1OD8rvipTaqWjrUEU10gIfQP4rtqgu+QDYpuK9vr f+8tA9eurSMmpB9DSP6GYlIdy8ETnPCoin5jy7XqNpORvaCv2h+gtTS6srw2JRKFm70j QWmXgUy/AIIE6SqRvhixvouGF7tTQkY4sRp9VbMvComX+O7F00acL5eoM9RftGE1Tvm9 gsNKyy5dYdrOyRJw0FXkvshvOme8rUgArSdwP5RkidBDiMFMZb3bjwzhA8pFdAMjOHJs Tixg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=hreMb2hh; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 89si10674872edo.209.2020.06.01.00.07.08; Mon, 01 Jun 2020 00:07:32 -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=@ti.com header.s=ti-com-17Q1 header.b=hreMb2hh; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727957AbgFAHFY (ORCPT + 99 others); Mon, 1 Jun 2020 03:05:24 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39674 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbgFAHFY (ORCPT ); Mon, 1 Jun 2020 03:05:24 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05175Cpv014656; Mon, 1 Jun 2020 02:05:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1590995112; bh=NNHhHVmUs1TCxOahOCyW9vdh5Muz5GlQSSTsH/tgPvg=; h=From:To:CC:Subject:Date; b=hreMb2hhTAVAU5px8jp2lLKKNmyRkaHvkmlgRnAnZg6/UmHacEnVKE7vMHJOhUTDV z/j9HFep7TLFkGLcH3lMRhXykIpmIPa5uSv/tsYHGbxA63F6tVAzLfybkfmlOty88r QyWRbWrws/Uhtlk3wEVZeqSsEA0BfefsbgzNKoXY= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 05175C6F061784 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Jun 2020 02:05:12 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 1 Jun 2020 02:05:12 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 1 Jun 2020 02:05:12 -0500 Received: from ula0132425.ent.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 051758s2016257; Mon, 1 Jun 2020 02:05:09 -0500 From: Vignesh Raghavendra To: Tudor Ambarus , Mark Brown CC: Vignesh Raghavendra , Boris Brezillon , Ramuthevar Vadivel Murugan , , , , , , Subject: [RESEND PATCH v3 0/8] mtd: spi-nor: Move cadence-qaudspi to spi-mem framework Date: Mon, 1 Jun 2020 12:34:36 +0530 Message-ID: <20200601070444.16923-1-vigneshr@ti.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series is a subset of "[PATCH v12 0/4] spi: cadence-quadspi: Add support for the Cadence QSPI controller" by Ramuthevar,Vadivel MuruganX that intended to move cadence-quadspi driver to spi-mem framework Those patches were trying to accomplish too many things in a single set of patches and need to split into smaller patches. This is reduced version of above series. Changes that are intended to make migration easy are split into separate patches. Patches 1 to 3 drop features that cannot be supported under spi-mem at the moment (backward compatibility is maintained). Patch 4-5 are trivial cleanups. Patch 6 does the actual conversion to spi-mem and patch 7 moves the driver to drivers/spi folder. I have tested both INDAC mode (used by non TI platforms like Altera SoCFPGA) and DAC mode (used by TI platforms) on TI EVMs. Patches to move move bindings over to "Documentation/devicetree/bindings/spi/" directory and also conversion of bindig doc to YAML will be posted separately. Support for Intel platform would follow that. Resend v3: Rebased onto v5.7-c1 v3: Split handling of probe deferral into separate patch (out of 5/6) Split dropping of redundant WREN to separate patch (out of 5/6) Fix a possible memleak due to lack of spi_master_put() Parse all SPI slave nodes in cqspi_setup_flash() Address misc comments from Tudor on v2 Rebase onto latest spi-nor/next v2: Rework patch 1/6 to keep "cdns,is-decoded-cs" property supported. Ramuthevar Vadivel Murugan (2): mtd: spi-nor: Convert cadence-quadspi to use spi-mem framework spi: Move cadence-quadspi driver to drivers/spi/ Vignesh Raghavendra (6): mtd: spi-nor: cadence-quadspi: Make driver independent of flash geometry mtd: spi-nor: cadence-quadspi: Provide a way to disable DAC mode mtd: spi-nor: cadence-quadspi: Don't initialize rx_dma_complete on failure mtd: spi-nor: cadence-quadspi: Fix error path on failure to acquire reset lines mtd: spi-nor: cadence-quadspi: Handle probe deferral while requesting DMA channel mtd: spi-nor: cadence-quadspi: Drop redundant WREN in erase path drivers/mtd/spi-nor/controllers/Kconfig | 11 - drivers/mtd/spi-nor/controllers/Makefile | 1 - drivers/spi/Kconfig | 11 + drivers/spi/Makefile | 1 + .../spi-cadence-quadspi.c} | 541 +++++++----------- 5 files changed, 222 insertions(+), 343 deletions(-) rename drivers/{mtd/spi-nor/controllers/cadence-quadspi.c => spi/spi-cadence-quadspi.c} (74%) -- 2.26.2