Received: by 10.223.148.5 with SMTP id 5csp6306202wrq; Wed, 17 Jan 2018 12:02:32 -0800 (PST) X-Google-Smtp-Source: ACJfBosjSmjfWKp//k2ftaKC+xSd1QsRAV33jJDImgucObc+hCfu7r+pHCU2nxTV0jIg5hJsDqK+ X-Received: by 10.98.59.149 with SMTP id w21mr31889134pfj.7.1516219352734; Wed, 17 Jan 2018 12:02:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516219352; cv=none; d=google.com; s=arc-20160816; b=ogtbtMBx6lhEZAl7A0RRTxsAmiUNkZi/8CRMfQ2lw7IOG6EGp0S+7BGuJ38IbwhPOS RH4qHj5hkfo2w3zVo1cF42cOFPBZnAqJIfZ73Q8XpUqJesy+hj5S+QD9ckmIHSFB+1RM Cq6/WSmJRac9BCWJAqS3Zzwd/INKUJ8bv4VVw3idOJDs4mzdXUhkbnK0TPJ3xfzVyEGT u9DwqPr2RtQ1V+pRoote4oEu4/sy1OC44P/KzxR3rUzHg13Ak2WHEfFgoVBcvEmxRBWy ItkhvsNnc0g2Nj57/P73kNsGzuvaJ3dhm58rT9HuiKPNu4dL6e/XA3TM4vylWgjZSe3B 1IvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=xjEFDIAhBLS4Ex6dt/rsQBMg4FffRqisk910aTRz8Jc=; b=PnM8M+w+ABnMYSK6CyTzRMXbZuywUxG3XHEmLbMSaZZO2LM1UT9D3dLECJ4U37520Z 64Hq+76njyT/DYFNfPi/TRMVlGyspBb7+ithQMMUTx5AOr5FUf/3wKAB5sNXvIiXkcll /o/CRQT2IM8Z1cNnrqjhD2zhADJB6ub295I7iXRmEMy6ObE8Auw/bbtgQWQuXVTri0cT A3VoA2+kM+/wcUas4kylGsH0Dro+3l+Jq2v3w8AtApmfs4Ik6bxnMNY8CxRsSzHRFEC4 hls1Z66Ssh59U6Q7FHawR+tKaCBEI7P4rHf8V8rsdYLo5EGRh6LuluXFsfswOmtNkdcG BO7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pgNIwMB/; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k6si4976415pla.383.2018.01.17.12.02.18; Wed, 17 Jan 2018 12:02:32 -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=@gmail.com header.s=20161025 header.b=pgNIwMB/; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752891AbeAQUBu (ORCPT + 99 others); Wed, 17 Jan 2018 15:01:50 -0500 Received: from mail-pf0-f172.google.com ([209.85.192.172]:42075 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752554AbeAQUBr (ORCPT ); Wed, 17 Jan 2018 15:01:47 -0500 Received: by mail-pf0-f172.google.com with SMTP id b25so5977510pfd.9 for ; Wed, 17 Jan 2018 12:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xjEFDIAhBLS4Ex6dt/rsQBMg4FffRqisk910aTRz8Jc=; b=pgNIwMB/oG3rtzcPapSHKkU8AURB+4iC+CbEapQYnBtJvww+R2ouz5D9ub9oLPb/7t yrwkqWbvCKcPIE3C3CfVTO3eSzAQ/yJRSSdcKYzubXdn7lvdH4Ue+jO4Ehi4EZPtGfBL 4wL+aJXcqHSO3J47rP82J0zh1S6QAi+/FA/1wbNa2Z9DfYGfUk6KiKi72+rI0CN7AGPp hh2n6p5xvUP/DC2Xrw/OyfNOdreAvhSmc6w+OaZ9tDiozm30ShrTzeQaRdecCcDNVQLq NBvdcC/SHVS5U+d7hnnfNoYy5J9HP9Ge+75h/FVJh4zWQsmf4qUxS48Kw+aPtqBQiv0S 5YlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xjEFDIAhBLS4Ex6dt/rsQBMg4FffRqisk910aTRz8Jc=; b=EbKMpA8eLrkNeU1JKJb2ikybW75vKyX1PEJq8xMLDb4gxgE3Ql4xh8pndtciRGsvnI WB66CNC29ibHzKfCkJdDj3FnE3DjA3Ooun8/lnHDWAnUOMZE/7G/0tQdJeJdMLJML5by 3u3geUbrXFtOXn8IYIe445xPFLA5RHuJ6ln9yDxJNPL4FbbxUA6CFAXpprpRT4cDafWb V482rHU4xxFQuJqtOKXOBkb7Y3CgbGjRWB+Wj5OsHSu+0Zg16uDROiUb0spkDXb5Pyvm THLHhIgoA0muP730Khc5BzJp9/cLwPTsyb6AWplmk0X5HrsvEQGNxXh4Is/NPpo7HoZZ apMQ== X-Gm-Message-State: AKwxytdOKJvGpC+Ny9xGSxIAKCYGiLki8C3bZPJr1m/MPuP7CXWm2tii /ZTrf+hLW4SXTacR8780oGE= X-Received: by 10.101.82.130 with SMTP id y2mr24580032pgp.109.1516219307066; Wed, 17 Jan 2018 12:01:47 -0800 (PST) Received: from Asurada-Nvidia (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id f79sm9861250pfd.103.2018.01.17.12.01.46 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 17 Jan 2018 12:01:46 -0800 (PST) Date: Wed, 17 Jan 2018 12:02:11 -0800 From: Nicolin Chen To: "Maciej S. Szmigiero" Cc: timur@tabi.org, broonie@kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com, fabio.estevam@nxp.com, caleb@crome.org, arnaud.mouiche@invoxia.com, lukma@denx.de, kernel@pengutronix.de Subject: Re: [PATCH v5 00/17] ASoC: fsl_ssi: Clean up - program flow level Message-ID: <20180117200210.GA9523@Asurada-Nvidia> References: <1516171902-32669-1-git-send-email-nicoleotsuka@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 17, 2018 at 08:38:48PM +0100, Maciej S. Szmigiero wrote: > However, I have a small nitpick regarding a comment newly added in > this version of patch 16: > + /* > + * Do not set SSI dev as the parent of AC97 CODEC device since > + * it does not have a DT node. Otherwise ASoC core will assume > + * CODEC has the same DT node as the SSI, so it may return a > + * NULL pointer of CODEC when asked for SSI via the DT node > > The second part of the last sentence isn't really true, the ASoC core > will return a (valid, non-NULL) CODEC object pointer when asked for > the SSI one if we set the SSI as the parent device of a AC'97 CODEC > platform device. > > The NULL pointer dereference when starting a playback that I wrote > about in my previous message happens because in this situation the SSI > DAI probe callback won't ever get called and so won't setup DMA data > pointers (they will remain NULL). Well, somehow the DMA data pointer of CODEC could be described as "a NULL pointer of CODEC" reluctantly...it confuses people though. > And this in turn will cause the ASoC DMA code to dereference these > NULL pointers when starting a playback (the same will probably happen > also when starting a capture). > > Sorry if I wasn't 100% clear about these details in my previous > message describing this issue. I would prefer to send an incremental patch later to update it, if there are no new comments against this version; Otherwise, I will update it in a next version once there is a need to send a v6 anyway. Thanks