Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2632689imu; Tue, 6 Nov 2018 19:02:31 -0800 (PST) X-Google-Smtp-Source: AJdET5frCyZyvJ+fd0z9/rc3Oqv7YqrcEQj5XeaBHv8X+TZRg/Wdge9kNtQKh44L+fz5eekcKh+j X-Received: by 2002:a63:7c13:: with SMTP id x19mr138768pgc.45.1541559750974; Tue, 06 Nov 2018 19:02:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541559750; cv=none; d=google.com; s=arc-20160816; b=eu9cXCw4PEzR17ep/Q9cs+9y/VQvQkfTfbVK+Yxs0un0f8/GpadKjnCHwH1rWnjDBS XWACZf/AcVqeOiS9BpY6VWz41lLeroFUEfChN7gsLbMpm5ul9R1ahAUZms2+HuUI7jrC hz3aT3nSYR6XJG2sTXX1gYK7ll6Hqto8q0WP3MyD0qJ+fd8yFvW3UqGJwwHgPQrodQTf k3g8Nl3L5rYsaaWokVWFtpzz+/yu7O6fAckOC0EiQ3UeugvBZB3dFTTBtU0dWUcn+Sdb lPW18z2mBbRYNOtH3cHA2RPNfowCzRry2rbNYeX/3PhjNVwY3pzczHYG0AqkJWAEFhtg UJDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=j6Wudk1T2V/jEzrgGaZ7Bl/Cz6VjYO8rNqjfNWQ1HzY=; b=jY8KaR4Tkv9l8rKGHu7tW1YynI2yE6w3Hq3pYKHRLO+4rbnPj12YLRtpefNtvNtKyp NfNz1ECk6VJdLGvRKqOV6ci02N1Ewnj8fZM7a5kh/jrW5o4wpq9teS02MZv/ancpe0oh P9CLiR+7xKUTlqaHTRbeJ2O6MIkHSIx6p09NtqeqNyaLC0pZl/x20EA19WSLGXY8Yj6u i0+SUsn6iZSyTqlPjT3v/b2bVsSU/Z9JYrATaxZ3d6pT3wCBfQ1yPk3RLDYKBYuKspO8 znbbQCEPiPLJmyRfCPQg0l/ITmZxC4cmOZU7kr6QyCu9fltbqaG/U8FhGV50i8jd41c8 OOvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GNQOkJnX; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si21607368pgc.587.2018.11.06.19.02.13; Tue, 06 Nov 2018 19:02:30 -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=@linaro.org header.s=google header.b=GNQOkJnX; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389352AbeKGM3e (ORCPT + 99 others); Wed, 7 Nov 2018 07:29:34 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:45281 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389320AbeKGM3e (ORCPT ); Wed, 7 Nov 2018 07:29:34 -0500 Received: by mail-ed1-f66.google.com with SMTP id w39-v6so7844177edw.12 for ; Tue, 06 Nov 2018 19:01:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j6Wudk1T2V/jEzrgGaZ7Bl/Cz6VjYO8rNqjfNWQ1HzY=; b=GNQOkJnXGtzIi6IFoSV/k+5gRciq/Sp/nRI2iBj7Lt6LzWTZGJBbdFsZ7uVuZq4vpq POE8gzXohaV5MrfkyDM7lt7mnUlyji/LaVVgbPQ3MTifAh0fLkO5xdu5pEBDqgS59Kpk E9wRKsLwNFwZanOJsEOWCBuuZfrZEsJtbWN24= 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=j6Wudk1T2V/jEzrgGaZ7Bl/Cz6VjYO8rNqjfNWQ1HzY=; b=HR2yROAcgYIfsxZrqozLALkRx59W4BNyMpjTXjUyKKrXFaGC3aLNzE/UBBV4LcXPKr juGildfu+bmCN213uumwVCF49Em33jSFqEP0u/rWfFzqqBaJJYF7k131YcyFqydC/qoz 2IGS316TjjRBzmkY5CuX2J3rcu3B2HNVOjNZgvVxzSyAimP5aVp/x+QGz4SKPukqmYpF Kj+pfvrMlwdk17x+x+5AFOHO4kPQtxd6BcKznkzLfPNKpq6jwjEEvlwjRPx0rZHMOu51 lEK1ZcsBfOJ9ZjIQWNuONDfGFpQiiV2V23XFgVZWO8UtywXkN85xZK8vFa0ReWMYlYWO nWRA== X-Gm-Message-State: AGRZ1gJYPJ5Ja9/ytb3GUc1jIYCSfbhaGqJzFFddwfOMhHM2VBF/lDHu EI5iPFBnO8bdrhr1KkJRKov/74RktrsID6Q1i+CiaQ== X-Received: by 2002:a17:906:a301:: with SMTP id j1-v6mr354212ejz.188.1541559668864; Tue, 06 Nov 2018 19:01:08 -0800 (PST) MIME-Version: 1.0 References: <1541387810-24867-1-git-send-email-zhang.chunyan@linaro.org> <1541387810-24867-3-git-send-email-zhang.chunyan@linaro.org> In-Reply-To: From: Chunyan Zhang Date: Wed, 7 Nov 2018 11:00:57 +0800 Message-ID: Subject: Re: [PATCH RFC 2/3] mmc: sdhci-omap: Add using external dma To: Arnd Bergmann Cc: Kishon Vijay Abraham I , Ulf Hansson , Adrian Hunter , linux-mmc@vger.kernel.org, Linux Kernel Mailing List , Mark Brown , Sekhar Nori , Lyra Zhang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 6 Nov 2018 at 20:51, Arnd Bergmann wrote: > > On 11/5/18, Kishon Vijay Abraham I wrote: > > On 05/11/18 8:46 AM, Chunyan Zhang wrote: > >> > >> + sdhci_switch_extdma(host, true); > > > > A number of devices using sdhci-omap supports ADMA. So switching to > > external > > DMA shouldn't be unconditional. > > > > IMHO sdhci.c should see if the device supports ADMA or SDMA. If not it > > should > > try switching to external DMA and if external DMA too is not supported, it > > should use PIO. > > What's the reasoning for preferring ADMA/SDMA over external DMA if > both are supported? > > I'd expect that if the external DMA for some reason is worse than > ADMA, we just wouldn't list it in the DT at all, but if it's listed and > ADMA also works, then the driver should try to use it before falling > back to ADMA. Thanks Arnd and Kishon, let's see what Andrian and Ulf would suggest, and then I will address in next version of patchset. Thanks again, Chunyan > > Arnd