From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 264B4439352 for ; Tue, 21 Jul 2026 09:26:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784625974; cv=none; b=EdpwXIYj+73Dj/f0N+lhZbvY3b7fCNB/bBP3f5RqiRalaY1V3KizWIQm3g9f2DEU/3WERn+E61C6d2cByvQzOawNY+IKdD2l9vKMj/LPzNpTGwZLjHMQ5TI5h69bswGr5Pwgxsm+1VzbqduxUVO58UlSuCASY4qXHaznYCBBAtg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784625974; c=relaxed/simple; bh=z1WTWDI5f+jBI0QjxNyN35KTkHvWiSM9N6fRXjgPnm8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uSnR9ihXwjwEdqEULzV0Ok9EiGv1xPFVF5CFBM+hUDj8JSfosy3hJhHJfDhRO2Yrq+12Gihb+3qv/Zq6AyRcbHSDNfdVvDW6CwL+vlHiZhs46qDojm23WlTT3dLpnkIh6UiTbUehvSjEIEKj1JKbbN7LkH7qYuWme/YP/dy8XDA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gr1nqt31; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gr1nqt31" Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-698bf053053so12765647a12.3 for ; Tue, 21 Jul 2026 02:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784625971; x=1785230771; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=sbuX/Z82/a1Q2XE+uXfBweexF5O+JFRWQ4hhLAZ4P+Q=; b=gr1nqt319pGKziQaJo3LhJqpe8ImF7rZ5DTcbvkTdU/vB1U6MnsVbSSzyEUyhbU98o ZPo3ug0+z3X0U8gb/iw065sUZwjFpqQZswPttlCaf+SJ1MW07xluSEUuqJBatd7hRCAA 4C+PPU2737E/BSFjtUjH8bqL4Cb8Vpgyd46jY4Tej8GBs5cv5/aaIJlrZSJCVFDAxALi PymNULwAypzi9l6ukqus9PNs5iVq5UeBZfMnaGuGtzh429KoOPmjnszfLELPr8uU+pcz V6joRPg2XyDrw0zTppP56scRtYTvP1rK8h5sWaEH0UgcR7U8abm2ZhJh1beTsH6lsAYG jkXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784625971; x=1785230771; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=sbuX/Z82/a1Q2XE+uXfBweexF5O+JFRWQ4hhLAZ4P+Q=; b=RA0sSKm9X6bDzjM+uWB5mle5+5dGSL/qBgzLmIDk9URfIP0WkxthLERLa+jGKtrEGx W5bgNyMCyvDHgS1eF7rkypHHaeHxMnkPaxkeFn2qxV0rqJpfmAM/W/qjPYcjihoUtezl ub9ygLlFEn6wxzILpejcb5pF6xC4TzhzrCAHw/RR9KcycqjOvfKVLo0plv/m4iSJDp+8 NaymCuOtgnLCjWKeXVzWGx83DV4hhxIGfM9jirqbln0ctaJqqHkSu3knM1fkywEEaCL/ 6IlCCOXhlwqjzELHOmJ9KqVClycMxiO9RTciPdq5XztOyV/RcNsX5i7tMR7+7WG7gfzJ VoOg== X-Forwarded-Encrypted: i=1; AHgh+RpZ6oMfz//hzhBjK6LC+n+BaH0F0mMwqA2AnaqYZ+eGQvIl8iiH2nOavGE8aDPxuPxxvPB8owFYoi/eSTQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzSXX/oKqsfDIzOzpSo2aQr30zpcBudDh4KQ4r1165obb6K54Dn HX7A0Tzkj2W47W2VAe3mSpRE4vRQCEUe30lZUaBK9oBlyA5A3Ze8bvV1 X-Gm-Gg: AR+sD10AO/gquZUx+Rzi2hc3aHAA7Ok+gPjw3dAmqO3ubc571ysjEEWawDPmjLxDisv c44DcnB0xKt2S0LY4VsnO86Vjp+sWmR3WiYh5O390oNLoZevJun6gF2HgNxsF/1cGfgmJa5e6P5 hCm3U/x7pTDiNeN2DvmTSLrOa0DAaypybWhSGCFI9XSQDz+klHq+AddB7ZzHXehHDfmMD7463ko 6tpXz4Mv4iF1ISGhIQ0DCrQZSjbJvNpNeJLgjuu/pBt3IsuH3T2lUj/RtzG3bhVQnfseBJFxdaw MqOloIaa+7gLRO8Onsq0J8PABwWgecoNksnPVziw82s69/U37uE7UPl89gCC7rulO+/Wi3sPx2C 7GA7GnUhJU+i4S+ezMOD3QJox+zE8gIVrTF8Hn5jglsV2RdqGd+HtZIQbA7uRhvr76jXh1UbwRA == X-Received: by 2002:a05:6402:a505:10b0:69e:9213:11b with SMTP id 4fb4d7f45d1cf-69e921305c2mr2757943a12.13.1784625971092; Tue, 21 Jul 2026 02:26:11 -0700 (PDT) Received: from localhost ([2c0f:3d00:6be:8900:ce5e:9212:ea4b:f30]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-69e7000c3e2sm5662961a12.30.2026.07.21.02.26.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 02:26:10 -0700 (PDT) Date: Tue, 21 Jul 2026 12:26:06 +0300 From: Dan Carpenter To: Aayush7352 Cc: linux-staging@lists.linux.dev, Marc Dietrich , Greg Kroah-Hartman , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] staging: nvec: fix power-off path to not depend on workqueue Message-ID: References: <20260721084727.79305-1-aayushdixit924@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260721084727.79305-1-aayushdixit924@gmail.com> On Tue, Jul 21, 2026 at 02:17:27PM +0530, Aayush7352 wrote: You need to use your real name. > nvec_power_off() uses nvec_write_async() which queues work via schedule_work(). > During system shutdown or reboot, workqueues may be frozen, so the > AP_PWR_DOWN message never reaches the embedded controller and the > system hangs instead of powering off. > > Fix by calling nvec_request_master() directly after queuing the power-off > messages, processing the TX queue synchronously in the power-off context. > Also add a NULL guard for nvec_power_handle. > > This addresses the TODO item "add atomic ops in order to fix shutoff/reboot > problems" in drivers/staging/nvec/TODO. Missing signed off by line. > --- ^^^ This is a common thing where people ask the AI to fix the todo... You need to say under the --- cut off line that the patch has not been tested. The TODO is kind of vague. "add atomic ops in order to fix shutoff/reboot"... I suppose this could be the fix for it?? Anyway, Marc wrote that todo so we'll see if that's what he meant. regards, dan carpenter