From patchwork Mon Jan 14 13:44:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10762653 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 8064114E5 for ; Mon, 14 Jan 2019 13:53:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F1AC28BAF for ; Mon, 14 Jan 2019 13:53:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6380D28BC2; Mon, 14 Jan 2019 13:53:39 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CF7D28BD9 for ; Mon, 14 Jan 2019 13:53:35 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 86CFA26699F; Mon, 14 Jan 2019 14:46:09 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4C02A266B63; Mon, 14 Jan 2019 14:46:01 +0100 (CET) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by alsa0.perex.cz (Postfix) with ESMTP id 8CC2A266ABC for ; Mon, 14 Jan 2019 14:45:59 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id v13so22909636wrw.5 for ; Mon, 14 Jan 2019 05:45:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=O84mJPX8rC7OO4KioGFTyrv4Z9BLr8QwdnxN2Cr0+Iw=; b=Xv+mo420RQ7SowyXQw5AOCTKRj/czTkjlgmqK2fPHy5sIyzgCxajeFCQkYBrAPj+95 +Fju2rw+nA/0cRLQlXuiFPULIZJGWcF/j3Qyi5ZPa66gsosd/FfNWpVg0zplq66CTSxK GbBvRVkhYOhLZXsP85cjaruzTkBMzLR5qQUkQ= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=O84mJPX8rC7OO4KioGFTyrv4Z9BLr8QwdnxN2Cr0+Iw=; b=fr1trSILR8pukdvVaCRA5d67jfCZbLcTkELgbE2dqmQxKypMB6UVmfr/cfDQ15R5Nl ZhlEQLTZ+06qnhSAt9vQq9xmvVVE32ghmzNF+B3+ddGGIhlRgu3G66tggSlqEpQ9Ca/W 1uYbIsMHE2JZBQ2jeFjU0Cemq4ngZM9WH9wYT1IBacHzDUqqtJmdmIbijITDO1WvWS2e VOPPT40OeJftiK12OrrfwX+ZHUl21M0h0x45wsYigx+Yr9pY65jS1a4Dgt8E85uY9qF+ ibTyejC88U12L7joSjFlwcpaplvMzdL5fBMwwDxLXjToRO6zdgd3FyelEgNpLeTXdAqp U4Zg== X-Gm-Message-State: AJcUukcurT2RMowjDUwmKsfjMBlFJuDHDmnXJ1XCg9klAq5Gd0XydbJH 0i5ZXlDVvRIDl2YPhpD63bZ6Qg== X-Google-Smtp-Source: ALg8bN4MnerjFJwS814W3kl5XW6Mk6zbxqo8XNvKLGKMxT8Im17NTWIRM5DDeHIDp88gfaCzPytGIg== X-Received: by 2002:adf:b6a1:: with SMTP id j33mr24357526wre.55.1547473559036; Mon, 14 Jan 2019 05:45:59 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id x10sm86766472wrn.29.2019.01.14.05.45.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Jan 2019 05:45:58 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Date: Mon, 14 Jan 2019 13:44:49 +0000 Message-Id: <20190114134449.15367-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190114134449.15367-1-srinivas.kandagatla@linaro.org> References: <20190114134449.15367-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Cc: linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, broonie@kernel.org, Srinivas Kandagatla , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 4/4] slimbus: core: add missing spin_lock_init on txn_lock X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Add missing spin lock intialization this also fixes the spinlock bad magic warning. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/slimbus/core.c b/drivers/slimbus/core.c index 8ffdc9876223..b2f07d2043eb 100644 --- a/drivers/slimbus/core.c +++ b/drivers/slimbus/core.c @@ -274,6 +274,7 @@ int slim_register_controller(struct slim_controller *ctrl) mutex_init(&ctrl->lock); mutex_init(&ctrl->sched.m_reconf); init_completion(&ctrl->sched.pause_comp); + spin_lock_init(&ctrl->txn_lock); dev_dbg(ctrl->dev, "Bus [%s] registered:dev:%p\n", ctrl->name, ctrl->dev);