Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp102102rdg; Tue, 10 Oct 2023 05:35:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/ZVa73RempGICeyXC5SEt99lL5CyVn4TLr45YUR4/ffEO3C1ucgydX0OpI8AF+Ef0ruV0 X-Received: by 2002:a05:6a00:2e0f:b0:690:1857:3349 with SMTP id fc15-20020a056a002e0f00b0069018573349mr22307472pfb.25.1696941321667; Tue, 10 Oct 2023 05:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696941321; cv=none; d=google.com; s=arc-20160816; b=yQGgTG+D3uKx2xQZd/j8wW96PlO8s1+Y/7XyI3yVDBhvMYIrTN3a0E+G9BcCT2mbym ITqdcEPNuJ8h8WXLUNuqHVeOZ4Z0OaZenPUzA0qWo8X6+MGInrQhwcTfa4dC3oLPLpMd KArZlJKzCjPxHRMzNvrc385qLU4t5IrpDCSK9G4Ib+TauwXfZumThdetIi5mfIGl2nMq K+pcQrkVFGS/1VVQyrct6/1ni9sM4kWO3ejOVl63JylsVDBrGnNEMFjnuVhHvHna7V85 XAEuNPeJPtu+UlRtn5jBgZFVwxtGm9sbfWTGGxsZSJb5RFy3tRKp4xMF0n6y+IIx2fCU wKNQ== 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=ctxSL5NHuvqBM6PtJ7e7K+XdAt+ChzjxPiXwTE9IU1w=; fh=xtY2gDPSnwZd3IHRwTe887UVmBEdKhU6K+ikJCtcOYw=; b=YSVi6jwSVNBYY+osfeRX0GG2z2xT+gnbWi/IIfUbjvgvbXPo/vjtAdGhPlP2B9+bWB h9aEBGcgQ8LVHWokCYJUFj9nDSTIYNR/I88D47VZ/F7o40acMq6Ex89aJpyg6cfrXeJA 0r+yRc+rovo+81B9sXkyhWvvbNs59BFRr1Gj5RyLB6r2QqiAhZTr14wSYOiZjLL1l78P Hyf82wW2wfV2becxuPkRc9VkQI4wdOaZXt9ki6/bmA3dbQKCz19CkOJW8UtZjKDODeMQ nnHZe2d0nljE9pufX0qN+3Fir18zHtmdWhdwVBBYdbKFGAF8MywgeHGxosOyL5ooTGg6 SN8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=kX4xqlh3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id o15-20020a656a4f000000b00578a28df3e2si13765910pgu.816.2023.10.10.05.35.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 05:35:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=kX4xqlh3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9328F801CB6B; Tue, 10 Oct 2023 05:35:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231681AbjJJMfI (ORCPT + 99 others); Tue, 10 Oct 2023 08:35:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232211AbjJJMe5 (ORCPT ); Tue, 10 Oct 2023 08:34:57 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8457ED6B for ; Tue, 10 Oct 2023 05:34:39 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-523100882f2so9141552a12.2 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=vger.kernel.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=kX4xqlh3ySEt0nYkuJTc68vlvqCOA+244hPIC4X1Af2bRY2hOctq37psI0ERUH+b1W w3Pb2jw/Ws2S5cJBG2OWYhCHSO5mnqsJVsuOfvtRGGT/UZOOPGX0tPURef2yn4mI573s L/vc5WopsXgUtVVeV1ScLOqRv2oRd8LWRzM/9CMIQDwFUMGqQcTMtcd3ImaAWFUDFVLn wyuHdFq3eVxGcwZ5d7E2qUZ3ggD6jdh8Afz+buYz83IAv7NNyN8rJ+aONaV8g+7JfvHp Uf1V2vOHLCDp+7lqGiIDtZ3XMno38RWmEKPsK5ioSgbNnvmLVsvtKxaDE6rFSSeq0Hop GzIw== 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=fLxCIBTEe7JxB/xr7yCXcUbo32A1twVyQUvs09V8gBYMTE0g4gTuT7wuRDSqPX3QXc 5y3hTRqsV+h5olCJL14CGLWoFiz91eVyxzs6ioDw4mrx/QjsMyF44xoM30jwgC7a5z2k WmJFSR4YeN9RnxindaAQqiZYuRz/ag02l7x2JLoy+P57oUvdpxNUVwTy1hI+gbx5DwqU 8yYW6UwuFAWWaLowBo7FT5jx2u9AKw0hlxk8f776Pi8ne4yNHDmM9r80C/c1igzAjBG6 PXf8Uh+m0FlkTNfrBfuYRnmxP4MMsnWvBWX+0D1XF+UypVHqc6hsIjYpl1q7O1YotLht G6Pw== X-Gm-Message-State: AOJu0Yy5JEaAVE87DyL6jxRn5cFLPWeXmQnAUaCVGxGzMgdQ3JJ0bHI8 t99IqSgc5W+TW21c0wxZi5IasK1KTxfznMJHwvc= 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> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 05:35:19 -0700 (PDT) X-Spam-Level: ** 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