From patchwork Tue Nov 15 18:26:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prahlad V X-Patchwork-Id: 9430327 Return-Path: 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 517B660469 for ; Tue, 15 Nov 2016 18:27:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 422A328C45 for ; Tue, 15 Nov 2016 18:27:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3475928C57; Tue, 15 Nov 2016 18:27:13 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE92428C45 for ; Tue, 15 Nov 2016 18:27:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753234AbcKOS1M (ORCPT ); Tue, 15 Nov 2016 13:27:12 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36619 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762AbcKOS1L (ORCPT ); Tue, 15 Nov 2016 13:27:11 -0500 Received: by mail-pg0-f66.google.com with SMTP id x23so12413441pgx.3; Tue, 15 Nov 2016 10:27:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=yP/ej0JGgwpDdwBdCpxTOc09eyV2rYLrFAiEFO9Hp40=; b=sxqQsjD4rP8Rc3fhd40akWnr5Bpco/4rDZ5kRfV9uyw1jxR3vjrRCCPVXvwnLh81/w IRGtN/IeiOrjki+9Qg09ISqgSQMzu8dXFCyWrdc7k3OnPXJ4+VgZy4UqK+5uR1fuO74o NKXx0URlIV4OfffOOL68cjMyFxZA8oDpsNBJM8p2VntFGcfsG5i50aDC1MvyKM0JD14O kRC44etsj4jkT8v9J6vg/JdZUtQ4A5AwvpQEPTH8bIr/afZu2JYM4FUn5ipgeLTp/D93 1eQf3UK+zdVnFxOww6vnDFJwWCF/333KpqdxMMnKFOyry64ci8L+jsnFGprjMyUrN3zo gbvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yP/ej0JGgwpDdwBdCpxTOc09eyV2rYLrFAiEFO9Hp40=; b=Vf2FcmQ0VP6D+7cSs8VUtKNozfP0xxQRjCy7eagq/L6Ji1vDr8vmJhWGgAHOu56ghP EsUhPu9zh4S7TQyVDof2mHvHDVf0K9QpcF0/jA8VcwNcOQM2bpzYrkXCLg+7vklWug0o ihoXaTBTAvYmAQZl7DEPDlTZQkOj4QJL5vd8nDNlhZl9M7Bxot5uLgPU6EPdxvW+ybpS UYhndrOPbhAD6siXPNN/mQkXQOHGGyjzyRGaJZ6YGBgPxMLEKM30z4F6/c5gUrBp7//m ldQljz18aoXYsJo0mWUxYLXkiVqMzgxvPY22jMlD9N4+h52O4GCC1F5uGRatSisZzQPL c0OQ== X-Gm-Message-State: ABUngvftp70Kahaw7LjK66niaji2GfiyjqPDq5z5cg8QT29q8Y0IhyNgK8/u/Rj8izXtvQ== X-Received: by 10.98.86.157 with SMTP id h29mr49178990pfj.25.1479234430499; Tue, 15 Nov 2016 10:27:10 -0800 (PST) Received: from localhost.localdomain.localdomain ([106.51.133.177]) by smtp.gmail.com with ESMTPSA id r194sm45114391pfr.94.2016.11.15.10.27.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Nov 2016 10:27:10 -0800 (PST) From: Prahlad V To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, vigneshr@ti.com, Prahlad V Subject: [PATCH] spi: spi-ti-qspi: reinit of completion variable Date: Tue, 15 Nov 2016 23:56:43 +0530 Message-Id: <20161115182643.32217-1-prahlad.eee@gmail.com> X-Mailer: git-send-email 2.9.2.729.ga42d7b6 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP completion variable should be reinitialized before reusing. Signed-off-by: Prahlad V --- drivers/spi/spi-ti-qspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index caeac66..ec6fb09 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers/spi/spi-ti-qspi.c @@ -411,6 +411,7 @@ static int ti_qspi_dma_xfer(struct ti_qspi *qspi, dma_addr_t dma_dst, tx->callback = ti_qspi_dma_callback; tx->callback_param = qspi; cookie = tx->tx_submit(tx); + reinit_completion(&qspi->transfer_complete); ret = dma_submit_error(cookie); if (ret) {