Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15004766rwb; Mon, 28 Nov 2022 07:06:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qiVJ7fB9H+Jc+lx8IrO453J6547bJF528VFBf+tN3UO9cFnjvZZOH6H3xHhAV5qgseLzA X-Received: by 2002:a02:a003:0:b0:34a:9a94:f106 with SMTP id a3-20020a02a003000000b0034a9a94f106mr15998161jah.141.1669647991382; Mon, 28 Nov 2022 07:06:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669647991; cv=none; d=google.com; s=arc-20160816; b=UWvk6RbrOd/16Mct1tin0Twh+DrYYcTvmzpxa1QBiosCrl2ZsPaxM40VUhOooirPOr w7gjf6xGO8BAd5cCkKYJW07THto5yG5zAPnaFZbepCrlxel+XDZ7POze+MF/qJWFXwEj YEYJ9azlTkW9ALE3awoiAcq/HWZFmKs1eZ+Wsp178iKWolF4/T4e7u9F/A2cE2QYXNLN PXjw/JmAnwGxXzsAztsl7q/LndleeEfwIoZZw8ulhgaaMLEF5spP7aFXaZeQFx1Jjg6Z /Q42GEbaczBpASEKfEv2eHMQrPiSlRmby2x+A7NnWp9cyswrLcQYSSsxGOcYTmc8P/kR n0sg== 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=n20aAkd3QzGfUc+ikNsZHPJK+Vv6Rr4dIzRVWWi5nfU=; b=l4NBb1gEs2YEDvpsqD1Ko5AB1OcsHN3sDAcWRyk75qHOayhiLfZZX380JLjShE7jjg VvZQy5Hj7nfE7CQ+8dAdF4q8XnbcJKgeQS0daq7JgEp2PudL3QTUhffJ/nlabHbAZ+xh j6aABhPQdyH4+pU/fu3utiNhsOlr2NIw7Y4CSpDl8+/UbnuOZ09REhwXtsyMY5L5TidW eDtPAmpREhGuBbXaT57nqOs5QBDmTMlwu7OxFneoD/bsMP2DVqUvc96r6D6rTNIrwvR+ Nkjt98lxY6XviodAmADkJok+wtI/G6NQYLjlU32kmcaD7ENv9lSoXM8UeKbhf0eoyT10 BwjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Uyz1aEMS; 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 s1-20020a17090699c100b007b99436026dsi6949579ejn.968.2022.11.28.07.06.03; Mon, 28 Nov 2022 07:06:31 -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=Uyz1aEMS; 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 S231759AbiK1Ncn (ORCPT + 84 others); Mon, 28 Nov 2022 08:32:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231666AbiK1Ncg (ORCPT ); Mon, 28 Nov 2022 08:32:36 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D625FA7; Mon, 28 Nov 2022 05:32:35 -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 81351660239A; Mon, 28 Nov 2022 13:32:33 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1669642353; bh=XJTvBmQ2k1bHpiozbV7N2H6jFS+y6PUBq1kYOY6o0lM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Uyz1aEMSnOaVfIlvQMJfkoc/TJsEMrB3D2iKl3BTPPvHl7dO0qF102SUQu+cjS8D5 rvpveTlJnmbjAfTDjO+p041sP6FuHGiUOVPhVxd83SpSeAFlGRrLW2RyhS79IGJ9eG d0uvwyOc67fXuJrHDVxJ0jXsIViPW6p02Z99U9vK9VvykmdqKtIcpSM4mzYxsy0ORJ FM1R0N8k2juWY0qUVLfPo8ge37fWffTkU0M79rwFOn2wEcKWYyZ53cEOuJDBGMaySb RIE0i09Xn0Y6PdCUEu4KyoUtqcUzt4YWRE02fvHsd6gEsrO+rmA6eqVVpsQN6PZHKy fwk6dnwJOdo7g== Message-ID: <14cba472-87b1-001e-30fa-674e4102130d@collabora.com> Date: Mon, 28 Nov 2022 14:32:31 +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] spi: mediatek: Enable irq when pdata is ready Content-Language: en-US To: Ricardo Ribalda , Mark Brown , Matthias Brugger Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221128-spi-mt65xx-v1-0-509266830665@chromium.org> From: AngeloGioacchino Del Regno In-Reply-To: <20221128-spi-mt65xx-v1-0-509266830665@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 28/11/22 12:00, Ricardo Ribalda ha scritto: > If the device does not come straight from reset, we might receive an IRQ > before we are ready to handle it. > > Fixes: > > [ 0.832328] Unable to handle kernel read from unreadable memory at virtual address 0000000000000010 > [ 1.040343] Call trace: > [ 1.040347] mtk_spi_can_dma+0xc/0x40 > ... > [ 1.262265] start_kernel+0x338/0x42c > > Signed-off-by: Ricardo Ribalda Reviewed-by: AngeloGioacchino Del Regno