Message ID | 20240219033835.11369-1-raag.jadav@intel.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-70677-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1103287dyc; Sun, 18 Feb 2024 22:05:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXs5j2S0kyjtOXqqDlFe//OYrCpEwMsqMH3HAz+ooa2FdA0WEjupaaLKIH0pmZhIvklM1IQl8YxIFnuyGvL+0aVlgQjMw== X-Google-Smtp-Source: AGHT+IFirNa363hWv/gqjF1f2FPaazKfL7LsrZ5A5eOZDeaSzU/AeUYfYQ7n4SdnYm3ioud7yzLn X-Received: by 2002:a37:c207:0:b0:785:d94e:a026 with SMTP id i7-20020a37c207000000b00785d94ea026mr12032176qkm.26.1708322721277; Sun, 18 Feb 2024 22:05:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708322721; cv=pass; d=google.com; s=arc-20160816; b=pCyf2KxXENW523/THo8CgZPlohZqVkZWxxg9h1Wp61PU50CrTKdrmKfCqApyfzkPg2 l2fcvdP9Ioj4GilMlW6UVYufmePDIUZOhmkZM7iFFQWL4WAE51tI1nsr8+loCp4X82IQ Ncw2IaxiOhJwkU6dpjKBctp9bywXSmhOGzJGPzksJczq2429RTL63ZWZJxXaAqBG/Cqy YWMi1372F73bR+CiFf9jGON8VxrIvm9SjqR6WQ0Ui90vZiOyrkyp0v77uGsytBrTgLNp 1R8d4Ic0lriT0ptDqivZCRj/Devc96sWZrDtcycUBMANEuPXglb4FzcmC13Z810l88oI CYRg== 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=floq09ODssr6gimWiRoe7vi420migfvf5Wbge0Uj68c=; fh=y/RjPbXBoPouJTPaYxwEImQW6x8GRiLpamQFwed/jf0=; b=lM+3VoAhVI4IcTlaQZ1QyWBYLUFp7Itcif7bzhFoMmc2+/ZhYeXiTK1T38481diVgI KiOzbE75+vHsgENt1iANSPJX68mKRE8OErq24fMwFWRVB+yw0gytn1TZ8+4DUrU8XFVs 5dd/WtkxhX0gZLjsk/v63uCghfIXKmEXtRSqTkITxK5a3PwO+WZzZyuVosa6/cD5oP2d pN/Y7ahYzth7tcCInTW50U0RDxsZW58snntssT/SEyYZDc2duu9NmKb2GasQF0nTrakw kQBMyXHK6gIK71GszhXSD7dNhf/VQRng+XoVZI8C8UpWEXwZZ6fL26jpSvNPeKQFV7m/ 3WWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="S3qZ/KjM"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-70677-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70677-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id sq15-20020a05620a4acf00b0078553d900c4si5280513qkn.73.2024.02.18.22.05.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 22:05:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70677-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="S3qZ/KjM"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-70677-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70677-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 110B31C216AE for <ouuuleilei@gmail.com>; Mon, 19 Feb 2024 03:39:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65E3D134DD; Mon, 19 Feb 2024 03:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="S3qZ/KjM" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 4F44B522F; Mon, 19 Feb 2024 03:38:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708313938; cv=none; b=ImVx7hB+g8QUBPDbk316xJTxte5PdK9QcPG6fhl2HvxpBv2UctsoUHy/+lFbvyjQdLaFkB7o7EV303gyRzQzLCNylplQEs1NU3OeHSiERQRNbGLdPf2yM5SCBeNurKphSFzBSFOkSDJsLaILGFgEHRuFcvAAR63iWetb71caMjY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708313938; c=relaxed/simple; bh=IkdZYrQjnIqZ6yKY1yhUCGON0Z800X0TwXOZPrbf4fM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Y5cpo+B2MOfJmw8EQsqJjHlAsNnZb2xuu++g5wb33lAR3Hth/BG+v5Dd3SUXINXtYrbftAnfPl0B4cy1l1tGsPxR/8Z0Y4LcOqRdBUMbha3PvmUAEXUwYqyLy9aNa+selDJY9AvwKM1Jkdn9YwwhYPBnkoD1lnQACjUhTIcnT6Q= 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=S3qZ/KjM; arc=none smtp.client-ip=198.175.65.9 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=1708313937; x=1739849937; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=IkdZYrQjnIqZ6yKY1yhUCGON0Z800X0TwXOZPrbf4fM=; b=S3qZ/KjMjzEQmnjmBRw3GVZYwpyNNQ8PLrdPqZRUFZ4tRJc9yQ8wmVTP RVGfugEQv/+E5CK0u5krDzVN1F2M0CrD2M1vlxbzKLUfM0c5fwvugC6Mt /mJWZ03fPI/bgWLsJlyUPRZHp+D+OKeM+XFwegUSeDZlDqyaSRi8GDZyy 1WBI5+0xYkBxpSdUnUnGvbKAoG6JdIyOjhJ5vcq60hBrU1dcShcX0vwNz cmkEi60CnmVBuYRKuJFHBayWN3Oqun2EBUCfysdhVoIfmTL4W7orjz67s +zyEqPWKWUlIGusRS+XkszDvhW9mEv+3CpfWTlAqvunPve/KEkaG3Ge4w g==; X-IronPort-AV: E=McAfee;i="6600,9927,10988"; a="24838176" X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="24838176" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2024 19:38:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="4281845" Received: from inesxmail01.iind.intel.com ([10.223.57.40]) by fmviesa007.fm.intel.com with ESMTP; 18 Feb 2024 19:38:47 -0800 Received: from inlubt0316.iind.intel.com (inlubt0316.iind.intel.com [10.191.20.213]) by inesxmail01.iind.intel.com (Postfix) with ESMTP id C533471912; Mon, 19 Feb 2024 09:08:45 +0530 (IST) Received: by inlubt0316.iind.intel.com (Postfix, from userid 12101951) id C16F51600100; Mon, 19 Feb 2024 09:08:45 +0530 (IST) From: Raag Jadav <raag.jadav@intel.com> 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 <raag.jadav@intel.com> Subject: [PATCH v4 0/4] DesignWare PWM improvements Date: Mon, 19 Feb 2024 09:08:31 +0530 Message-Id: <20240219033835.11369-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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791306205766672318 X-GMAIL-MSGID: 1791306205766672318 |
Series | DesignWare PWM improvements | |
Message
Raag Jadav
Feb. 19, 2024, 3:38 a.m. UTC
This series implements 16 channel PWM support for Intel Elkhart Lake along with minor cleanups for DesignWare PWM driver. Changes since v3: - Fix PM regression - Add comment for removed error check - Drop accepted patches - Update tags 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 (4): pwm: dwc: Fix PM regression pwm: dwc: drop redundant error check pwm: dwc: Add 16 channel support for Intel Elkhart Lake pwm: dwc: simplify error handling drivers/pwm/pwm-dwc.c | 58 +++++++++++++++++++++++++++---------------- drivers/pwm/pwm-dwc.h | 5 ++++ 2 files changed, 41 insertions(+), 22 deletions(-) base-commit: 191fba33d814a855ac6a29d2c26a46fbe88d55b4
Comments
Hello, On Mon, Feb 19, 2024 at 09:08:33AM +0530, Raag Jadav wrote: > pcim_iomap_table() fails only if pcim_iomap_regions() fails. No need to > check for failure if the latter is already successful. > > Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > Signed-off-by: Raag Jadav <raag.jadav@intel.com> > Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> > --- > drivers/pwm/pwm-dwc.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/pwm/pwm-dwc.c b/drivers/pwm/pwm-dwc.c > index c0e586688e57..7dbb72c80ef5 100644 > --- a/drivers/pwm/pwm-dwc.c > +++ b/drivers/pwm/pwm-dwc.c > @@ -51,11 +51,8 @@ static int dwc_pwm_probe(struct pci_dev *pci, const struct pci_device_id *id) > return ret; > } > > + /* No need to check for failure, pcim_iomap_regions() does it for us. */ IMHO this comment could be omitted. > dwc->base = pcim_iomap_table(pci)[0]; > - if (!dwc->base) { > - dev_err(dev, "Base address missing\n"); > - return -ENOMEM; > - } > > ret = devm_pwmchip_add(dev, chip); > if (ret) > -- > 2.35.3 > > Best regards Thorsten
Hello, On Mon, Feb 19, 2024 at 09:08:31AM +0530, Raag Jadav wrote: > This series implements 16 channel PWM support for Intel Elkhart Lake > along with minor cleanups for DesignWare PWM driver. > > Changes since v3: > - Fix PM regression > - Add comment for removed error check > - Drop accepted patches > - Update tags > > 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 (4): > pwm: dwc: Fix PM regression > pwm: dwc: drop redundant error check > pwm: dwc: Add 16 channel support for Intel Elkhart Lake > pwm: dwc: simplify error handling I squashed patch #1 into the offending commit and applied patches #2 - #4 now to https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next Thanks Uwe