Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp69601lql; Fri, 12 Apr 2024 04:13:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWr4Ax5zzOdXcoJQh1OUThOADgImS3tDMgbW1hEuIQLgkakVv50jec04hN8YLYHxVpzitvPNA6N7/kTlkQjPnxCZhM4V5lSMz0MjN1KMg== X-Google-Smtp-Source: AGHT+IEKCwxkb0LhiBY216UPchLZ3PUjAMkRM3cmODLOGWSRqd5jHMqiyPcWtoM89qgdlTJnNnVX X-Received: by 2002:ac8:5f0c:0:b0:434:4886:fe5f with SMTP id x12-20020ac85f0c000000b004344886fe5fmr3091079qta.38.1712920390809; Fri, 12 Apr 2024 04:13:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712920390; cv=pass; d=google.com; s=arc-20160816; b=pggtusSjjxS0FtcIB+aaWXaYulWI06otwOGmvYHPtiJq3SMMWOcmVd/ee8LaQhFPUg i+y65LQddvMu2qo5WNLF+by3ln4uvH4kQbxrv2EMivsTnS7WZQni60da3ScUvKbB8PAY e/zNDRa4NmI4Nylg4atIvXBuMog/jlo7sX0B1Ko0dbFJTTaE806+Y1TPMvWryo8W0OUo hn8jJQnVr5e61m/l+kMLDNTEJMPQiuZeSATEeMQrW4gqVf6BOLKzm1Sij2BZQ1ek+WXl 0T2u8QOzdarZNFzBPx5QWwimRmddvPbMLoSwMvJA+Pa6HuMStxFJlsA8hfGZ2VtNH/KS GpjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=QVBNFtZlREn+bMCJYKPrh0vf1LpmyxIimIO8YebjRrM=; fh=aIhPSyX0g/aq7zymv7L+ti7ji5bvDbBN3/42X5T74L4=; b=eqtXtAKcqa4OMUeoF38OZNY2hDhy1Rq6vv9myKLOR978xjz9Ym2BnfnzvUiB9hJ7sZ bbOpBdBit6xqIi7effkv22RWewA1XCzms2BKcENx/RB0WiGzmOTyj5WEqWvDxu2xRCKc ufqaekuFd/s7+w/u+NSyKMyjeWRKUan2NyoSMDwFyuRMgI8GJs25uO4yZBi5GVmFXlCx x0ohMrN2LWZo+AxYJHkl2YyMDRUpESWYXLO/jYFt31LXsTb8xJOwpBdx2lVPqcRq/Jg8 7VtYP7IA5q15LHaAprNmB7430RsKsRAN3J31AGKBJZaxFXXTY7kt0VbkEwhpjFDgTF75 vesA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-142557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142557-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l5-20020ac84a85000000b0043659ba83ffsi3139976qtq.412.2024.04.12.04.13.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 04:13:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-142557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142557-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7F7E41C21A5A for ; Fri, 12 Apr 2024 11:13:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80D66537FB; Fri, 12 Apr 2024 11:13:04 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 A707D3D3B1 for ; Fri, 12 Apr 2024 11:13:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712920384; cv=none; b=GZiLCPnZLhjTVVIUt19zZ6o4Y4ymipski8mV7walmWjmRe0oNsawBe6rBz+q0skOkY3JbWw9A2pKCiWPPuSxm1dHeRNQHmrPLKLvzxDMtRcXKO9t7s8LHQZmAmas05bUsYzRy0sASSCtLD4Wu3XR9/moEaDl+c7LZx4yM2YkuMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712920384; c=relaxed/simple; bh=BIhxuHW1Tjky9MrjNACsugUh3NwevbqdVTM1vytmnWg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tOmVlFG3wlACXchugK0ru4x/DwMeM8t6iR7JDPbe8QsUcYf+jGTukDk+BOUJeP9WY8XM3lRIwz2Uu+pdAal8QyA/NEjWbZlHnRHbn2YJnWXz2px5+0ggdWcxeswDfAAjFwizkErYaikAyusIlOzUjukdWxdxD+sz2SlqLmZPFKQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rvEpt-0001qU-JT; Fri, 12 Apr 2024 13:12:49 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rvEps-00BriS-DR; Fri, 12 Apr 2024 13:12:48 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rvEps-0007Gu-15; Fri, 12 Apr 2024 13:12:48 +0200 Date: Fri, 12 Apr 2024 13:12:48 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Raag Jadav Cc: jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] pwm: dwc: allow suspend/resume for 16 channels Message-ID: References: <20240412060812.20412-1-raag.jadav@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="poakpkong5ugzklq" Content-Disposition: inline In-Reply-To: <20240412060812.20412-1-raag.jadav@intel.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --poakpkong5ugzklq Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Fri, Apr 12, 2024 at 11:38:12AM +0530, Raag Jadav wrote: > diff --git a/drivers/pwm/pwm-dwc.h b/drivers/pwm/pwm-dwc.h > index a8b074841ae8..c6e2df5a6122 100644 > --- a/drivers/pwm/pwm-dwc.h > +++ b/drivers/pwm/pwm-dwc.h > @@ -38,6 +38,12 @@ struct dwc_pwm_info { > unsigned int size; > }; > =20 > +struct dwc_pwm_drvdata { > + const struct dwc_pwm_info *info; > + void __iomem *io_base; =2Eio_base is only used during init time and so doesn't need to be tracked in driver data. Otherwise I (only slightly) dislike > + struct dwc_pwm_drvdata *data; because "data" is very generic. I'd call it ddata. But I don't feel strong here. I'm happy if you change to "ddata" in v2, I will silently apply anyhow if you prefer "data". > + struct pwm_chip *chips[]; > +}; > + > struct dwc_pwm_ctx { > u32 cnt; > u32 cnt2; Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --poakpkong5ugzklq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmYZFy8ACgkQj4D7WH0S /k7jKQf/bACV0R2IYOq2hc4q93teGFMYg3qIOIF1L0GI3pUYcKBM3NR32NrNCl1t QSLHTq+WjUIaWu7lgbebUfUL9ryD7adwoOyoS2BpvWxpojJWOp2lT8AVXMLYrLQU 0p0dwZiiRzw3jhz+pQ7unXLIYzJQTXiFlKDqwkkbovxdSwXdDGSnyVcRHOQQIFHZ yx1lKmMnMSzFBPD2VSJQyw/k2K8O0rLA0KAPkAf0pCi2ctE9iPjaL4uhkxBzjD+U xJKz+W9GlVmmNsCzXbu+YRUOFckZf4EO35CQXfbiqBhk/+DpqlKSdSL6TbJn69p1 /rr4AUJfpYzyaUKHQlO99AHdfprLiw== =hzLm -----END PGP SIGNATURE----- --poakpkong5ugzklq--