Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4118703rba; Tue, 2 Apr 2024 08:07:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxyo00kxvdodFVIZ5+NB7Mt4l59ho0IJB9/geyUCLpQHG2aseizKPk5GNr3sgK0yC8P457rIcxRl2stPI9yxJEdLH/t1wC2BL1Obk3dw== X-Google-Smtp-Source: AGHT+IF3mIYNaJWMw49qDIXCLlhJ2XvTjiQvHNBEBVvg1SH90wgsJ0okizupPaMUV2LsNs7ufLFt X-Received: by 2002:a17:906:f895:b0:a4d:fe8f:bb93 with SMTP id lg21-20020a170906f89500b00a4dfe8fbb93mr14413ejb.30.1712070445759; Tue, 02 Apr 2024 08:07:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712070445; cv=pass; d=google.com; s=arc-20160816; b=Hny28AT1HlGMl+bH86ccXCh/janjS0gcYTul788ZCUBNgNoseEMEhzIhR+K0j6VmLX ijxjrQ8I2h8maP2SHwGA6pY4jV76QDwT+w1e1jsgDP9aU2eM7u25rUPV/bsNgjSwDouu kwYO8he+l0wWYmX5EKF1RwYJZvtoezA04mTn5eMPgBzLn7VsvyuHZ544kt0krzYKMbBg 3X5UZ8dgOltnIiw1OkZVr1ZY/s6WMsKIwk8W2a3HQAvDOS0hcgfV/1FpimWvDQOKXDa1 Em4Vq9sj7Xzp1ZgWdUoGmjsdVQtwr9GJcQ7Iga1qMSs/sZXMdIvU7EuzRY3sUUiev0Ey DB+w== 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=CIAX3hBKRTEIXAXMvY3GTWbgujZviMWv+NEFiXObEbw=; fh=AK7V7lfYWbMt6zzVpvXEFidBqafRZjeQPDtYxGV5KIw=; b=kgYQAqQ7MJI6hmvnUIa3AY7FksKLoNB2zMLbAfK6JZmO3ZO2or2zOGuqc9VDrbiUmW HKlTUc2D/AO7usP8WP/FfGSL2XyodeSkdPiCusmicDMSF9BYWA7T43x+9h96D3FA4pfr 95hvinDI/YdsE4H3meC1zGN5yxwWtIuandvUpZl8U9rIBpGjI4xM7xohnvuwOtjVLQd4 fN6WEOuqWPIerUvUtrBDPxl/cfcQ1aDFERmIJBAI+hSx8ZnFI7E+jyRqfaswUKI8MGVa suXQ0hOu1ohkDz6aT210jlvy1q+mRCgYVGji7g4cspmSDKh+iZgjxz7dwgB4nNnQwstP VaZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D6pQV4IO; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-127721-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p4-20020a17090653c400b00a43e01d239esi5708536ejo.687.2024.04.02.08.07.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 08:07:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127721-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D6pQV4IO; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-127721-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127721-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 69B7B1F2770E for ; Tue, 2 Apr 2024 10:21:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F4925D47B; Tue, 2 Apr 2024 10:21:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="D6pQV4IO" 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 365085822A; Tue, 2 Apr 2024 10:21:27 +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=1712053289; cv=none; b=ZpCokvEYf3VHrwpNoUv2U+GdeM0uw4A9FiKXepNrufAiwnv2X3O059pA/EYpMpSYjVTEfkJ7Kjk1QY8M+AEclCnla+IVgho+ifj7obod1p44CIvaAA/k9z5RkAy2gczgOiW1Pl+xM0wCZAMXhGhT9BSvnkUjAwE4FRLtQCuZQKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712053289; c=relaxed/simple; bh=qalQSIBm8kJNLYRo/npeSSeBNJbaSFRhkcTX3KDyPt0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NIJHcgB8vKV2scZ4HeeZkkVJ31qP1DyY25dwDDwfOBI1/D0KTmn3n/hB0Nnf8RXzN0z+OPw3H8zYBR9Uvkj+KlsjqRUvXeiydizcUR1LQE5LvGIOO5RcI6MuMSkBdzhz8kJXZ7N20Ey9NovQNQX0GG8D2h9/Nd6U/Wi4j7Ks9IA= 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=D6pQV4IO; 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=1712053289; x=1743589289; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=qalQSIBm8kJNLYRo/npeSSeBNJbaSFRhkcTX3KDyPt0=; b=D6pQV4IOIpKR3XT1acBzEO5rTp+6MxRdY7BYnYfp4BmNczXsFhdJWxYg SwTy1RxrlsFwlNqHUkDITQ3BrYUrL+OLSxtZ/UDBWFaNYj+onwWqxvBUK qcfZgHi36y/nqh5TnI1hX+iVqMjywRkMnpFCr5+AO7F/bmSQ5BJjqn5VE aCn6IOWprSXtteYfywsTof0ITwK7mAhZalvOnHpAdzz2PpRZPuNBOKcR+ Ihfe98BsrkCCazOmd8okE5XCTLOVN3kzBgx5lQsCHs5ehKV0ER5rTwRD+ FSu+6L6Vqf8CZ2BcviWfejbzxKQfB+g8X3m9PswZZzJg47noxqmsOIArr w==; X-CSE-ConnectionGUID: m4os/K1VRzKwzCRiDhvHsQ== X-CSE-MsgGUID: /gVvrdZdQfOTSVITMZjszQ== X-IronPort-AV: E=McAfee;i="6600,9927,11031"; a="24671008" X-IronPort-AV: E=Sophos;i="6.07,174,1708416000"; d="scan'208";a="24671008" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2024 03:21:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11031"; a="937083286" X-IronPort-AV: E=Sophos;i="6.07,174,1708416000"; d="scan'208";a="937083286" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 02 Apr 2024 03:21:24 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Tue, 02 Apr 2024 13:21:24 +0300 Date: Tue, 2 Apr 2024 13:21:24 +0300 From: Heikki Krogerus To: Javier Carrasco Cc: Greg Kroah-Hartman , Abdel Alkuor , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH RESEND 0/2] usb: typec: tipd: fix event checking in interrupt service routines Message-ID: References: <20240328-tps6598x_fix_event_handling-v1-0-502721ff705b@wolfvision.net> 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: <20240328-tps6598x_fix_event_handling-v1-0-502721ff705b@wolfvision.net> On Thu, Mar 28, 2024 at 05:55:50PM +0100, Javier Carrasco wrote: > The ISRs of the tps25750 and tps6598x do not handle generated events > properly under all circumstances. > > The tps6598x ISR does not read all bits of the INT_EVENTX registers, > leaving events signaled with bits above 64 unattended. Moreover, these > events are not cleared, leaving the interrupt enabled. > > The tps25750 reads all bits of the INT_EVENT1 register, but the event > checking is not right because the same event is checked in two different > regions of the same register by means of an OR operation. > > This series aims to fix both issues by reading all bits of the > INT_EVENTX registers, and limiting the event checking to the region > where the supported events are defined (currently they are limited to > the first 64 bits of the registers, as the are defined as BIT_ULL()). > > If the need for events above the first 64 bits of the INT_EVENTX > registers arises, a different mechanism might be required. But for the > current needs, all definitions can be left as they are. > > Note: resend to add the Cc tag for 'stable' (fixes in the series). So this should be v3 (or v2?). Next time please follow the guide when submitting patches: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#the-canonical-patch-format thanks, -- heikki