From patchwork Thu Aug 2 15:03:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 143350 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2277139ljj; Thu, 2 Aug 2018 08:06:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe8kL13toS0nIidtWr6v3eCPxJoqKYSkDMcoO3UKLb1C04n7DIiEezrOZC+0/MvbD5IwFLg X-Received: by 2002:a65:5c83:: with SMTP id a3-v6mr3246552pgt.164.1533222363225; Thu, 02 Aug 2018 08:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533222363; cv=none; d=google.com; s=arc-20160816; b=cZM4JUeNTwy2AAaIABpO1qDx545P1S6UtdT2tqr2Sc+ALwe1cruWX2vvDpu16DVoKX bsuYOTtEbbWmyY92eRGujBPbNKkyQpuH9iQ9r/QEZDBVdom+gpqBcgs+Wz0RyCYMXqrW qqXnkUAgfZTNPQ1ee01nUHjC49SO0WlB2mvm3KzdZ/jBgMNyglfzgfAQ9qwQKr0LcBmh eoS5AS+ASZpgXoCr1/W6ba2c0tAsYhR99M3EPge5XshaEV77agj57TYk//UgREEAToma OtJifjy0aQLogW9BOKhg9BZZBbIahJfBrYj13FQt66zb8TLyfpvpXIWg6//MBkQWjHzN yzqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=O2VBaKsaHVm856s9KjJ2JKojEQQJw+58cO+gZJ+RQTQ=; b=T3gh69LzdjGcLjwU4W/Y7C2WW1MwyJB0ck5/emyHMj8fYtj3mVi5AGsrZ8V2lwCASO EST8Dd9QwxTDnx7yFAL3vjKKfOgxVA+MTivrLlAZnA4zmJgUzVtSP/wMY9tU5m30Jtdd S9Lh16HfLbKP6icLf4neRVqHADIeCHtX7nx2mACYebMUS4smqr6+gxkfzUwghJ9GPIJ8 bFiGNRVFD145zEd/ssSTSBEwJZTsDZ3nW9HPC2tc6IuMz8938aduBObpIZDJo4tH2l6p iN5bAAimL/MKjTI4Drue0hEeqLpAqIhaXzit6ZZ7TKLww+HkvhbACprsLfGHJo+VmF0R I6rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N3sSoeZu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4-v6si2147308pfd.344.2018.08.02.08.06.01; Thu, 02 Aug 2018 08:06:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N3sSoeZu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732628AbeHBQ5c (ORCPT + 31 others); Thu, 2 Aug 2018 12:57:32 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36729 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732426AbeHBQ5b (ORCPT ); Thu, 2 Aug 2018 12:57:31 -0400 Received: by mail-wm0-f66.google.com with SMTP id w24-v6so2948933wmc.1 for ; Thu, 02 Aug 2018 08:05:55 -0700 (PDT) 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; bh=O2VBaKsaHVm856s9KjJ2JKojEQQJw+58cO+gZJ+RQTQ=; b=N3sSoeZu2e2XG3SgfC1QjkyZnH4vL0XZ5Q0mhzwqyCjhQempVcGMoxMSS04BRxyAZZ ppcenCMA72PbjoActe1U1139sBiRiH1XV7SQfGf6xW9Xo0YMvkwP4NzHpNBzBgxZSsKE LpEsL5IqVrACyWoDFUJ36lEXSVclUu6hnB4SE= 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; bh=O2VBaKsaHVm856s9KjJ2JKojEQQJw+58cO+gZJ+RQTQ=; b=FvR794yRmXoksm7rWw2/hGTnfQcrMlqgR4mk2gqNf8zL63HV51mqPhgwUvERAlAKCt ojH/MwnBDtdiQ9hgWaL13Sg3WM+TXx1a5KJK1Rs/7ajffyAWzQrEq01lvS23FboMRanZ j5f1qazNi5TZxcuAbjBtNbru2q1gphi/YBTlTYyLQt0yRNMl1tTvxTf5POKMuic8BlHT 2YOpdsEyhSCnmumZDd3Re3VuaCGVFhrQJ2P35LaWsWtgiPr76WUw05PqZfHl6gMKBe8/ gFIboL1WnwB3PvGeUQY1BKVTyzKgZ7/mas06zxOHom1RA9ZNCZoLvsnkYVozZQ2bV0LH +BGA== X-Gm-Message-State: AOUpUlHvFO+DphWAAyUz9Q94Rf09IoWAcwyOEsqKDT9k97avY5QfRDs8 KC+zFDVd3Ggj6C4190Iyvw2CiA== X-Received: by 2002:a1c:1182:: with SMTP id 124-v6mr2260730wmr.75.1533222354706; Thu, 02 Aug 2018 08:05:54 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id b126-v6sm2497517wmf.41.2018.08.02.08.05.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Aug 2018 08:05:54 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, lgirdwood@gmail.com, alsa-devel@alsa-project.org Cc: perex@perex.cz, tiwai@suse.com, vkoul@kernel.org, linux-kernel@vger.kernel.org, rohitkr@codeaurora.org, bgoswami@codeaurora.org, stefan.wahren@i2se.com, guillaume.tucker@collabora.com, Srinivas Kandagatla Subject: [PATCH 2/3] ASoC: smd845: remove auto rebinding Date: Thu, 2 Aug 2018 16:03:37 +0100 Message-Id: <20180802150338.24538-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180802150338.24538-1-srinivas.kandagatla@linaro.org> References: <20180802150338.24538-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove auto rebinding support, as component framework can deadlock in few usecases if we are trying to add new/remove component within a bind/unbind callbacks. Card rebinding is ASoC core feature so all the previous component framework stuff in q6dsp remains removed. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/sdm845.c | 2 -- 1 file changed, 2 deletions(-) -- 2.16.2 diff --git a/sound/soc/qcom/sdm845.c b/sound/soc/qcom/sdm845.c index bf4ec4646906..be0cb1122036 100644 --- a/sound/soc/qcom/sdm845.c +++ b/sound/soc/qcom/sdm845.c @@ -226,7 +226,6 @@ static int sdm845_snd_platform_probe(struct platform_device *pdev) return -ENOMEM; card->dev = dev; - card->auto_bind = true; dev_set_drvdata(dev, card); ret = qcom_snd_parse_of(card); if (ret) { @@ -258,7 +257,6 @@ static int sdm845_snd_platform_remove(struct platform_device *pdev) struct snd_soc_card *card = dev_get_drvdata(&pdev->dev); struct sdm845_snd_data *data = snd_soc_card_get_drvdata(card); - card->auto_bind = false; snd_soc_unregister_card(card); kfree(card->dai_link); kfree(data);