Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp930338pxk; Fri, 25 Sep 2020 01:23:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwUsQGdFMNFG1wudv/gjnHdsP7FlWJd0dOhfrxfBzAuf35LQQfhNUXaf8GE0Rx9mfEHU+C X-Received: by 2002:a17:906:f9d3:: with SMTP id lj19mr1548713ejb.346.1601022215530; Fri, 25 Sep 2020 01:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601022215; cv=none; d=google.com; s=arc-20160816; b=BXi8kikKyQuoqnbsvjL4RbEOp0ORgvgxxuGm6U9cNojzz3jvUNN4iWh1Ay3Ab+HnN8 98V0IPZQQM6viKu4Ly+BBle9hPvfB9gROHztkWY0CWk3R3M1ypXt38xEw+Styq9OqW8T KW0hu50t9EgCKMlNpBoS2hH4hOjxBBw0cSBzT/X85CADrwFwXl7FGG/RDtSmWNQ6U73Y zEdQeu54GC7iUun5sV1bnKayvE5Ywt7nYyaBhK9XNcMspEgw+LB8cTgxO8JArXenb8a/ CCWkF7jzsUTs7nXyNUjOdb6bvBKdKw64wC0ttqPyWvU8kXdurHzI28XLzYgsq/Sq+Szv m8jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LJvK1S1wM77CEwiTWGHH4blwT2BpBAlEo89Zgh09KOA=; b=AT5do9YTvZMHktE6ycq9CR7CPtrlWEkReQTaqrfFZqdsRqIU/z8PdNfZJAlul18r1I bQogqona0DYtTLLb4FCdgLyo8ItUwpnKg+3slQp0B+brkmBYOw1Jo93Pg98yQSv7IV9v 2f5V+DI5cg4Y41ttMCJ0stP3O715DY2Tth7cU2vxSBG0v4v6fOChiRNgPMK23BrVQwrg UXHzrf/9wOGRrZal7+xqYBHFC1MRq6mWtidctJeVEtko8wpzJ83zE9wXUg/azS6O1rJA XZTIB3WIim+nYCaZxUabDXP6rjerlRoSIdJUj1WprXN//2O50PXIUmmzEXDmPExP3Ny4 kCJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c6UN+CI1; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si1368007edu.131.2020.09.25.01.23.12; Fri, 25 Sep 2020 01:23:35 -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=@gmail.com header.s=20161025 header.b=c6UN+CI1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727670AbgIYIVz (ORCPT + 99 others); Fri, 25 Sep 2020 04:21:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727408AbgIYIVz (ORCPT ); Fri, 25 Sep 2020 04:21:55 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52BA1C0613CE; Fri, 25 Sep 2020 01:21:55 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id s88so1556827ilb.6; Fri, 25 Sep 2020 01:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LJvK1S1wM77CEwiTWGHH4blwT2BpBAlEo89Zgh09KOA=; b=c6UN+CI1Fp4uk5RW2Kl5hegia7PgWhtLlM7r1U47nBCKQW72a7A4XRQcXs33oeaDor +Pekks1fUk4lcSdjBfDpJNj8Lb+IWNmLhQGoYiWisLkv3D41VUsroEnfczSCvn93iMA0 PdgoNS1YbL/b4ZMuMJFX/1ZXSLFAggeEoX2ktDD9FO+0pwsANqptIRMKFiFYN4KX7qqC WDDJstdvvqNx8NXIKmPnfS63q2GhbEEE1YnuLTkynqPYmELrM+FlCF2ozTVc/6yewcjv uyqAXpyf+XMSyM3oKmVb8hOYgFUVTQTL4LQrVbqn3Y8e3BtJGlXTQ5GVgKq2oCwFpg+W 1DAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LJvK1S1wM77CEwiTWGHH4blwT2BpBAlEo89Zgh09KOA=; b=oEJMbbOE6iBWSLh+BOEzMvxmeeLbSi9h8DHyTDtIof6BvElyucOs/D50xi3drp8aaj HTKT42yyzlW2vo18yf1Cv0ov97NHX3rrnmCCm6GEcpnXVrtvSZlWPbpICLZAfFtszuMi ZEvK7lSsHo7w164sQqD4HQg8mEXArXPoJoRuyBopFgRyuS47WIAc2p1NaJZ0ZS5aNy69 2l6zCrqK5GuSWz3o43M1yheG74rNhA1Y8nEnX8KuMmPrCQJKFdD7XQQhLryJHGCDnlgm hmiAzt88U5xGyE9XhhqyIrrz8+ZQr6q5CT9iLaW5RI+XqF2lCUb8yTCxV0E8uB26A8ls hDYA== X-Gm-Message-State: AOAM532MVpaGyMU8idUNrRJSbsVEF8L9d/ujY6bM7wQy/qFp1JlVM149 JjAQ6AhstOz6C/ox9rAScOe4TVHK0ACtqCDBvC0= X-Received: by 2002:a92:cbcf:: with SMTP id s15mr2378625ilq.39.1601022114691; Fri, 25 Sep 2020 01:21:54 -0700 (PDT) MIME-Version: 1.0 References: <20200925065418.1077472-1-ikjn@chromium.org> <20200925145255.v3.4.I06cb65401ab5ad63ea30c4788d26633928d80f38@changeid> In-Reply-To: <20200925145255.v3.4.I06cb65401ab5ad63ea30c4788d26633928d80f38@changeid> From: Chuanhong Guo Date: Fri, 25 Sep 2020 16:21:43 +0800 Message-ID: Subject: Re: [PATCH v3 4/6] spi: spi-mtk-nor: use dma_alloc_coherent() for bounce buffer To: Ikjoon Jang Cc: Rob Herring , Mark Brown , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-spi@vger.kernel.org, linux-mtd@lists.infradead.org, Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , open list , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Fri, Sep 25, 2020 at 2:56 PM Ikjoon Jang wrote: > > Use dma_alloc_coherent() for bounce buffer instead of kmalloc() to > make sure the bounce buffer to be allocated within its DMAable range. I think the introduction of need_bounce can be in its own commit or at least mentioned here. > > Signed-off-by: Ikjoon Jang > > --- > > (no changes since v1) There have been a lot of changes since v2 :) Reviewed-by: Chuanhong Guo -- Regards, Chuanhong Guo