Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2586488rdb; Mon, 5 Feb 2024 10:59:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3NfbBJ2Vxtdiy9GdxAspTaDNoYxJG3DaMVaIVjVJ2T3SmdLR8KBgFwMgDy74aOkdNYApB X-Received: by 2002:a17:902:bb17:b0:1d8:e1c0:1bb8 with SMTP id im23-20020a170902bb1700b001d8e1c01bb8mr601175plb.27.1707159579167; Mon, 05 Feb 2024 10:59:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707159579; cv=pass; d=google.com; s=arc-20160816; b=vdUoaPWEn2IDn1kkTTTjzDDJbvWa2mQTQKnBA8hjnZFSTN8K2INlssJwq5ccmQ7v6w c5Qrhqs6KEmlZXaIsa0XT0rO1GF8qRDiwokg0OpVVWKuIrQQbeLtCf618hCqDPHexLVL b5cEims2+JI4kaittjJ2C6xAOWo0C2Mcb2lmrKbPO8jz7litGSp5A6P7SB0jZYnpOwHJ 8snCrMgOTJN/iW6BSow7PKS7crUisxtRDSvtGD5JjZXd6KLEHu+Wkqi5Jgvese88jr8l kgpH372LnMCC9EQiitvHiAqEw6h+SotfhDVVTXt98nQeq3QGEBCfMheXAFsHAhzvXMn1 7v3A== 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=sqA7s1/qxo4iJ0BnU2DC4kCrS3V6Zke8joo/+EGqceg=; fh=CpTshgcPL6SwJh2Om18EpxNlDNsmAguGFUE0O53p8hY=; b=Xi97Lo6v6tFl+sHn7MK/dxJeOZLUJ7Ec4gsvyRzFZdwmkK4eCrAncKNMRcrVn1hA0d rmleTk+gK27mpp0+IIqpkjV6CS8koFitzpwioNqt8oMYqRdmA7oyEt+3/9BjEUG8Tjqm /JlaEI5vpfAYxnsI/LiaRGcPfrGygxUZOUx9j2iNJXLBXSk9OFUqFzgE7iXa40IgQp0H /gpLC59sJwJwCUD1+hoNokPIDScxDKh12W/cB7ccw/Cy2qdwZqhuQrtK67CKgVI5sMU3 mrmy/zvLVecuU+zao5tylRs/3JZ9eKWFqKnOnJ09pcRCYruJpBEoNVEng1d+r3TI2Zn6 AvHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UR9hjqYD; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-53265-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCWTU1rpUrDD+66gVPsaRmKcKkUHQA0tZJZ0vfCqfpN53lWcFSQSfhbWkywR1zNVxiFx6MAhfBxlUPIhGlDatSj6KGnY/zMQ9AnCERdoEw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m20-20020a170902f21400b001d9055b6a4bsi250278plc.418.2024.02.05.10.59.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 10:59:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53265-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=@intel.com header.s=Intel header.b=UR9hjqYD; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-53265-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53265-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CDD2328ACA0 for ; Mon, 5 Feb 2024 18:59:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02802482F0; Mon, 5 Feb 2024 18:59:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UR9hjqYD" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 190F247F76; Mon, 5 Feb 2024 18:59:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707159571; cv=none; b=cxXRq4aHEb9tlLSdvvRfsECg4U/wgw245fgIhZrYHLJs0CLVES6cFius10RwjU9M4c5L4gdlbEIuOsa3o/IsFX6dT1StCNEhi0FNmBxlt7ESCAiDPT1/oQUuWexAZVXF6L6Hc6uL4x8f/rNS/M3Im633svhJUYMDKwU3vCGTrhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707159571; c=relaxed/simple; bh=I6XU5XsYRE2NHAAxGmZrdatZKdxaAuExtRZOBdx8Z+o=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jEU0UBn88KsTebyfQORf2K8eISTihOf3UHG0hadZyYiCQSAoosUfov1HHKFYvNzC+dJw9kNu01H/tFr8F6sKsNR1Cx2sXGXU0HgdzRa+qSfUkKprB95ybfzNo4c7d0wtfD7hpcyugoIkX/Wi5zH95GQ2pln1LRpNfpXm91zT7VA= 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=UR9hjqYD; arc=none smtp.client-ip=192.198.163.9 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=1707159569; x=1738695569; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=I6XU5XsYRE2NHAAxGmZrdatZKdxaAuExtRZOBdx8Z+o=; b=UR9hjqYDCoC3W/c4rb1jvkyghPhisE8toVdPkc8fZSjObfXY7aixIsXu BS/QnA/7fzFk7bakKC48oPn5orHfAiyVNs8efYT3niB397FkftYQbHG4z skt/E4PN9EyZ4Xq8RkXjaH2ypD9Gpa1yqxYt/VDOEOUfR3zq0cP2GJcVL cUpSUdyOBE5/xMBij87EPUB+Y5GWqejcNgZUMD/kip3omEx2zEScfkeuE k3ghB/veULsmPgPeaT15SBzjN+O6OGBNmVDYC5Pslt9m0MT2rRcSpe1a3 Doj3GE9c+JQxjzBRmAdAfd2zjzoa/6evWbh6UtCxXqX4RV9p2elkMKKHw Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10975"; a="11320378" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="11320378" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 10:59:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="31879441" Received: from spandruv-desk.jf.intel.com ([10.54.75.14]) by fmviesa001.fm.intel.com with ESMTP; 05 Feb 2024 10:59:27 -0800 From: Srinivas Pandruvada To: jikos@kernel.org, jic23@kernel.org, lars@metafoo.de, Basavaraj.Natikar@amd.com Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH v5 0/4] Add support of color temperature and chromaticity Date: Mon, 5 Feb 2024 10:59:22 -0800 Message-Id: <20240205185926.3030521-1-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The original series submitted to 6.7 (before revert) is modified to solve regression issues on several platforms. There are two changes introduced before adding support for new features to allow dynamic addition of channels. v5: Change als_scan_mask to per state instead of global v4: Addressed comments from Jonathan and Basavaraj v3: Addressed comments for v2, details in each patch. v2: New change to add channels dynamically Modified color temperature and chromaticity to skip in case of failures Basavaraj Natikar (2): iio: hid-sensor-als: Add light color temperature support iio: hid-sensor-als: Add light chromaticity support Srinivas Pandruvada (2): iio: hid-sensor-als: Assign channels dynamically iio: hid-sensor-als: Remove hardcoding of values for enums drivers/iio/light/hid-sensor-als.c | 122 ++++++++++++++++++++++++----- include/linux/hid-sensor-ids.h | 4 + 2 files changed, 108 insertions(+), 18 deletions(-) -- 2.43.0