Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp631059ybx; Wed, 6 Nov 2019 06:09:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxpG8XERjy948aaJZGQj5dncSLksn0MYzCA21CoZUL4t9rsSm2Nz8q0rrNFcVoqW6xl7fC8 X-Received: by 2002:a17:906:9c1:: with SMTP id r1mr33719121eje.217.1573049375450; Wed, 06 Nov 2019 06:09:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573049375; cv=none; d=google.com; s=arc-20160816; b=uxDkSS/nomHYVvbNpDhizwIGTUninS1aAXuthA98a/WtcudI4YEbxYD5RVgj89bg+A 8Dh9YjSID7ak6AbdBwTJV4bqBUVsQnCVS+Kqdk4pu/cp7zGbPhItQxJNGrnwnn9X1pM8 fDWTq5xjqJrepwmDs1CmWGQpAmfWgjg9VwVKFzpcykNdusKgY96ozP2eIQEEgwVQm8tJ vkZCQq1GvhOP8xA/z14sjFjbSe/pQZfehJoiXs/RRFAo2G1JJ7aiUFTjmJddeHtA/+zE 9qK9yGuE8skS7K77Z8irKb6Mn0j3TTQh12PSpPfHSknIZXKkNvy7zM/+hWjAnxiDIh0u iFfQ== 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=Xh0YLDess6L96nvkYhuVlivBqcsNSJ5iJO7vqQb2cA8=; b=uT5hKd7Pem4R9oODH+G99VyySTWfwcOIQlIurJyX6aHiO44tNqhM01AmEijlk7MlBM XzLQlgRlBLgEmEW7adaxa0I6NfEtQkR04/Qh2RCPTsRMpQJQieNosEbgrIrXOl4q8Ywi NK0V6/6ufGjN8FQSZUZVE4VjHMIyyEw72pTpK/AdmwLwsBAHdQiby/a9Fa7Wp3QG4M+q 1VOLgp6Z/C5eaNezBgyGndOp4JoOg+RDV5If3hmb9RGApg/O/ykSYp2DePFm4lf9ApOi PdVzFEAU3mTs6uD8N8awYWwLTzC42aFLoPsPg057Xk7Brnj/eLRIHQ31NYKs6TQ872L0 B2Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MB1WGmx7; 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=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 a47si11469249edc.145.2019.11.06.06.09.10; Wed, 06 Nov 2019 06:09:35 -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=@gmail.com header.s=20161025 header.b=MB1WGmx7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727645AbfKFOId (ORCPT + 99 others); Wed, 6 Nov 2019 09:08:33 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46901 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbfKFOIc (ORCPT ); Wed, 6 Nov 2019 09:08:32 -0500 Received: by mail-pg1-f196.google.com with SMTP id r18so1506044pgu.13; Wed, 06 Nov 2019 06:08:32 -0800 (PST) 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=Xh0YLDess6L96nvkYhuVlivBqcsNSJ5iJO7vqQb2cA8=; b=MB1WGmx7LCN3svj1Z32NEMJi+359bYzJH064LJ6eHLnQ5EGZz73rdHSTAmS8xQ/f7k hHXH0vlm9SGNPrsvszHnY5l9DNVOqCNOCYD/2BmSijIBSDEsPvO1kwDOOzCflCUtE+C3 5uWCFCDsGeJ+btYZbhuxZEZGz66MRbWP9PD463v41i9Y1Oi+XQ1otayKg60K6uZh5Gnc 4DnZXRz5ohRbcR80EUKrbJhjL/yZPXX9+guRIg4XibxuO27z0vcOTmVyl6Kr/4HGMSSS /Wpq0gI97R1uFldSR/4Pmm/H3wRa0HUKiXPV/wUp+1WqruYcT72pfSlLfi8NUFXF9/2d +GvQ== 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=Xh0YLDess6L96nvkYhuVlivBqcsNSJ5iJO7vqQb2cA8=; b=LRjnhGEgahrv5euh/a9edodoYAI7+LPT3dxFYmQkDIZNZjB6n2aAwMyM3f9C0F1J85 d0+Crq20lEdRjupd8Nv6m4XvwKO2FMGuNo92Vb+od+swra5oGbnyF+QMx1HfC0WvCovP +Bz19lTbS1wWpq9UAk1fuD4hOQS/HpxB5XM4nFBwPPnoLBrsLVsQAiDuN21fhs2K07e+ mz9XN1TOe/1ZlMpxkWDBZUUUU+bnk21uXmGNSRbGVCLjWtn5sW+1svuc34j1rpvWB2Lj x0l74wjFgr769b5dZRwVdpPIE96QEMVpAyDl9o87/u46kkq2egW1epeNhnwdhn0rJao0 vv6w== X-Gm-Message-State: APjAAAWK0/PI3crWjMTn088o/3K3C/nfN0bTQLdb+zFZftNChROYBiWI CLi4VX9s0S8ql0pk4aZWgGs= X-Received: by 2002:a17:90a:9201:: with SMTP id m1mr4135941pjo.74.1573049311958; Wed, 06 Nov 2019 06:08:31 -0800 (PST) Received: from localhost.localdomain ([2001:19f0:7001:2668:5400:1ff:fe62:2bbd]) by smtp.gmail.com with ESMTPSA id a16sm4707345pfc.56.2019.11.06.06.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 06:08:26 -0800 (PST) From: Chuanhong Guo To: linux-mtd@lists.infradead.org Cc: David Woodhouse , Brian Norris , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Mark Rutland , Matthias Brugger , Tudor Ambarus , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Chuanhong Guo Subject: [PATCH 0/2] mtd: mtk-quadspi: add support for memory-mapped flash reading Date: Wed, 6 Nov 2019 22:07:46 +0800 Message-Id: <20191106140748.13100-1-gch981213@gmail.com> X-Mailer: git-send-email 2.21.0 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 This patchset adds support for optional memory-mapped flash reading. BTW: This controller is a ridiculous one which only supports very limited spi-nor instructions. I can't rework the driver into a spi-mem one because MTK didn't provide register description in their datasheet and even if they do provide the documentation, the resulted driver will still be ridiculous because it'll need to check every supported instructions in support_op and do execution in one-by-one case in exec_op. Chuanhong Guo (2): mtd: mtk-quadspi: add support for memory-mapped flash reading dt-bindings: mtd: mtk-quadspi: update bindings for mmap flash read .../devicetree/bindings/mtd/mtk-quadspi.txt | 21 ++++++++++++++++++- drivers/mtd/spi-nor/mtk-quadspi.c | 11 ++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) -- 2.21.0