Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp895792lqt; Fri, 7 Jun 2024 01:45:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCUVfIM5pus4elPUlqC2sJIHQurd0G0ojEiZ3lQtaVYT7rXcULGbLAGX29W/ugdaaQnI5cO8Mcwd/k+W2jui5MJ4LbZWZot869NfjtdQ== X-Google-Smtp-Source: AGHT+IH2dFCj4fifybm4yIc6L2chzI9WrlkQ6h9SrQYTxkXXGDy6bkG531VrxgoV4Fqqw7lmWzVG X-Received: by 2002:a05:6a20:1592:b0:1b2:b60a:a428 with SMTP id adf61e73a8af0-1b2f9a4da23mr1986298637.29.1717749931283; Fri, 07 Jun 2024 01:45:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717749931; cv=pass; d=google.com; s=arc-20160816; b=za8XCHu0wbpdeg8HR2utlpZEx8NH7WfVgsshh6OZ20hSPb4Y86F+P9Pw5xvx1sX7P4 oU56gWU1S6zEb0Asqi+zOjDsOdimV4/kSUV/EaRwG5J+cyW6OPvMDi819qlZptXeLdgE AIauC3aA7XyqpQoIGk0U5MHtjhdzWw8l2WV1n1KqOpBta25039dW+1PNRsXpdi6/F564 dn0qQrPNm4eMgRacDVy1FOl7IQWaQ/XcdAdb+fFQJUAs5+FWRItre7c4E3XtoZ4D8prA Derjc998VUHU5Hjb++tD620lZVXd2a+F2Obhl/CyW2c0JC/hpnDsobyMP5CHWpvtKaKZ Qtiw== 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=uszGwktNGOeuCgKmkGe8cHShTeyjdwaQQjy8GQU7bhE=; fh=OXC4e0oAoT+prSQIPcv5HAqKKHDBamgf6v0IhDSf2is=; b=ZUt83Lc8pudQChC7vUanZpeptOQ4cqzRAoP6oKamMujl0u1oib/xLmDX2S90Q5EV1g yhY1ShA8HAT1EdemXsmSoVlmZCj3DhOASw5ESqG3L9mPNuj315wTEHYU0EOtUSMdeWGe poNtm1v9HE7qfF8ePQo+tO5qc18CP+ADuPPzIfA3g+/Rdk4pc+2v+3q5QtKvDE0JRkj6 Tf3EifpD6OsOuxG8sT9xNZ4SqlE4sVAf+0OVVeLIPoIK8G6lPTrkW1wIQAq/7IZuIdZx 6Ry6KP4DqSkJYqtSxzJAI5YET+Tm1ptUNcaVj7ktFchVwswIzCxx+Ig1+fQCM9nOC6z2 Zn5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=BpWR2dzm; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-205625-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205625-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd76161csi27376185ad.57.2024.06.07.01.45.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 01:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205625-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=BpWR2dzm; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-205625-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205625-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 36495B23A0C for ; Fri, 7 Jun 2024 08:45:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41F7515B133; Fri, 7 Jun 2024 08:44:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="BpWR2dzm" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 C6E5715B122 for ; Fri, 7 Jun 2024 08:44:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717749891; cv=none; b=pbHkcgDWcpwgaZCC44Ra6Q5M9R1gbHd0L+LZBOsDxvIT3diVFqgzjyq9BPwDqCpvlfyOenk3BmpG8dIv+rQkWLZdjyWU7Zr0/okkQnOhyu8UMW63+WHlJ8URSlDuWiTXEVP7R4VNoHGYToyjzIqzMp6MaJW7XhdSdyFXtLuCANU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717749891; c=relaxed/simple; bh=ihnvS0ABxYKrNQlZi5are9mu4sgy03wux49T4CEZWq0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=G6pbMXGBtxZOWVAaCKs50WEZj2c4M0tNmCQfMEhnvpHfd7jzFQ1sBi/6r1ZbyWDQGcn1QWVhdZ8sbjkuMTsYYpGh/oLf+KlRuCukm0BEcUUrmMeU/as0wd+j1dpH65MjO0YkAJ83YMaNpOl7LnbAdvSYd7dqOsU+MezSrBmBClU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=BpWR2dzm; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4216badde75so3215325e9.1 for ; Fri, 07 Jun 2024 01:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1717749886; x=1718354686; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uszGwktNGOeuCgKmkGe8cHShTeyjdwaQQjy8GQU7bhE=; b=BpWR2dzmOzoP/oPKAgOJdkJee0jJEQL6ihJsvkGCFSAXiZvwehtLYh5kxh9o4jSU9e Rkpl+3L7o8NNxy+6Yp+IdY0PySgBllSqzdaCUUjdgYMwpQDbLzcuLrOD3wli0WYxhInb iFeSI2PgSUgATBMkCtIDm8pew0gR/cBkHBlUK5IIastfixi4iVl/SWMxAtcCrHyhn+WG pMVeHyq9ml0ZC+pnK+WYwbu4N6uj04C7jCIuQ6on5+eGwRNm44VYN70ZMNdcn1/xStwP TG6r5WOOUX7+9w9/GLvKLbjqJWKZTDjFiJxwjMtgKycMR4fv8iEK4ZeCtV9IhBiL6/us 8yEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717749886; x=1718354686; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uszGwktNGOeuCgKmkGe8cHShTeyjdwaQQjy8GQU7bhE=; b=KlCG3s7SduS6VS88YH0KvQ0ZcNC/JyRouWhAv6b6gAig8GPXd1ZIkMyVUkrlWbB3C/ X5cFvy5N1fELWT9TMEcXsz0zzMxKe5WR5d/P3JycsGlXdULkKgnz+X5u25YMvk+j5hrB KPZX1/uZQHq0jNzPz/Dhkih2MZChNlIkNHtzaplggxYzGsO40yQTg5OWnRyE/D5ILWh1 j6PfaPfZNTaR6fhAnRIl7Rq4duqjKnt7p3ca2daRCZnQR5AsgylkB4R/rQhlkKRyO1g0 nfvb8/dj6gvESSQ1xPh7vFjFqGvSX58ZBZZBOMEyG0K+lbmpMQCDNV1O+yxC9MKd3DIC 9eqw== X-Forwarded-Encrypted: i=1; AJvYcCWOxinMWYqC6QsNTrWKaYDW5uYBtA3KlGjvBskGXjjUNiR4QtX8RZfr781Bko7S4xNLC9rqKX7tobGozhTVA0/9UBaT4l109WCqhjp1 X-Gm-Message-State: AOJu0Yyf4tPaQJfTTDNYv2dATFTeak4Hs23z5o9kBTGHraOhYhMHrJAS HJvEV2ovuqMEIEFP74hSWA6+EYux849cIL3UtsbS51bW3w35uuYJgo4gZlnyBps= X-Received: by 2002:a05:600c:1909:b0:41f:e959:9053 with SMTP id 5b1f17b1804b1-42164a48472mr18734225e9.38.1717749886214; Fri, 07 Jun 2024 01:44:46 -0700 (PDT) Received: from localhost (p509153eb.dip0.t-ipconnect.de. [80.145.83.235]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4215c19e97dsm46376265e9.5.2024.06.07.01.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 01:44:45 -0700 (PDT) From: "=?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?=" X-Google-Original-From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Benson Leung Cc: Guenter Roeck , linux-pwm@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] pwm: cros-ec: Some simplifications Date: Fri, 7 Jun 2024 10:44:14 +0200 Message-ID: <20240607084416.897777-5-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.43.0 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=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=942; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=ihnvS0ABxYKrNQlZi5are9mu4sgy03wux49T4CEZWq0=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBmYshhKfgLwp6JZ+frPV+nWgJhRibmVGfj45G7r E0kqRxcFBGJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZmLIYQAKCRCPgPtYfRL+ TuxGB/0VytZh0DBs7Vmgz/zYmyWJyYKCBl2yt15ghmLFeNvlrQ4oG7vqCAPxl90eZBrhc8ma9PD m46aaPW6/4fp3jlIvfhR1HQT6to6grtfcbICXJN2dS4U6Pw7Cm3yNHYh/mYocljAbgity20ljV1 RyRissSyS716GIQwKuGGfwsiUiO6BvJ3A/6zlrlQ4urfhhO8xbTYcRNWkU4LQi5HCc+LUWUhm+n 5eQ3IhIO+a0ujz0YRB0LAFlS7c3baftDHUF7PqdG1Nj/0PFP/RFDAFgMLudRmTyUvMi1dYWuzc6 iOLgoMZqu2FPSYt62q4AHBWhVe9tf31r2bp3duxUCM/09/DJ X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit Hello, here come some simplifications for the cros-ec PWM driver and a followup change in the core. The latter was the motivator for me, as I intend to work on some changes how PWM wave forms are represented and this reduces the number of code locations I have to care for. I claim in the commit log that the changes work just fine, however I only build-test them, so a runtime test from someone with a cros-ec device would be very welcome. Best regards Uwe Uwe Kleine-König (3): pwm: cros-ec: Don't care about consumers in .get_state() pwm: cros-ec: Simplify device tree xlation pwm: Make pwm_request_from_chip() private to the core drivers/pwm/core.c | 8 ++--- drivers/pwm/pwm-cros-ec.c | 63 ++++++++------------------------------- include/linux/pwm.h | 12 -------- 3 files changed, 15 insertions(+), 68 deletions(-) base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 -- 2.43.0