From patchwork Tue Sep 29 07:37:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ikjoon Jang X-Patchwork-Id: 11805089 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2BB28618 for ; Tue, 29 Sep 2020 07:38:25 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EE7842083B for ; Tue, 29 Sep 2020 07:38:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YAboTOf0"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ZOFyvlCL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EE7842083B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=cgWxFddOuEcAcZkN6y6atKOgFDQRo2zyrXJKm3KJM/4=; b=YAboTOf0XjQ99+FPEPLrWWrnB1 r9gUgT0xHHcfhx5oFlBL7Jqb/qQtyZrGvBT4Ln7gw54qNC//Mio6aPhEhzaroS2yrljTrmE8lZmo0 4bqxhlaSvVTeGJJhfZdxBtCnQxBWEYU4sliaDRaeqFAcwUD1LKjap4m08pB5Q06BVGqkp7ANk1mxf Ms+5l+HcWLehgjqVZqh5XXr1I44OldfulElFkNoyzvrVVq64e7E+j/Qd+VZqlrsQVSCtkXbFWj2Mc yQF86CaHVFQvwbPtKYytDXzAOkI4vCKZyLTbld4zrpd4iF+Kg8Cc4aP8kIto3nwCSir9kPElgbNbP PMvyZg+Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNADD-0002Y2-43; Tue, 29 Sep 2020 07:38:11 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNADA-0002WP-Ht for linux-arm-kernel@lists.infradead.org; Tue, 29 Sep 2020 07:38:09 +0000 Received: by mail-pf1-x444.google.com with SMTP id l126so3687651pfd.5 for ; Tue, 29 Sep 2020 00:38:06 -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=io1cz9TQOCr2lsgpG0jFMP3QgjGEulFGbq1UdpXz5V4=; b=ZOFyvlCLR8T8JpIU79KN9MsP6sRAHSvMzIjIZONONWF7W/+U3LsaU1wt67X0ZP3Wn2 mGZIaHbxB+vQzJGNYTotCQJhBH+z54Ff0okyevumh7NAhymfIacbmmYBsbRkFuQiK1bn QslXqt5AOL4KyTGwdLRHnoAhiSyL7klugyFjg= 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=io1cz9TQOCr2lsgpG0jFMP3QgjGEulFGbq1UdpXz5V4=; b=g9iN5p/07mRsUXewLWs3zSwu5j4TkOvwmrQ5JTDH5V0g1+lv/BcoQkioKaG6t1Oqo0 xbwPAVesUFwZiN5mbHQYoVIfo78PLL6y/phllK4Z8EPDl67ylghsz735DHwZwfy+Q+Q1 4HT8Twfv97J0kKVbFS1G4rBQpHVhnYKGNCcEfuVF4U6i/XNJFTdq9NA9D5dFFBfAhkE6 MuPPlxt5b810Ee2Dn2qIcfNksPfCERGN9oGezH87yKnxQDw1Z4HUOIguwkqZWZIbldrQ WlG7sRZV+J08NNSWDpopXlXLtPQUXsddClTR66qfC6jI2j70uvIyNsu9zsoNu9WWrP12 cObg== X-Gm-Message-State: AOAM530R4NQlIiAkCy0SET1pL+9YNh2dV1SSghvqAz8tI1fgTk6XAJEw bHpac05giwqZPwuWn4bjlZLYzg== X-Google-Smtp-Source: ABdhPJwXYEUsBsCIdgNi3hgFN2mrzey+Q3KLI0dKFDQsChyUPfOEB+KJ/+oKD8iGZQr8LY3JxgnjqQ== X-Received: by 2002:a65:6883:: with SMTP id e3mr2228137pgt.250.1601365084796; Tue, 29 Sep 2020 00:38:04 -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 e13sm3737317pjy.38.2020.09.29.00.37.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 00:38:00 -0700 (PDT) From: Ikjoon Jang To: Rob Herring , Mark Brown , devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [PATCH v4 0/4] spi: spi-mtk-nor: Add mt8192 support. Date: Tue, 29 Sep 2020 15:37:51 +0800 Message-Id: <20200929073755.3741416-1-ikjn@chromium.org> X-Mailer: git-send-email 2.28.0.709.gb0816b6eb0-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200929_033808_667086_418F5E48 X-CRM114-Status: GOOD ( 12.20 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:444 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.7 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Ikjoon Jang , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patchset adds 36bit dma address and power management supports for mt8192-nor. Additionally, use dma_alloc_coherent() instead of kmalloc() for internal bounce buffer for platforms of only supporting 32bit addresses. Changes in v4: - Drop two patches from a list which already addressed by an another series and not directly related with mt8192 support - Fix 0-day ci 'shift-count-overflow' warning - Fix missing 'high_dma' initialization for 36bit address 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 | 210 ++++++++++++------ 2 files changed, 147 insertions(+), 64 deletions(-)