From patchwork Mon Jan 22 03:02:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raag Jadav X-Patchwork-Id: 19230 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2422404dyb; Sun, 21 Jan 2024 23:58:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFH8fiqndrYLAEO5Rgx5ozY1elt1PMA6czkRHFSj966ozq4DKGOp7qGT08A7+uNAO9MowNl X-Received: by 2002:a05:6870:82a8:b0:210:de9b:1d03 with SMTP id q40-20020a05687082a800b00210de9b1d03mr4241163oae.29.1705910282969; Sun, 21 Jan 2024 23:58:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705910282; cv=pass; d=google.com; s=arc-20160816; b=GpaOMOk6M2oITrl1rE93fO910EXPsaVsez3l3MWGnrTfbIkiSvyZgUk+9QudUhbOGB ZI+Nt2x45tMUW3wYFs2HdJKlTD2f85pKSUB6TfUcIyLMjcMgYAY/jdtWmiDKpNG9kSEX UfTZx+Ra0pzMQ7BxeRzb5MDXoKQjiGl8DOD1j9XG0bRezvMyqQIdeUO4PHixMgSiHhV2 vZ5z+wIU1IbP8NIVnKzIucG88woyOUtCOEXNTGUL8dK0pRNwUUBnYQnwaiq/HG/iuu1j KXwpEguxPpI/KDj2OHsOocS+EcHL3eO6iffpExv0QHbUJi2Oa8Sj8VNxLEUHz9wBlDP8 BGhw== 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=W2rBGQ9WHxasflOWLH2Rai7kTW+T3dX8fu54FVixqgA=; fh=y/RjPbXBoPouJTPaYxwEImQW6x8GRiLpamQFwed/jf0=; b=Tbr13gBT3d4xu7Y0JIz9s7mMEXwZCGFPa+3hDINi4O5S4zL9D2WQBsAppM71ToTGcv p8YESGZiRhvk4JXnQ3PO/7Nhl0Fe1By5xrB79RAFT0MnhQWj1EVoVUZpGOyWlaWJoqiI gQ8Glnsxy6XQ2OQxWXAJSf1AdlKVKeLlS49rRt6Y4b35dbgHFIBbJSdYBULfIsKFICPj SzUSkB51Z3d2xAem3Ev/dbtAjoGSJ2rWO7RgkQRzO8U7TBQC4JL2ZLl6aDnsqtAsDzhS ApXm8L3pgo0TrFAn3i/MfrylXHm+X+GZh9HdbC1QdtfLK5WCzqt4VUB26tMchg3ZNjcd 6q7A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PwS3fHC6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-32291-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32291-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e3-20020a636903000000b005cdf8b4d2fesi7662296pgc.747.2024.01.21.23.58.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 23:58:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32291-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PwS3fHC6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-32291-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32291-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8535A282D0A for ; Mon, 22 Jan 2024 03:03:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFA7B6139; Mon, 22 Jan 2024 03:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PwS3fHC6" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 20F6517F8; Mon, 22 Jan 2024 03:02:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705892576; cv=none; b=XBxZRMPiD69Var2+1CUZBrX6PVP3bFuZCP+pHpyBIhnp83/VrWF47Dj+nKjw13vF3o9TuYBEA7Vn4YmKxo/7KZZnjJhafpl4fqYllvQW8Yi2Tc/e4F7UiV19a3BIcI5DaU8W+xJKhRtDsjDI/34v3DB8MIvxOj0AhRczejPOGDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705892576; c=relaxed/simple; bh=JU9q0bJ7a4jYOvykJk01qQpv3D5tvVRO+GJ+CDcsGr4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=OIu6/n3eMENcq+CA2GWif1a6N69gj1ckvWawLXsonGur9+qBeeM08ZEKNdI+QsOQjZmK1JodVV8pTK3w8EvDZYpwAfivrjCrHjDXpqU8N+GnaDPfxDPxILzD7xvyBasx35/7d9QaaOV+v4b1HgExBPu+q1KbxJp2JaHAhLK9noE= 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=PwS3fHC6; arc=none smtp.client-ip=192.198.163.8 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=1705892575; x=1737428575; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=JU9q0bJ7a4jYOvykJk01qQpv3D5tvVRO+GJ+CDcsGr4=; b=PwS3fHC6LmoPS8UCvDbnq0zn6jox3QbhMuoT3NLt3xM4sRAm/M19LLk5 X/z7t81aT7+95RjsGh8LTGg6cYiDOgatVlZMzhGvnPYizoyHe1H8Ss528 dAfG5Mlj1uoCql7pTeRFwH5c+naK8O3KXxaCbcbHiauzGdiOXmXA0uBCn OeEUH4o2XmCtAObNc/4ARARlI5xbmqFqDGGTNHMmbAfBKZCQwoPYyWGv8 noN5DB4qNGPxMZ7qpsjdjTHYJ6E+/J4jtLOPT6hpMueZz/YKP2oUf60XQ jMtAWDaArioROOeuZUcI3cvZQQ13IhaaNmsi18RnjbspotwUX3L92YqAi w==; X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="14607320" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="14607320" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2024 19:02:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="1085519" Received: from inesxmail01.iind.intel.com ([10.223.57.40]) by orviesa003.jf.intel.com with ESMTP; 21 Jan 2024 19:02:42 -0800 Received: from inlubt0316.iind.intel.com (inlubt0316.iind.intel.com [10.191.20.213]) by inesxmail01.iind.intel.com (Postfix) with ESMTP id 1C3D147C1; Mon, 22 Jan 2024 08:32:41 +0530 (IST) Received: by inlubt0316.iind.intel.com (Postfix, from userid 12101951) id 1785C1600100; Mon, 22 Jan 2024 08:32:41 +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 v1 0/3] DesignWare PWM improvements Date: Mon, 22 Jan 2024 08:32:35 +0530 Message-Id: <20240122030238.29437-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: 1788776580851691670 X-GMAIL-MSGID: 1788776580851691670 This series adds 16 channel support for Intel Elkhart Lake and simplifies code using standard helpers in DesignWare PWM driver. Raag Jadav (3): pwm: dwc: Add 16 channel support for Intel Elkhart Lake pwm: dwc: simplify error handling pwm: dwc: use to_pci_dev() helper drivers/pwm/pwm-dwc.c | 71 +++++++++++++++++++++++++++++-------------- drivers/pwm/pwm-dwc.h | 5 +++ 2 files changed, 54 insertions(+), 22 deletions(-) base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d Reviewed-by: Jarkko Nikula Tested-by: Jarkko Nikula