Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp80635pxu; Tue, 6 Oct 2020 00:55:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBFdoVw+ZSAyLIUBZAb6QgHI+yPcnsHiHDpkaoIv0wNEe5EhXIo0drOZvSj9MXGM6wQibv X-Received: by 2002:a17:906:a51:: with SMTP id x17mr3932136ejf.137.1601970937075; Tue, 06 Oct 2020 00:55:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601970937; cv=none; d=google.com; s=arc-20160816; b=ulmAXtGfyXLiNkUUoa642U10l9aBAvAmPdurd8hRgxi+B2hawhDt/lvaf0WkG6w/E/ TbVp9hVMc69OFnDsLSfPaWYKIIRdt1xo74aiMQXSQrmaxH3vB3sCtk7pW+H74aQgFNer E6hgnhn6aGS63JPCX2bcLnu1bLv+301jgpDrXS1QicXJCbgZv9C/pqvcrDQTnWCTMJ1j 9GbSc4TSkh0zs4adYvGr6Uh5qab5iM6lfErqZEtqd30Ic5VV1g/INbS0kW8h53BNlGWP sL+PMLbMhavzYniKatHAxYal0xhjXjOjkEwvH2eL+J5sHfliFGDTjcpe6U+hSeujkrB7 f3wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pn/wc+bv9MvSQdOJW1Jb3BA5CiEn9SyA0DgRDMi+3Ec=; b=L9LgLWOUMG3gJnRWCBw3Ed1CCAkeSHtH+ayrgFVF0aeHnCD4PbLDdWBg79GeZ+Z59d jdFJ9Aye83OMJ5D923Ez0TWyfFo5uLjIbSjUKU+WMpc8Ft8lW7Zsb4laBgOLxMnKJi5b DvJgPqPoZmEtx9xivRKFAHv6si3GjyfXGjKpK3DQwxZQCPocpjIGIKa0D9aPcE3RUrf6 AVu/YYNvKYq9L8M71XQhafI+rWut0pe50VvQzpvVBxRjoaM8uVatzqndYoLt6XpwzgfK aDm6b0PeLV2FDCrJeVj4e+zpVWUpRa2hUP4eJszeoiZ12m7zVQGOBR13u8nuCvhW0vRQ RG5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jnrqiy+P; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si1868300ejo.706.2020.10.06.00.55.13; Tue, 06 Oct 2020 00:55:37 -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=@chromium.org header.s=google header.b=jnrqiy+P; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726917AbgJFHyQ (ORCPT + 99 others); Tue, 6 Oct 2020 03:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbgJFHyQ (ORCPT ); Tue, 6 Oct 2020 03:54:16 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 106B1C0613D2 for ; Tue, 6 Oct 2020 00:54:14 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id b19so816397pld.0 for ; Tue, 06 Oct 2020 00:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pn/wc+bv9MvSQdOJW1Jb3BA5CiEn9SyA0DgRDMi+3Ec=; b=jnrqiy+PEyHmqOdKQpRiNZc2B9pj0yNj+q0J+7yu6pjJe84nEEIajU6P/iv+lcG2ps taqxtHaEfZK3j9uFREtuzmFl9eapXiQoVBg+/2BKtvE+Jv32UnZbwSdg+tQhYilVE1pB N9LaZlZ+o0439ZNk6c5/WIr4MphQ9cz5+AFXw= 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=pn/wc+bv9MvSQdOJW1Jb3BA5CiEn9SyA0DgRDMi+3Ec=; b=bF1RD8OLB/2K9d1PIgb31jKuLXqNRRkcJ5L379OjLMp7rQLmAlrXhPJe2LPc7+XuxH IPDp5FRn1p1GAAkhkv+wOb2mNQPZQpQ3RjQ78U/BHBDZ4M+4xPu/y8ZDRRKTqrmEYjge 3hOlBUbRqHM2kXRN7Qipmr3RwZhyStU28Vm7QkNxplcSL+PvRzfLazwSmuYmVjdED0Ck IrtHQ2Ag67uW80vtasaCD+gUJih48mAK0KrwaSXw9akviTAcx289kylQ5r02jHO71b0L AaOnOkl0wlIE4V5bWd4ImL4j9irYzGK++WJtHkyC6hwhc0aWc7d0/4mHSzUi8GMMOOZT d5AA== X-Gm-Message-State: AOAM532In/zgdbZ8kHYIJLjA08GGcGn/BUOpp4TJlzid3/6QgSYdUez9 98ZMohKTZZW1MANjmQaGiWZaoI/4LsD0rQ== X-Received: by 2002:a17:90a:a101:: with SMTP id s1mr3014013pjp.220.1601970853389; Tue, 06 Oct 2020 00:54:13 -0700 (PDT) Received: from ikjn-p920.tpe.corp.google.com ([2401:fa00:1:10:f693:9fff:fef4:a8fc]) by smtp.gmail.com with ESMTPSA id r6sm2545147pfq.11.2020.10.06.00.54.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 00:54:12 -0700 (PDT) From: Ikjoon Jang To: Rob Herring , Mark Brown , devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-mtd@lists.infradead.org Cc: Ikjoon Jang , Bayi Cheng , Chuanhong Guo , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v5 0/4] spi: spi-mtk-nor: Add mt8192 support. Date: Tue, 6 Oct 2020 15:54:01 +0800 Message-Id: <20201006075405.11658-1-ikjn@chromium.org> X-Mailer: git-send-email 2.28.0.806.g8561365e88-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds 36bit dma address and power management supports for mt8192-nor. Changes in v5: - Rebase from merge conflict Changes in v4: - Drop two patches from a list, addressed by an another series - Fix 0-day ci 'shift-count-overflow' warning Changes in v3: - Fix a bugfix of v2 in checking spi memory operation. - split read_dma function into two (normal/bounce) - Support 7bytes generic spi xfer Changes in v2: - Add power management support - Fix bugs in checking spi memory operation. - use dma_alloc_coherent for allocating bounce buffer - code cleanups Ikjoon Jang (4): dt-bindings: spi: add mt8192-nor compatible string spi: spi-mtk-nor: use dma_alloc_coherent() for bounce buffer spi: spi-mtk-nor: support 36bit dma addressing spi: spi-mtk-nor: Add power management support .../bindings/spi/mediatek,spi-mtk-nor.yaml | 1 + drivers/spi/spi-mtk-nor.c | 211 ++++++++++++------ 2 files changed, 148 insertions(+), 64 deletions(-) -- 2.28.0.806.g8561365e88-goog