Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1340144rdb; Mon, 19 Feb 2024 11:59:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXgPEDUfUfwsxMAEtAt5rp+wjgrpDvWpC0ngxEeyR+IW0oxTRMI0f9QyubAqkVuk9E+Z1E2cYqUKmMyDtcJ7fsnfQ/FxS7qs7z2TKhE1A== X-Google-Smtp-Source: AGHT+IHtpUgArIcisF1y25pECheRVb41dMXpNL3epDH5hg681BqSnYoIDLb22Vjyx3885CtY/Rw2 X-Received: by 2002:a05:6214:d0a:b0:68f:3b1a:dd5d with SMTP id 10-20020a0562140d0a00b0068f3b1add5dmr16526387qvh.12.1708372779639; Mon, 19 Feb 2024 11:59:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708372779; cv=pass; d=google.com; s=arc-20160816; b=I/rnlLoCcADM92BpSL5RgQGMf+wzaeSbh2E9R4E5Q6719o7Zirh9EOqfWS7VymVCdz 9J6ndEC7CAv+eXxNDkYQNIh2oysSer49g1QVo4c47kEoKpLiONemdAQ1BF1anidUReCC k3HrKrzGsvaJrOKDfoQk+4TZpOVsNibO57SwOsQ/6uQluKzOGv2Q0rvcod/N9rBIEBRx WNbF/m4O01pRsl5d26JHPxuDo8IRrVbQhQMOwpJXXsgwPqjn0M95yyt0c2cO3O/TIoLp 653vxwpyQVedLXefq/JmKfMVyf6nCKfdn/fnENS+++7wkIIVz/EZK4a/9g3cOVHvYNuh YRFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=xsY5cw0mp5wF5giXNSAcW4G72iiJRcvPxrMeZwNRzUQ=; fh=LOynIoGsIcCMdPC1QzzjJynRZ/faW1WIR3/UfREgjqw=; b=oYi6l9bE5S+ZLFCxXRwcCcG5ZQcpA7YM+XF5NHEDLKdNK75Ep1eFL3pXEd/PN9B4oP QPaT1yQE4V4imx97z+9newz0jMEG+VI9s7kzjv2e7VsaS8ELfAjWCu4cN9Hho3SbLsiP 0wOUNgxOLgOatSMQkB6mV9M6JPPF9FbzljXUke5j0h+cHrxnLBbTBh+bI8SvF8oPAbMB WJcxfH3MCoNItf+bahnYKJBce5QvprOgcMpbHzMQQlGU76P7IQbjZNfCsdi7JC8hrnm3 I40oMdQXLCq7Im+6Pn42zku+AUfuo91i9duHVBWosm87h8W2d0psdJ3YyA32C8Vi6RDI +0tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=na7X5bRo; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-71931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71931-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k12-20020ad45bec000000b0068c73923a06si6872768qvc.559.2024.02.19.11.59.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 11:59:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=na7X5bRo; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-71931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71931-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 552841C22816 for ; Mon, 19 Feb 2024 19:59:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E69D751C4F; Mon, 19 Feb 2024 19:58:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="na7X5bRo" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 60FC351036 for ; Mon, 19 Feb 2024 19:58:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708372698; cv=none; b=SOf/ezHV2/HmUJEZHy8JFKfGVyDMQ0hI/YVrbBsgHZet4PGMazxKDr3+RYy269jDreucFFA7qnbYbCc24SOtLyKlKCC7LTYzD4VOANzKI4I1foC30TogtykFQwRXI9JTDHtBlBgXaxiTd4ZnGW+seC84qIxg67ULe0qXbhO8P30= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708372698; c=relaxed/simple; bh=3AjS5mgJP6xfMQ57w4YOPhZnkOghp2UZKyNImyNi5UA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=hw2Fl4vRX9GHAUCRr0o+6OnZXtA1KfjvUJAxffLyx/uoa8lvhM3iw9HINMI+sQ1lddkyeRnABlftIhptff2ryRWCi0V2tseksFZkV4APvB0ecIYaYxyT6zS2Mv6fZ0i5uAd21u0i/3QHsWXFNSPqI7PB1XRPEaMtg3uXMkdVzMc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=na7X5bRo; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708372697; x=1739908697; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3AjS5mgJP6xfMQ57w4YOPhZnkOghp2UZKyNImyNi5UA=; b=na7X5bRogJCKR7Z3ekZWGjCZ9YbJUMb/CzY8hfZKL+ElcYFNauLKXOIl HHvlUGnovalGpVWJrUXJrHfU0MnM/5zToX9AvawRlNbaNLg0gZ22nr+kx I+P/JWUPwmsK0W+YrSclZ9SVBGkyXpTmRvo+KoNzi8wxzXVNspvpfXoRG PIYl8VwNiAbOvZJkkH1gZbUsedRLXLimq6QNwmFNk3Npx5eZ5Yj/gbmGm AIoplgiJff9IWWxao3+mZAIIHRttF3huuKLX+C/vJ0NvxG7AFaXHJ0Yjm 6jOtM1KN2NDxTrOvhZpq21ye75/gqaZFQWhtAsJINQXyx9J1UTyPX7eSH A==; X-IronPort-AV: E=McAfee;i="6600,9927,10989"; a="19893438" X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="19893438" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 11:58:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="9239471" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 11:58:13 -0800 Received: from svinhufvud.ger.corp.intel.com (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 1690F11F819; Mon, 19 Feb 2024 21:58:08 +0200 (EET) From: Sakari Ailus To: linux-kernel@vger.kernel.org Cc: Hans de Goede , Tomas Winkler , Wentong Wu , Arnd Bergmann , Greg Kroah-Hartman Subject: [PATCH v2 0/3] MEI VSC fixes and cleanups Date: Mon, 19 Feb 2024 21:58:04 +0200 Message-Id: <20240219195807.517742-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi folks, These patches address sleeping in atomic context. It wasn't obvious at first this was taking place since the callback sleeps while the caller (a different driver) called it in a threaded IRQ handler. since v1: - Rework patch 1. Moving wake_up() to the threaded handler is enough as sleeping is allowed in the threaded handler. Sakari Ailus (3): mei: vsc: Call wake_up() in the threaded IRQ handler mei: vsc: Don't use sleeping condition in wait_event_timeout() mei: vsc: Assign pinfo fields in variable declaration drivers/misc/mei/vsc-tp.c | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) -- 2.39.2