Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2346965imu; Thu, 24 Jan 2019 11:07:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN5HscTEMIXw8/rjUYdV88q33nDUWZxx3xnwbf8VEMJCTuZIq823gWej7MbGfpvIk4ZQrMo3 X-Received: by 2002:a65:4646:: with SMTP id k6mr6905490pgr.153.1548356876767; Thu, 24 Jan 2019 11:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548356876; cv=none; d=google.com; s=arc-20160816; b=cIsYlEKLQUNtulfq23IaisMO/6ADV3BzzwtLCYnF2CfsVapOJA0Yd7J/zo/BbNzo1q dPl/ie6qzu5YOcZXvOmxGKBpTk8HQD27WqDwL8lefUYAutHIwPUCLc+G+wWIcPPYLJFr SyMBqgQ1aMpGspAg+Pu3cm3L3SEdqhQeAZxGaXAI5uBupCmiJ2F8jyhw0/3en7t5PrAO pVxuXn1U6xPrYE3J17UoJQR+xGhJctnPknG2taqqiDGJEiyK5t+RcyE7A8oo3+rpCHG6 bCAm88/k2oDqPEWaKSseF0W/2BHs4q3aWNvHZ4H7qK8fvvflz3R3YToaMgsxoB//nO3B EVyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=f8mDQV6KmO0GQmAE3DfF4zqROCcCe1xKAwss8BGbZSs=; b=PDAPQJzHHMn8IBRDbXQ8vgeh3VVBvUDxlbKTrFm5wnuL7LlYgItBz1N4HUdtO0t9Cm RxBRnCPz3aLY+Ob7gotnjg1seIpSiWnRWwKD5zUGawXCms5TaZDJRCghE/gMsvUH9SpJ 4npShT2HWOyZ2hcUY0REt6YSBlpKciF+eVI80zslY70BtoAhXew2N0tPoX1Ri2rIkU0u dEGMcaDxeeL/O+tUpsv0b8Rtghp7FO5AsSrsPQQMC9Py16o9oMLG9BacqZ0NgNcw7u1Q UwhB/VAEkJRVtvxaA3ScywC3i6Ippk2JnddLMMk+c1L+G41gIpg0Y2stNS6YiTHbzVFD J9rA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si22573373pgg.120.2019.01.24.11.07.39; Thu, 24 Jan 2019 11:07:56 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727898AbfAXTH2 (ORCPT + 99 others); Thu, 24 Jan 2019 14:07:28 -0500 Received: from mga06.intel.com ([134.134.136.31]:52886 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbfAXTH2 (ORCPT ); Thu, 24 Jan 2019 14:07:28 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jan 2019 11:07:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,518,1539673200"; d="scan'208";a="128634601" Received: from agunda-mobl1.amr.corp.intel.com (HELO [10.251.156.62]) ([10.251.156.62]) by orsmga002.jf.intel.com with ESMTP; 24 Jan 2019 11:07:18 -0800 Subject: Re: [alsa-devel] [PATCH] ASoC: soc-core: Fix null pointer dereference in soc_find_component To: Mark Brown Cc: rohkumar@qti.qualcomm.com, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, vinod.koul@linaro.org, lgirdwood@gmail.com, Curtis Malainey , plai@codeaurora.org, linux-kernel@vger.kernel.org, Ajit Pandey , tiwai@suse.com, Liam Girdwood , Matthias Reichl , Rohit kumar , asishb@codeaurora.org, srinivas.kandagatla@linaro.org, Curtis Malainey , Dylan Reid References: <20190115000610.GM11073@sirena.org.uk> <796a856c-a9a6-022d-da63-947279090198@linux.intel.com> <20190115211137.rhdyjadu7fppp3p4@lenny.lan> <044d59ba-094e-727d-14a9-6ebfc54cbbf4@linux.intel.com> <44029078-2749-5a3b-7b03-f38461bf268f@linux.intel.com> <20190124184412.GH5641@sirena.org.uk> From: Pierre-Louis Bossart Message-ID: <976ec85a-7b21-6c58-90cc-a3d104f9505a@linux.intel.com> Date: Thu, 24 Jan 2019 13:07:17 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190124184412.GH5641@sirena.org.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> changes are legitimate. To move forward, maybe it's not worth spending too >> much time on a grand unification of string theory, there are simpler >> solutions: the Intel machine drivers already do get the platform driver name >> as an platform_data argument, so we could modify the dailinks platform names >> before even registering the card. I tested with the attached > Yes, that would be much better - it's vastly more idiomatic. The > general idea is that a machine driver should know what it's expecting to > find before it starts probing. Thanks for the feedback, will send a formal patch with the helper and machine driver changes after I test more with the legacy drivers. Do you have a preference for one patch that deals with multiple machines drivers in one shot, or individual patches? The latter are nicer for backports (e.g. for Chrome), the former nicer for maintainers... The goal of reusing machine drivers as is isn't really achievable anyways, it looks like we are going to have additional changes, e.g. if we want to avoid the calls to snd_pcm_suspend as suggested by Takashi, we'll have to add a reference to snd_soc_pm_ops that's only used for SOF, the Atom/SST driver does things in different ways mostly due to historical reasons. -Pierre