Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp474332lqp; Wed, 12 Jun 2024 07:15:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUf2uu6LsRYYaDRPMIA3XJqgNrGZ8qy7Yq1J/Yv5zfyGRRUSz+kdEi5hj8q0dz4kvHddEnytT/HCP6y1EY5AOchp6PAPXq1CZqodLvV7Q== X-Google-Smtp-Source: AGHT+IGm5sSf64cHJnHcAiedPOA1xtBTKWnCCn4DGNXolRv2oVYkN3diMNk6TDkqx/GtRtuwkHMq X-Received: by 2002:a05:6820:1c91:b0:5ba:e5c3:4fa6 with SMTP id 006d021491bc7-5bb3ba7a3a2mr2403633eaf.6.1718201740828; Wed, 12 Jun 2024 07:15:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718201740; cv=pass; d=google.com; s=arc-20160816; b=tlWGtOfHi75rZ5ANcoAwwMt1EqbRBcxLHJeg0M9h9yOrri/R/xAKYVlrdqb4R2Nnnz 4N+JXo2/dbME/ZDNMPetkDAZcp5yQJ2M2thUit/2u9bhNWptPND9hh/v5egXZJUj11vc pdx/VOKeZl0PBBb8jGVErIbk0OU+gFjrO1v25FrUJi/e3BeLxsVp+2gs2ROF6VAxYGMU kSSLN1VJgpb8Yk0SbRfJCBSPYMfQ9wlCvXVjOIHYo4bAyqBf4i4ALI9DyC6Ifam7ne+2 b5WvzKP2V7MmBkCK37S4Qtr9XrAWhIGCtmbv531+s3Xy29S3A9YQuxBWVXiEB9AhTQAW IvYw== 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:sender:dkim-signature; bh=1giwCZy2g7nYLI/Oh2DWHIiIptYTKQAyqHfKbqylAtc=; fh=RhIicO56/C8f99V/kq4qBXImvBgYZsMfbHTWuj9I0kw=; b=OO1/t0iyrYudNiBRusf9hEVkOY6A2DPemG95IAwubXQDifySSYs6m/u0Q17DJH4c0V l7E2qddHB0mStNTRRc6RfYW1SC1Qyx1We/wXGZ3EHihnJLLAhCb3HpnLTRNCzCuFy3Mw JbxRdYB0R34miTB1z+wd5BgbO4e1R7xolYHoUkRyPyw3lJZaukO7c/w2LRaZ60PkWA/8 nm9/iXcOg0xkXXzwJU5bbcre6oDj70Tv0KwO/ALn+avrQnnCJI1p6ADVUpQD33Y3xNQk IXUx4R6GnHroIAcL6MTReRPWuXumkyq8XYDWaWbmgLc3Wwy2d9MRW0Oy7NO1Mx++oG9o 9kAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XS8Qeqge; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-211647-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211647-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 006d021491bc7-5badf59cb5bsi3136597eaf.37.2024.06.12.07.15.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:15:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211647-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XS8Qeqge; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-211647-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211647-linux.lists.archive=gmail.com@vger.kernel.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 6C888282BF2 for ; Wed, 12 Jun 2024 14:15:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B85D617DE35; Wed, 12 Jun 2024 14:15:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XS8Qeqge" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 A2C62537F8; Wed, 12 Jun 2024 14:15:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718201733; cv=none; b=GjHvMqQf5M/mWOxqPSujYcfb8CjmYtBmR9uocauTU6PPHLHiaeEZ8P3IpsBONariV7Ze4F0WI9PcaEWtmWWgsUuvoajPI1SgIT7ppRURA4xEzQ3o9LnFVvCSlWNjQeENV6HnH0PneIyWNQH5ZIQet4K6S9hIYdkIdSLWv5bpPZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718201733; c=relaxed/simple; bh=YJVxt8DF7WEoLhSdgRziKoZjBqvgXUZ5KBOhQz+Eih0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UgNMBJ3/3ZlZaS8lWcG7sdaxo52t7Klz/B9P6Zt7FHY09nbR1RzHGJE2ta9F7zkNzJMj4QO8Rpv+LkRlLoHImmfI96qdhm6gfkB1GIH4UJ4hLAn74haMlKvtOqxU3B517WdJ0fafDAGLcXiqn04k6w5F+ck90eCnfo1jljmzGJQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=XS8Qeqge; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1f4c7b022f8so63459145ad.1; Wed, 12 Jun 2024 07:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718201730; x=1718806530; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=1giwCZy2g7nYLI/Oh2DWHIiIptYTKQAyqHfKbqylAtc=; b=XS8Qeqgeg4M3TAnXf5gaOMFZjTVSCFEsNQnbzf0WJpnx2+g3LQJQVcEoZqxKFIjHb1 4w09XX1q4sEVILUIW3aE5RWpJyKEM4qwDKDEKFlz54sxoUdOyIlIZBO5GFk6+xHSRPIE qMM8yjPYzeVg7WRoJSCdD60L1+Hciawk5N4o1+wwpY7kXhro8XSg5incnne5cnAbp8up wXsAK9f5pJkqG9ZXTNjsjpJDzcc5Jw2peBlUvZbVvFVUsgTHWclNmdUzKNL0LBYdJj0e +9aGUEgsPqUGtABwLK3ae7Dgd+tlDoj/yR0YxCyAgXpTF5ZZrrvyohq2O6Yh6bgaeMMP NNog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718201730; x=1718806530; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1giwCZy2g7nYLI/Oh2DWHIiIptYTKQAyqHfKbqylAtc=; b=lZ5dHyiZdtL8THL2E7duU1UgktXcWVACaU/y3K8qAhGWe3tmO72ip8oViMgSalWQjv VIAbIp1bGQbzFIDfzJDKV11HguoESTz4DuSJdmxeohO/LPCyH8yGu2AeN3JGKUEemGTJ m53MeSPjr+6sfEhon/IeR8XWStAVt7Et8/hswRDrPVuOd1Bp4uFI507s4poLi+eeH8c2 BvZd4yzQKAY4uyuG9hmO2qei4eRe9imqg66LctGKhj3jFHMuuM+zxOiG6cLV31EV4KbE UPw4LyHd2BNBTkSUouLz/y3DzepLLxzdQhLns188jNnzKajx7YAOIe7LDPhXuGVbJd5l 3TNQ== X-Forwarded-Encrypted: i=1; AJvYcCWdRwAwSjkjPb2vnMYRGnPll1hG4FRrjo1GI5RUR8ih2bLNRxzZDxQwnkYMeAqbioP8mbxwo4RTPgwbaVssYe8ed6V7z2VZRw7D18R++A2IERIQa6p8ZtGO44nucdW/4RoqDHh71Fv3/BkCk+GjjsIp74WtnO4hWStBe+5clBG++JaJFxQh X-Gm-Message-State: AOJu0YxqxQRHj5Oe140zMxHF6WK0cs+2zo3HPKoJsM7SQ/T0VBPcIReX y9vA7etZ2l9EW9t7cqK83EluQMFhXOAarIgz/tNY+AeqXOoRqUXD X-Received: by 2002:a17:902:cec5:b0:1f6:7f8f:65c6 with SMTP id d9443c01a7336-1f83b5e52b0mr22134935ad.24.1718201729793; Wed, 12 Jun 2024 07:15:29 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f70283b940sm70382555ad.265.2024.06.12.07.15.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:15:29 -0700 (PDT) Sender: Guenter Roeck Date: Wed, 12 Jun 2024 07:15:28 -0700 From: Guenter Roeck To: Amna Waseem Cc: Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com Subject: Re: [PATCH v4 2/2] hwmon: (ina2xx) Add device tree support to pass alert polarity Message-ID: References: <20240611-apol-ina2xx-fix-v4-0-8df1d2282fc5@axis.com> <20240611-apol-ina2xx-fix-v4-2-8df1d2282fc5@axis.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: <20240611-apol-ina2xx-fix-v4-2-8df1d2282fc5@axis.com> On Tue, Jun 11, 2024 at 11:36:26AM +0200, Amna Waseem wrote: > The INA230 has an Alert pin which is asserted when the alert > function selected in the Mask/Enable register exceeds the > value programmed into the Alert Limit register. Assertion is based > on the Alert Polarity Bit (APOL, bit 1 of the Mask/Enable register). > It is default set to value 0 i.e Normal (active-low open collector). > However, hardware can be designed in such a way that expects Alert pin > to become active high if a user-defined threshold in Alert limit > register has been exceeded. This patch adds a way to pass alert polarity > value to the driver via device tree. > > Signed-off-by: Amna Waseem Applied. Guenter