Received: by 10.223.176.46 with SMTP id f43csp1006386wra; Wed, 24 Jan 2018 09:09:16 -0800 (PST) X-Google-Smtp-Source: AH8x2279vlvSrKQ98FzbvM5Ydg4HdFctT+GHzo1LCBCGy47giz4NRG77wd7VEatmawqdwee5zXFD X-Received: by 10.101.96.3 with SMTP id m3mr11147608pgu.409.1516813756558; Wed, 24 Jan 2018 09:09:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516813756; cv=none; d=google.com; s=arc-20160816; b=ApaWnYBoUkGD/Mzut3yAk4dgUgjLY1JLfZ/b3x+Jlcxr0nvdQ0ttgLlsU1SdTPqOrY GjF4tQLAdviIF3oXKBFzToRpHc5up56h3LRB6ddD+RIRMJ8gQWMwj1v2+DIKEQGPDug2 YDkR0W93dsjyd2EcpyN/5X7XGZw2aenefph6hIpdC0FZ7XIwwNNLd6tbjckhaDvRfdSc gFbMyZVfFLp9Vd7gmLBPHeodk++pFkoIaUpaj1pcNxbwbm6YtmjKWjieU5DCYHbVTnFF 6W0TDAoCyA/tqGEETshksqdJXwHha70FWQDdslgXhBi4Xug2a2vPv6N9oVor/PP+H3jD pfVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=HML65r5Efj+px6z3oQnXFk+Z0FqCyX3HuYiuyD48gi0=; b=mnjQwLOyI2sJOMeZ41/9pcrzjTJVrDDUa5vXsgsaWO9ZKBswBoKXjip69LH2HpdV5y Flp6Ok0eodfh6YW+d+wsLP2U+a4ZT1oQcmPiwyI/oy83RqwodjceC/0ZNQ8aN1Nw/uwj qMS5dDTTVgwdA0DD2cMi2dpMhHrKkUlAXzK1n1NfZihX/UGnXLN6HGMCjgoFnC37I4G+ eqQNrhWIXHrIUZMe4jU4xvi2HDwPEIJjkS1YBS9CCyYd/i5Vk/swG6uUQPJiKRAA7CT/ xDw5/kUeOpcYlVLI03b6sM4k57NyPCv/7iJYQBLm6cm84wzz6Bxl8v0H+FSno8vxZ0GM FBzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VM8f3nXE; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8-v6si447806plt.704.2018.01.24.09.09.02; Wed, 24 Jan 2018 09:09:16 -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; dkim=pass header.i=@chromium.org header.s=google header.b=VM8f3nXE; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934358AbeAXRHy (ORCPT + 99 others); Wed, 24 Jan 2018 12:07:54 -0500 Received: from mail-io0-f195.google.com ([209.85.223.195]:38335 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934301AbeAXRHw (ORCPT ); Wed, 24 Jan 2018 12:07:52 -0500 Received: by mail-io0-f195.google.com with SMTP id d13so5574549iog.5 for ; Wed, 24 Jan 2018 09:07:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HML65r5Efj+px6z3oQnXFk+Z0FqCyX3HuYiuyD48gi0=; b=VM8f3nXEs3iK8Qttty7SBH8YX1tDlL2+Pb7bqF7vl99cTns1mY+YUTdXpEUXo6K0kF /JUlJsl9pzH8f5P5Xh4IVcBCGzGdOxz3MP4pXraia72AfYSr0ZSglzNEIg3yYQ+Ev8lJ X9wDRmg2cNrGIygvcVYukjwmxnucOnujbQxo8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HML65r5Efj+px6z3oQnXFk+Z0FqCyX3HuYiuyD48gi0=; b=op1xzQhjLw+pFVKtdq4IAXlTU36YuHzrtgE8QblpUzregL4tycAfThjl54oDMT32na eFH2g0Y4wcqylgGj4WnXKZ7iJdaoamSxOyXCHm4HNIFZs2+UWAVRr02+fTtAGusbYcBh LsQOz792fVq4R0oCDLokUnmpURthoDEdxSH1+bvZYFyJ8bxhw0iQGwEHVe8SvdpE4+xB FHOb7HnpJ5Pkyb+9WHZCuteUVwIVtl8IOEdp7PqqKKRTK6GSnhQ4gnlWxHyvvUj2laJg q8mSPIctiQyBmkAiAreWObwydOZACcEKdwSVR4/pWqEsgFEdhpbbVsKezgoEFLJQIULB a3/g== X-Gm-Message-State: AKwxytf1E2R7FOUeubZ+v0TXHg54HituAyolOb1+Itm83s2RRzYeGP69 RHr5BILFRbeuPHaSvL6tjD10gxT8z8k= X-Received: by 10.107.139.78 with SMTP id n75mr9461586iod.252.1516813672038; Wed, 24 Jan 2018 09:07:52 -0800 (PST) Received: from mail-it0-f42.google.com (mail-it0-f42.google.com. [209.85.214.42]) by smtp.gmail.com with ESMTPSA id i22sm424920ioo.39.2018.01.24.09.07.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2018 09:07:50 -0800 (PST) Received: by mail-it0-f42.google.com with SMTP id e1so6005108ita.0 for ; Wed, 24 Jan 2018 09:07:50 -0800 (PST) X-Received: by 10.36.181.9 with SMTP id v9mr9538104ite.27.1516813669915; Wed, 24 Jan 2018 09:07:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.203.194 with HTTP; Wed, 24 Jan 2018 09:07:49 -0800 (PST) In-Reply-To: References: <20171216011230.107527-1-briannorris@chromium.org> From: Brian Norris Date: Wed, 24 Jan 2018 09:07:49 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Applied "ASoC: rt5514-spi: Check the validity of drvdata pointer on resume" to the asoc tree To: Mark Brown Cc: Marc Zyngier , stable@vger.kernel.org, Oder Chiou , Bard Liao , Liam Girdwood , Linux Kernel , alsa-devel@alsa-project.org, Takashi Iwai , Jeffy Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc and Mark, Mark already noticed this was no longer needed, but I just wanted to note things for the record, since Marc seemed curious. On Wed, Jan 24, 2018 at 7:36 AM, Mark Brown wrote: ... > > From 509bf3a7d43ab173abc354df2a859229ede043c0 Mon Sep 17 00:00:00 2001 > From: Marc Zyngier > Date: Wed, 24 Jan 2018 14:50:00 +0000 > Subject: [PATCH] ASoC: rt5514-spi: Check the validity of drvdata pointer on > resume > > The rt5514-spi driver seem to assume the validity of the drvdata pointer > on resume, which it may not be populated, leading to a not-so-nice crash. This part was fixed with this: 346cccf88319 ASoC: rt5514: Add the sanity check for the driver_data in the resume function which is in 4.15-rc6 > This stems from the fact that rt5514_spi_pcm_probe() is never called on > my system (a kevin Chromebook). No idea why, but if it can happen, it > is worth fixing. I believe the rk3399_gru_sound driver currently does not set up the DAI links properly at the moment. This patch is still waiting, to fix that: https://patchwork.kernel.org/patch/10067725/ [PATCH] ASoC: rockchip: Use dummy_dai for rt5514 dsp dailinkgi Brian > Fixes: e9c50aa6bd39 ("ASoC: rt5514-spi: check irq status to schedule data copy in resume function") > Signed-off-by: Marc Zyngier > Signed-off-by: Mark Brown > Cc: stable@vger.kernel.org > --- > sound/soc/codecs/rt5514-spi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/codecs/rt5514-spi.c b/sound/soc/codecs/rt5514-spi.c > index 2df91db765ac..9255afcf2c3a 100644 > --- a/sound/soc/codecs/rt5514-spi.c > +++ b/sound/soc/codecs/rt5514-spi.c > @@ -482,7 +482,7 @@ static int __maybe_unused rt5514_resume(struct device *dev) > if (device_may_wakeup(dev)) > disable_irq_wake(irq); > > - if (rt5514_dsp->substream) { > + if (rt5514_dsp && rt5514_dsp->substream) { > rt5514_spi_burst_read(RT5514_IRQ_CTRL, (u8 *)&buf, sizeof(buf)); > if (buf[0] & RT5514_IRQ_STATUS_BIT) > rt5514_schedule_copy(rt5514_dsp); > -- > 2.15.1 >