From patchwork Mon Feb 12 13:02:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raag Jadav X-Patchwork-Id: 20249 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2456990dyd; Mon, 12 Feb 2024 06:20:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWNubE/H7jDW2/JIrOUyM++/0S5m//gfgA0ftzELzjy0fNrLcbo3cmqlgSR7Bo291ltHQU3L+WqF+Un7STvVQpFdxY46A== X-Google-Smtp-Source: AGHT+IFAoRXqheovVLPcGNpfCsuFiqVayoMq6j6P9S22LB/lKMBqenld0oscOuIyWyeeHCP0n+T1 X-Received: by 2002:a0c:e189:0:b0:68c:7919:27c5 with SMTP id p9-20020a0ce189000000b0068c791927c5mr7031290qvl.35.1707747629049; Mon, 12 Feb 2024 06:20:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707747629; cv=pass; d=google.com; s=arc-20160816; b=Kf2dfVgsgqdvmB8aBO4est8SjdYcEbVMLvsC76NHPFUtNF2I3s7Z5dFkpFgo0prixZ z/5AM4NemXnYQAYQBVWCTRM/b+6xmya2PmacBDeRtZa5Cj8pBIGeM6UUQNEDWOod1FEr TSUCwizhmzP6CYNB4Ldoz5HrfIlZNTHH/Ey3rfgCO9IIC5odlX7B+IsEgT4V9Ze5EL7H HBTjigYjiVo73tt8uOo/07wZcyACtFzRlNDUiEKSOEZg+FoN8pVTFXhM+QBt+DT51dsx u5tUy4ZpexgXRF0CmlSZ74GIirIKCG9EwSV5Rwc0hac2kAvSl5h/ymvCBGHzEjBbVvPx 1nnQ== 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=qThkasNDKjPf/39wSlLL9coYFYmWGhjJG4CRYA6ir/k=; fh=vMxzvGeqY2sTT2LLhmiaSN1DZ4jm359+BYd37Zugzc4=; b=rbMEKmhg41s9lw+tZogZRdbP0SDtI0rZ6xcor7M+lDD4Fcezv8Hy1/b7Uu+7261Lqc hX1Kb9GVsuoRBF4QxAWrKXrfn3yZKMv4dnZOnpjwX1gYNTcBiT/efBgGn1unpkES5WWt X1y1WmVUlrnZl6KJlyzSKYAz/t53+RdOCqfxPw1s4p7ZzTVbYaQ8ojAHskYM1Q3wAz93 nnvcSuvPiaTY4PgtNrn2dbfKW6J8iKYLPtrAeobQ4geULas1S4qrNaud2Mwls2SnSFPx eZ9fJDxvEy3Whg0Ggz6oDAwjv8rYnvQJBi5mAZ+LFz2tXoCYCZH3mEe3ZZ3H3zpQ9cHk aNdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Nrzq+2cL; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-61591-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61591-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCWTkGUIr/iHjshm2fOHkDUSmepQwKVey1hZScK/wT5PD77WIj2XKRG9PTrnIpd+8m0bQBifj4x6Rb0J3rv2y7+hu4YCKQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id hf7-20020a0562140e8700b0068caef783a3si476337qvb.491.2024.02.12.06.20.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 06:20:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61591-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Nrzq+2cL; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-61591-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61591-ouuuleilei=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 DEEEF1C21EDF for ; Mon, 12 Feb 2024 13:03:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 559903A8E3; Mon, 12 Feb 2024 13:02:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Nrzq+2cL" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 30D463A262; Mon, 12 Feb 2024 13:02:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707742974; cv=none; b=t8X7m7avORDehlnqRQR4vxcMfHdOD8DtbEqPa9Xe8hAvE8v9BZLTG1ypxUoUOOHomKXrq1DiwDFr1nIgPaQyzUoJs11JPGFShq3rrfb1GL6PS8D3zXzxFJ3Tcn+lnrfCrzVc6xZ4jUu/9nPwrIXPLFDf6/VK9kSH8d6Rt/C/NpM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707742974; c=relaxed/simple; bh=+iezdmJtQKUYOgzOmH1gPFOjerA7i2PM8BJI/LAdFUQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=WQLq/DMc/PwkyTwiQpIcwRBd9BYQeIzqbVchp4EG65o6dXahwpirfZZUio7dk5TU6TU1LFiak0J8JBphPTqTKv0b8EAHcdRtcz1lxu+VvOo8HkZf7aE7vCC+F3p8jvPQfU7gWYTixNzw0VziPyYbjH96K85HllZoXvzBzRf+W1I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=none smtp.mailfrom=ecsmtp.iind.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Nrzq+2cL; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ecsmtp.iind.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707742973; x=1739278973; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+iezdmJtQKUYOgzOmH1gPFOjerA7i2PM8BJI/LAdFUQ=; b=Nrzq+2cLkhNJvTmuayjT90GnHTGCKnyjqcwWPQ2yvMOvnaQRqI08cyLG LbDWgiEcUbU9wL3cpde5Rzje8T1ODWXUzvyVchp29+3KHy8RAv8IMOzoj ngyTMOZwqD6FedUxaojBjq3NjCoWgleF/91yZxUHTOq6wShheEfHIKqSK 6ZFxzQO0T8XcYKugTaVaYjIHhBr9tN5hB1QOI4CKvFlATgyiBBO9i4jrF IEuo2E8swnpe1l/itUFohD8CEMDuySF970p7MmvrpDCCigSMY27OHNJfy k/xu0e6Q/gwuk87x5n45hktHi45d+lZAu0X6GJnhs9RdF2Mf0xrFAvYn0 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10981"; a="1594828" X-IronPort-AV: E=Sophos;i="6.06,263,1705392000"; d="scan'208";a="1594828" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2024 05:02:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,263,1705392000"; d="scan'208";a="33378386" Received: from inesxmail01.iind.intel.com ([10.223.57.40]) by orviesa002.jf.intel.com with ESMTP; 12 Feb 2024 05:02:50 -0800 Received: from inlubt0316.iind.intel.com (inlubt0316.iind.intel.com [10.191.20.213]) by inesxmail01.iind.intel.com (Postfix) with ESMTP id 573FD23A66; Mon, 12 Feb 2024 18:32:49 +0530 (IST) Received: by inlubt0316.iind.intel.com (Postfix, from userid 12101951) id 52D061600100; Mon, 12 Feb 2024 18:32:49 +0530 (IST) From: Raag Jadav To: u.kleine-koenig@pengutronix.de, jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, lakshmi.sowjanya.d@intel.com Cc: linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Raag Jadav Subject: [PATCH v3 0/5] DesignWare PWM improvements Date: Mon, 12 Feb 2024 18:32:42 +0530 Message-Id: <20240212130247.9985-1-raag.jadav@intel.com> X-Mailer: git-send-email 2.35.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790703177574735029 X-GMAIL-MSGID: 1790703177574735029 This series implements 16 channel PWM support for Intel Elkhart Lake along with minor cleanups for DesignWare PWM driver. Changes since v2: - Remove error code duplication from dev_err_probe() - Update tags Changes since v1: - Drop redundant error check - Provide dwc_pwm_init_one() to initialize one PWM instance - Use dev_get_drvdata() instead of pci_get_drvdata() - Use pm_sleep_ptr() instead of use pm_ptr() Raag Jadav (5): pwm: dwc: use pm_sleep_ptr() macro pwm: dwc: drop redundant error check pwm: dwc: Add 16 channel support for Intel Elkhart Lake pwm: dwc: simplify error handling pwm: dwc: access driver_data using dev_get_drvdata() drivers/pwm/pwm-dwc.c | 59 ++++++++++++++++++++++++------------------- drivers/pwm/pwm-dwc.h | 5 ++++ 2 files changed, 38 insertions(+), 26 deletions(-) base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d Tested-by: Jarkko Nikula