From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DE82BCD80C0 for ; Tue, 10 Oct 2023 12:35:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mTKtwIJGUBerxPsMoKgTjPjKvlgl/bR2FG5vW72VJqY=; b=RsVe6/YmSl5tyd TxenUVGzTPua8Gngw8UdpkIMXvMMkMC+35GDJQToKcpwCjH3nk2tVzjCJUdIFcffzxSNYoc4rooqV gijV8ZI9xxi/3oIoE2gXvbZm43QbjbROZNnwVEOHuWXDjLO1icARB2PPe6NKsBuU8v18/d1xE2YMQ gdIlMk1pxjlYQ2lqUlzCU2xkrLFfoIrH3asFEPUaLTxBlxR+9RL4i/aV6d6/x8ykHOIjy1Wq2fLrI RJBespsD6wgL4waEpsc0CRFUagylndDTrz6jLBIisDaGU3Aat6h4mwQhEv2qjjhvJpF2sA97rN1eg j1T2Ekq1vzFubZThEy3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqBwg-00DM0J-0g; Tue, 10 Oct 2023 12:34:42 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qqBwe-00DLz1-0b for linux-arm-kernel@lists.infradead.org; Tue, 10 Oct 2023 12:34:41 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-53da72739c3so470959a12.3 for ; Tue, 10 Oct 2023 05:34:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1696941278; x=1697546078; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ctxSL5NHuvqBM6PtJ7e7K+XdAt+ChzjxPiXwTE9IU1w=; b=zdy9GKGGWMNrAi1thesuj+vXqwJW5+s+llc2LwoaXpBuTTJX3LwUsYLswQ6LyE8MFs V+UAcSGeKwr3KaiMqISv6fovbxVu+lx8gsxWvHXM5kVsZ82HeYLQl2JFGbMgGPJLPtua sIVuk2sITGiMYQ3UjXhk51hM3z76mSyaTMBgrmHKi8ml6+2H5YNUNlw7d/vMxg/vyjrf HX7I7n5XxII5dWItJ+xVvKixvm4bYUApUGkm6u/sKeqFTObcBCDHLR5DI/cYpEgGXiUJ Rb1+HzVTSLESy8Dnm/K6GbQzvXzdHNcDTHRTyeYnUZ90010511UY3dVekFcWhmL1Umek GFEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696941278; x=1697546078; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ctxSL5NHuvqBM6PtJ7e7K+XdAt+ChzjxPiXwTE9IU1w=; b=cNev/cwYoIAb4NZCqMMjrUsWpKrXRaQSNfTCJM8yE6xTHTZZAYtDoHwJ5JYSd90HLE PLnK55zbL92Nkc2WwUHKF+vf8en3y6vMKDAlY0ywavdniP0XxRtP/HHdUo+OKLOrCN1g 1YyDUwuhkgT2JamPliRqFDd1unb1y7QnipxGuwLWtfH0hzspxD9U3mwknUxvLlFs9Fta DaFVbDlNLTQDRxSmsDQyoLGPAtFP6Jtpiz9GsOUOpvDqgFIAPQEOJ661TbKSUO5JqJ0V 57kPp+sQRsEueP5BuvnnMKV1KpjClQEdhv59qNAA2xkKRNFJgFluof0YAaJodpmIHwV1 wa6g== X-Gm-Message-State: AOJu0YxM3F4iI2bvYdZiLCSkPwE0EOABGew3nPvolm/168PmroCjauxg fB2y+StQ7WNCjrhR4zUrLMWJ7g== X-Google-Smtp-Source: AGHT+IFNzIdVmK0dxW9clCRZ8qa+lFvSfLd3+EmkUWyp763Qj8lwGzsRCnf2oKn9izNfzMeApEkpFg== X-Received: by 2002:a17:906:3094:b0:9b7:2a13:160c with SMTP id 20-20020a170906309400b009b72a13160cmr16436421ejv.69.1696941277834; Tue, 10 Oct 2023 05:34:37 -0700 (PDT) Received: from [192.168.1.172] ([93.5.22.158]) by smtp.gmail.com with ESMTPSA id e10-20020a1709062c0a00b009b64987e1absm8294690ejh.139.2023.10.10.05.34.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Oct 2023 05:34:37 -0700 (PDT) Message-ID: Date: Tue, 10 Oct 2023 14:34:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] iio: adc: mt6577_auxadc: Fix kernel panic on suspend Content-Language: en-US To: AngeloGioacchino Del Regno , jic23@kernel.org Cc: lars@metafoo.de, matthias.bgg@gmail.com, ruanjinjie@huawei.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, kernel@collabora.com References: <20231010121940.159696-1-angelogioacchino.delregno@collabora.com> From: Alexandre Mergnat In-Reply-To: <20231010121940.159696-1-angelogioacchino.delregno@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231010_053440_222958_55D00145 X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Reviewed-by: Alexandre Mergnat On 10/10/2023 14:19, AngeloGioacchino Del Regno wrote: > Commit a2d518fbe376 ("iio: adc: mt6577_auxadc: Simplify with device > managed function") simplified the driver with devm hooks, but wrongly > states that the platform_set_drvdata(), platform_get_drvdata() are > unused after the simplification: the driver data is infact used in > .suspend() and .resume() PM callbacks, currently producing a kernel > panic. Reintroduce the call to platform_set_drvdata() in the probe function -- Regards, Alexandre _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel