From patchwork Thu Jan 10 21:02:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 10756869 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 75857746 for ; Thu, 10 Jan 2019 21:02:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F9FA29B88 for ; Thu, 10 Jan 2019 21:02:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53A2729BC3; Thu, 10 Jan 2019 21:02:56 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 E973229B88 for ; Thu, 10 Jan 2019 21:02:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730811AbfAJVCz (ORCPT ); Thu, 10 Jan 2019 16:02:55 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42050 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730746AbfAJVCz (ORCPT ); Thu, 10 Jan 2019 16:02:55 -0500 Received: by mail-pl1-f193.google.com with SMTP id y1so5706121plp.9 for ; Thu, 10 Jan 2019 13:02:55 -0800 (PST) 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=ZARu9UCi4xrMPRpppS+IIjC4rdBSvF8crSbkUbDMBGM=; b=NfNgkqZTGUxn46lQER81Mq1UQHA72OCGNNz5hnDZBJbYMlnIyz7CtV4KaVzM/1vcB5 +m+A6BTufpNNHilXz20IIhs7D4oXx+ooZI/TczlEOGWI12Ic9O1WXbI5qSP2Jgqvz6tp V65G3RYXn4rz8YyBUNVy89mGqoBx3h61ewy3I= 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=ZARu9UCi4xrMPRpppS+IIjC4rdBSvF8crSbkUbDMBGM=; b=awT1H1bj8o2E01VGciw2spsRyFW2bfXlRU5mGldq5kC42nQ5jw/FoLp8YVmc+yItED N2qgGuGjHwsfa06IWEZtjUrSWBpUW41mR95SwWJIN1GCwLBC7jrv3WR+/G2nwVcabujO m78YwalKicq+iRnJOvu5OZWjXXTQaGvSBKvaciYOFOsqcpGzIBu6cuB+D0uZRkeD0t4B i8IsCzpBe2QCW8f7xRmXErU6Zn6MznRxlR225YxZXsXOzdo8sv6IpQfsWoLX6stdZCTF NIxCwU7Dq/n8+kflnkznTW4AzuX3s2OCc5SnQFj8g0YsGLjsJOiaCqC8TBqu4/eT6/MJ wNsA== X-Gm-Message-State: AJcUukd6L847BxU+26GBr2yhssV+/lbsYs77mH4U0tIn5ngPFvWryvh0 DB2bWlz+hcL/lNqY1Hhf4uKOjg== X-Google-Smtp-Source: ALg8bN7MjSTeHxw61KTjWdGf7mpgBzaotL5D3QrlKVm2E0Hr2TqwVk9U6Hrur6JKxPJ/IVCUdzdn/A== X-Received: by 2002:a17:902:981:: with SMTP id 1mr11539368pln.142.1547154174479; Thu, 10 Jan 2019 13:02:54 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id s37sm95562617pgm.19.2019.01.10.13.02.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 13:02:53 -0800 (PST) From: Stephen Boyd To: Mark Brown Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-arm-msm@vger.kernel.org, Girish Mahadevan , Dilip Kota , Alok Chauhan , Douglas Anderson Subject: [PATCH 1/2] spi: spi-geni-qcom: Don't initialize completion for normal message Date: Thu, 10 Jan 2019 13:02:52 -0800 Message-Id: <20190110210253.23219-1-swboyd@chromium.org> X-Mailer: git-send-email 2.20.1.97.g81188d93c3-goog MIME-Version: 1.0 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 We only use this completion when we're doing something that isn't a message transfer. For example, changing CS or aborting/canceling a command. All of those situations properly reinitialize the completion before sending the GENI the special command to change CS or cancel, etc. Given that, let's remove the initialization here. Cc: Girish Mahadevan Cc: Dilip Kota Cc: Alok Chauhan Cc: Douglas Anderson Signed-off-by: Stephen Boyd --- drivers/spi/spi-geni-qcom.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index fdb7cb88fb56..c3e9464027d4 100644 --- a/drivers/spi/spi-geni-qcom.c +++ b/drivers/spi/spi-geni-qcom.c @@ -233,7 +233,6 @@ static int spi_geni_prepare_message(struct spi_master *spi, struct geni_se *se = &mas->se; geni_se_select_mode(se, GENI_SE_FIFO); - reinit_completion(&mas->xfer_done); ret = setup_fifo_params(spi_msg->spi, spi); if (ret) dev_err(mas->dev, "Couldn't select mode %d\n", ret);