Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp640375lqt; Thu, 6 Jun 2024 13:52:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5oetTqi6HaISjJlrX+Zizn9q0di78uVP/LJ0Gj/+9nhEyEQ4tMYLSblDNM/6uyYCpQVh+o84Hp8zZi/DutBWBnHyixzxjV+hqp0tn6w== X-Google-Smtp-Source: AGHT+IG4OfN5pCgXpY4y7G9h4xVabKMARcTWVKDuzVuo4LzDWL9NopPyfTX43ycqma3dbrhcizt3 X-Received: by 2002:a05:6a20:7354:b0:1b2:b137:f864 with SMTP id adf61e73a8af0-1b2e6c469b2mr913918637.7.1717707141948; Thu, 06 Jun 2024 13:52:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717707141; cv=pass; d=google.com; s=arc-20160816; b=ZC7WU7Shpl5LDuYhplgpVK1LLvwjb+ct+U4SMnBSt9/XlYvDqryVxx5xlFKmOybHRg M7sAkrbhhOVPgnGzL0h6CD9jG9/BkyDyBRmyLgRv3ui2V69ylB4dCaq8jT10I0ZkF0R9 6OEkTxobpJeG3n3FgXun5/f0E/dYMvp7MjlQ8/KV7q6Cgm64HzgZcxf/XgIzbJWQ/gMD gYQbhCSBRvc7KogssjMrs2D30JMFR4qQz0KtHgqhAGgMk0iOVJ6S54JxA6DiePdzAtC0 3F6F8iDIgrRFHOI7oNLH7mticBA4Vkt7inZYwe4qxwrzll+knOfaUDv2JbN3STedygd5 3JXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lV/uzXDakza+FqFOVeLFsk8skhpBL93YYgmKfRNL4sc=; fh=jvdm2KhYhZhImzeT/AiaH1hIxRf3lozZ+Bj7dp4HJ9M=; b=VSHGZHom534IM+Bx4NS63sHue0bJosq0DD4F92xjRFnzp8x4n7ZFEZqOApLPa7/uhr yvM7HwyJETdyGFzcRDLRFniHgTosozvYMz5tMVEI0wP50kbOiIMQUw0ubjFcSbBetCWh /TjTZrZ0EWJRYd3a+usBX5BfxaLugmLUrFPC8XxLy4dsn6zzonq28WVSbdvZVLpX9/A4 Z71Ifhi4loAVprWlStfkelyQifZWgnI+s85h7349k7wg4/5iBkmZmSJr5JZziAKAFA5a bNVE/deXS6uFOtZ8DZqXBJ6yBhg6vNDTWYuuz9KJ0gBx27U6RVTuDsiGNKSshIu2Pznb npJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g9SwC3rq; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-205006-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205006-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de21971e35si1710134a12.199.2024.06.06.13.52.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 13:52:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205006-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g9SwC3rq; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-205006-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205006-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7DD9228688F for ; Thu, 6 Jun 2024 20:52:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4023312BE9F; Thu, 6 Jun 2024 20:52:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="g9SwC3rq" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1EBCC6F06E for ; Thu, 6 Jun 2024 20:52:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717707136; cv=none; b=fysg9P0s7rCoRplfhSnbO7BKniC47/UdpqP5Q1UduH5jAmsErAhREFvvDI23x1dNM//UTrG6pNkRGUKXCe5kXWF3n/vboA88U61YisihXsBUlQ372ZyZUF4QmnZSRnf/ZzthXfukHRpChHi2VcjUZzlW5hmRi3pjb6GjbP6wBec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717707136; c=relaxed/simple; bh=5kEsNwCt2ql6ZR2SAkgiWZeTmW+XVXqVDWe0gHRsY3I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Fbh0DkOTgXiGjFTfeJrqsDbAg4x1fOSJLUa5ruIwSfbIJb3FV+iKuuIMxDXPX+4j4l368HVIdeVFsTV2GeMXPSRv46aj+M82DM9crXciOX6llJIRQxBhVRGFsaOGa0OAHLqQ0qDoPn/E+WSuiY6+jRh5ensgNPym+/mZR3Z5bFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=g9SwC3rq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75291C2BD10; Thu, 6 Jun 2024 20:52:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717707135; bh=5kEsNwCt2ql6ZR2SAkgiWZeTmW+XVXqVDWe0gHRsY3I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g9SwC3rqwI+N3q7j1YJ/uQvAdqt6OKeUczyqk1ftAhxocDTqXZWT8hxGLVejbWeuS JXlhdi/f3bWP4+jDDuWsuPmd6ztePICUtqqUjNaJiVB41La2SvkJup0c/KuWFo+DR6 FZJdI7IxGf8iA9ESj3cmd53q3jeIV+hRu6H/VUoQ= Date: Thu, 6 Jun 2024 22:52:14 +0200 From: Greg KH To: Soumya Khasnis Cc: rafael@kernel.org, linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, festevam@denx.de, lee@kernel.org, benjamin.bara@skidata.com, dmitry.osipenko@collabora.com, ldmldm05@gmail.com, srinavasa.nagaraju@sony.com, Madhusudan.Bobbili@sony.com, shingo.takeuchi@sony.com, keita.aihara@sony.com, masaya.takahashi@sony.com Subject: Re: [PATCH v3] driver core: Add timeout for device shutdown Message-ID: <2024060637-imposing-ahoy-b8bb@gregkh> References: <20240606085003.GA118950@sony.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: <20240606085003.GA118950@sony.com> On Thu, Jun 06, 2024 at 08:50:03AM +0000, Soumya Khasnis wrote: > The device shutdown callbacks invoked during shutdown/reboot > are prone to errors depending on the device state or mishandling > by one or more driver. In order to prevent a device hang in such > scenarios, we bail out after a timeout while dumping a meaningful > call trace of the shutdown callback to kernel logs, which blocks > the shutdown or reboot process. > > Signed-off-by: Soumya Khasnis > Signed-off-by: Srinavasa Nagaraju > --- > Changes in v3: > -fix review comments What ones? In what way? This really doesn't help, sorry. Would you like to see this type of response if you were to review other people's code? > -updated commit message In what way? confused, greg k-h