Message ID | 7673059f-5bd0-a8e4-db3f-4f41370f8a11@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DB6BA60209 for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 16 Feb 2017 19:43:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF7332866A for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 16 Feb 2017 19:43:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C48852866D; Thu, 16 Feb 2017 19:43:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 79B1B2866A for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 16 Feb 2017 19:43:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:Subject:From:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iKVJc7yjEd+0V09vjnYXxVPqCVt4GwbJdKkMkEMZSc4=; b=l0q4bAg6eErcx2 VMiHT5Ws7uXKM9SeSzqbjlJbM1z24TwLmXXrrttFuaYwmjdHc3k12CLt39LnHYf0tIbWxiEHoM49Z Uz6NCjLZwhrubNoCLUWIrYKA+lnXNv65MPOLrFcgU8PaWqEzleUeMVW3iC3emWVQFADWuYfr4q2oy PmIUGEj61EnS8QMCRelt6IxmPrZZ7KXxJRLMPv8RAKKYqW/N+6qxfqjBp9MJg/P3+pvxUalLicDvU BenSLOpq//n9hEY8ht85EVKgOFLDbzGibTl5j0P18hXH4H+GmaZ7vwc9qWJgzQ1RJ9KRF8rIquPg8 rGO3Ny2fCJUNfEAGZCPA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ceRxk-0006m2-Fn; Thu, 16 Feb 2017 19:43:32 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ceRxc-0006ee-GD for linux-amlogic@lists.infradead.org; Thu, 16 Feb 2017 19:43:28 +0000 Received: by mail-wr0-x243.google.com with SMTP id z61so2461400wrc.3 for <linux-amlogic@lists.infradead.org>; Thu, 16 Feb 2017 11:43:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=oF/TIBFgbm3aTpTJECM9WXsM2Q+imibr52DrcO4Ozb0=; b=hvNMzkYdceM5B1TyCXQ1QZvxc2nvqDBeEQxRVGB+BxoaIEtxT1D9DBXEgCjx5RclSm QQL5XHz7skiQCIVRDU0f1GZ+Rlcx8BhCOa6+itppzLpW/A0gvsMJyd0Qly/RFym2l5N1 FQjdEXUBqX25pbdgSWKy2O1YBY++BHUi/vSxJkGz0LkgL3bZm4oCIDw2jkdtd5rYf7FK rU86P7KDcNm03ifYB/cQg8TN6QnrYjpLIvbtZBUaEE9ypyj9y9d9ggCRQL62U42qXThd 0tqQvrjPWv08gzTng2z4mO5hqHrHszUYv4iYi7MJcVBWBRRgvlqWkmHCawXUkHKIWFN3 Pq6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=oF/TIBFgbm3aTpTJECM9WXsM2Q+imibr52DrcO4Ozb0=; b=O7PXeM+0NB4rQgTVMs7Ur8trxKlIvEXKIHQ10HBsYDusAuZdQRAtwbxc0BUmVBfyM4 eAoj6ow5binfghk1mPuhkhrYyYvuoAWYH4j6NTNHcPaGf1okXWZsh3A6xXtqQR6upKXX pQEoW+9o0CCeM4b48HDin0g1+8/d2BrF4uU2GwoEyebYk0hZwNUEmwbc7DsUpRy5zi8I 7SqKp8iG3hvlcS4GNYrXCkbinbWe9PfGcnCacBeQXEO3On2G+Q/HecXBm5L0ejVd09s3 QtbO8bBaffW1c6HcnTm2v20x9Lkf86Sc0KKq8wTrxgGz1JzuBO/jUTwh6fZsxqfXPfLU lq8A== X-Gm-Message-State: AMke39nincj+WW3uGazXjjYG3zZCsfkBEC2vM5/cNFZyU/2WM/ZVMVYVafmJBpBG+TQdSA== X-Received: by 10.223.164.203 with SMTP id h11mr3821924wrb.153.1487274182868; Thu, 16 Feb 2017 11:43:02 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:f02a:ffb3:d41d:abac? (p200300C6EBDC4000F02AFFB3D41DABAC.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:f02a:ffb3:d41d:abac]) by smtp.googlemail.com with ESMTPSA id x39sm10195128wrb.3.2017.02.16.11.43.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Feb 2017 11:43:02 -0800 (PST) From: Heiner Kallweit <hkallweit1@gmail.com> Subject: [PATCH v2 1/9] mmc: meson-gx: simplify bounce buffer setting in meson_mmc_start_cmd To: Ulf Hansson <ulf.hansson@linaro.org>, Kevin Hilman <khilman@baylibre.com> References: <7d5263e2-9325-dedb-a5f6-954c4a09e977@gmail.com> Message-ID: <7673059f-5bd0-a8e4-db3f-4f41370f8a11@gmail.com> Date: Thu, 16 Feb 2017 20:40:51 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <7d5263e2-9325-dedb-a5f6-954c4a09e977@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170216_114324_696866_F38AEC20 X-CRM114-Status: UNSURE ( 8.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Cc: linux-amlogic@lists.infradead.org, "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 5a959783..07a7399c 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -516,14 +516,7 @@ static void meson_mmc_start_cmd(struct mmc_host *mmc, struct mmc_command *cmd) desc->cmd_cfg &= ~CMD_CFG_DATA_WR; } - if (xfer_bytes > 0) { - desc->cmd_cfg &= ~CMD_CFG_DATA_NUM; - desc->cmd_data = host->bounce_dma_addr & CMD_DATA_MASK; - } else { - /* write data to data_addr */ - desc->cmd_cfg |= CMD_CFG_DATA_NUM; - desc->cmd_data = 0; - } + desc->cmd_data = host->bounce_dma_addr & CMD_DATA_MASK; cmd_cfg_timeout = 12; } else {