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: 10756873 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 A907991E for ; Thu, 10 Jan 2019 21:02:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 980C429B88 for ; Thu, 10 Jan 2019 21:02:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C60429BBB; Thu, 10 Jan 2019 21:02:59 +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=unavailable 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 5CC4529B88 for ; Thu, 10 Jan 2019 21:02:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730927AbfAJVC4 (ORCPT ); Thu, 10 Jan 2019 16:02:56 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35738 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730918AbfAJVC4 (ORCPT ); Thu, 10 Jan 2019 16:02:56 -0500 Received: by mail-pl1-f196.google.com with SMTP id p8so5722713plo.2 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=geYVlGs6inhD9LWTBeeYtSaAachrYo72KBWZAFK0sOVjW841RJwJm5mb3E4J91UxUX NheZCOqWt09o0288fTQ3vbb2+RDOk6ilfaOE3VRIAgm5iGX4DTvuZpciEz4r3btjWwPl QhkPMrWWXiVPsx3XZogR1tau6hiZl3WjkYObz2Jmsp1WjnWHcRtnhokvrA+IoPmnIifw ekxofRjYESXG3BHkxrwm9csXNzwfDR9pYEQ427EOdcGIRsttjrXyURDsduLBhwdrasky vorQORMgSGK35w9oBewpYUUfY5Dy66s/OfkkF5ri5GeZwoFGGiEHwoAXuMbAr4hF9CCc S6yA== X-Gm-Message-State: AJcUukeUmKc4LGMhSqKwGCkkSm9HBMa8zHDW9I0H6eWrj4yIAl6NTxFd KAixmZAd0Y6QxMfUuAu3nQZBhg== 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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);