Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2159974rwb; Wed, 30 Nov 2022 03:13:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf6TZG/sXCYVM8GWVNo7fvszC97C6u87CLzzQPCD5WEYoxLTWxjfOe/HRWAutORL+9l0m6fF X-Received: by 2002:a62:b417:0:b0:56b:b838:a4de with SMTP id h23-20020a62b417000000b0056bb838a4demr62990572pfn.73.1669806834193; Wed, 30 Nov 2022 03:13:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669806834; cv=none; d=google.com; s=arc-20160816; b=ijyLO/nW7dee6F1BKFyvnMZGt7l8/jUO+gYp9+79Tk8HXGUUMJ7+MY+VPg2J4Q5OIl 69GA+yhVcv6gGB9cbUz3kMZyTXkFqtCNzMXzkNfWieK+A93mBiElvGTF1gccRsjz6hCU wSnJ5yi5zsV99q1KAezJfbbSdbabeKJFhfaNGLauLA6ecV/mLKPyoN4YiBFxtE3eD7tL bTeIw+7gZKJ58x0NOOV/MmKO8oRA7DzvU1odDd1eMhNHv3au247lR8lVIn3vzDpfz6SQ ywoYb3DWSghMZRvDXLBvBkPj7XkiFz318qKvyowgASzfzZMtC/cqXuz4Rt1FtbYPhh2l nsHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CxNbVLSfNpWzIUpPVb9UPxVDyMVsByVITYiLdHXar9Y=; b=V6a7yMwqxtJx56t9PPRr4laQ1n6OyPEqhG2WndxoAS+LUUDaJgYww4Tt5O7keERyAl Gar/YNf/YzCGRClpgWqNS2s4wi98AC7fwC3/uFgPF4X2Km0NtXM1/hCXN3szGVhYjfwx Qv9niOVSva+wic1eoK00IvxYD9zARjlv5URWTPHrHMSslQTCtSbbP8jJiUGTWVH1S//c tQbwhq6j4Tejw1UcejAX8HtYGPltzzA2geLfIFkQUcjGPQnYOFpIc7FVNsHw4hO8bQ1l RtvOA75UmapEbHkwKhEyeaWh5/5jTNlaIiG2CaFU+2I1+a9baXDt+pQ5JV4FhfWdUaix lLhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hzb39mNu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w19-20020a17090aaf9300b00218ca1ac741si1159815pjq.181.2022.11.30.03.13.43; Wed, 30 Nov 2022 03:13:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hzb39mNu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233620AbiK3LGS (ORCPT + 84 others); Wed, 30 Nov 2022 06:06:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbiK3LGP (ORCPT ); Wed, 30 Nov 2022 06:06:15 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1541B2C120 for ; Wed, 30 Nov 2022 03:06:14 -0800 (PST) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id EC84F6602B30; Wed, 30 Nov 2022 11:06:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1669806372; bh=Vjz1D7fPn+LzVWFAgAbnGfbzxs0NBWSFhZrWPMUaMg4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hzb39mNuGctzT/7k70YPp1QxYuB+wbssfrnCGJrdEACeyOXdM7cr0I6i+M4tpCkhu 3wpsWoiq2PBwE4XqBX6eM9kkrvZwY/FWTogxWcShwDX7TPwPw9LCkHbahD9V60p+4H nUKw7F8JLfz8jSdqtxVOgfYHjVxOv090WgVtrl1cqYEDx4aGFYUCiKeNyIzbirR6o9 KKH/ovphqjoPyng3IQRPm+SwMW8qLqDfDsFIWlMMf62LSf1YCK4U/IQulKE2u8AQsU 7m3KVhrNO4/7kdmmbLMoBkd+LlHVmrhdAnyU8+gcqBhiHUqWkHK5cB1/2149/tTn00 1cgJwO13MMoSg== Message-ID: <90661309-5947-38f2-e4c7-67066658f448@collabora.com> Date: Wed, 30 Nov 2022 12:06:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] ASoC: SOF: mediatek: add shutdown callback Content-Language: en-US To: Ricardo Ribalda , Takashi Iwai , Pierre-Louis Bossart , Jaroslav Kysela , Peter Ujfalusi , Matthias Brugger , Liam Girdwood , Kai Vehmanen , Mark Brown , Ranjani Sridharan , Daniel Baluta , Bard Liao Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, sound-open-firmware@alsa-project.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org References: <20221127-mtk-snd-v1-0-b7886faa612b@chromium.org> From: AngeloGioacchino Del Regno In-Reply-To: <20221127-mtk-snd-v1-0-b7886faa612b@chromium.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 27/11/22 21:04, Ricardo Ribalda ha scritto: > If we do not shutdown the peripheral properly at shutdown, the whole system > crashes after kexec() on the first io access. > > Let's implement the appropriate callback. > > Signed-off-by: Ricardo Ribalda Reviewed-by: AngeloGioacchino Del Regno