Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp232282lql; Fri, 12 Apr 2024 08:46:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6ECNDPGCpoIVVXLLvp3N3d+241LqQwiTU9qK4aDiE1XOJlhyT+SsDRGBiJfyF9etGa0Jf2EswA7K+t5HjpW2IWEmrM5w8I+34zCZGgw== X-Google-Smtp-Source: AGHT+IFb5B0duKNkkHSV6fNNhlJuUeOD/M0HanyF+J/bvTvMTjlktVetSQfOMRVD3g/lM3YnUvVJ X-Received: by 2002:a17:902:7616:b0:1dd:bf6a:2b97 with SMTP id k22-20020a170902761600b001ddbf6a2b97mr2615329pll.60.1712936794114; Fri, 12 Apr 2024 08:46:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712936794; cv=pass; d=google.com; s=arc-20160816; b=UshT0xaSTEc1SY/11fsYv317BnJrSP0pQ5laF3tZuJ//WmD6PDO9OJycYz7Syd8vbj QTacivLHir8TBMC2yjg3RYpIOm7j+r2USJ96+zwVgdf5xw6AHQS/7qnTiPXnawZdQGx+ USR6QtVDLulxOD79ueoCKUEwQF63sghRzqv6dhUE7DfONX62rut5fvjPjuaapBH0CQYx SkkyTKFrrQchifvJTX4/eehTVUdP6NbBYIkw0+YwarzKHvaD8Z4yZnlacWcphuUFelAx J1kHoGQ7nJ6yfm9mqkm4Z2nIfkdJMl2osOZXW+8Ld+MarNOkvUmgIrtiUhPkBb4nE1Va xaBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HMcANThedfM2BuEKDCRyzxYcqVZjrs7OHktw4bJLboY=; fh=dy5W925yFRqBxZjhXDOB8bH6w1q6NBa2hrY55hUkr20=; b=sG+JVjvLZGzhKjqMT5orHCkFfiwrEGBFwGvBnxdkeJ6w6oXu6WC9kSWMScoAFjuByG qMlePVu+v1P7sdEpdNkLqIeO5W2Nl0vp5FU5yLZw3ybSYTnTLpluCgHEGH06Gj5QK35x 5G4fdxOYN3gY2TRtp49SkTZgxvC2utN7wIar4N2s3eVcx/B76GfaI61YfzoHv7gJg6XP xE3jC6Q+iVXNI/XnRTgwfKAePF8Y3ImWyHoLREQoRZDHVktoqRqC8srmG5Y8n60OQPeS XThOMnyvK6yP7skGNxBdYIbYZ4vlT3SpjPGgnCrZSltRUjfv1iT7TDwNIqIIw1HDPj3S ci3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="SY/TX+nY"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-142964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p23-20020a1709027ed700b001e589a2f9fbsi2045194plb.248.2024.04.12.08.46.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 08:46:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="SY/TX+nY"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-142964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142964-linux.lists.archive=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 73D25287019 for ; Fri, 12 Apr 2024 15:38:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56B081487CB; Fri, 12 Apr 2024 15:38:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="SY/TX+nY" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 E40D81411F4; Fri, 12 Apr 2024 15:38:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712936311; cv=none; b=SOe65tljuMxZ/z5PPvrYCv4oLGS3Q28bfbbB8PgXv8NcgOrdKizsfBkFBRibykHu9Of9AKDp9TDq3IWSpfnCFFjSGHyPsL2qEQqNt1bDi2uZnZ8PQWMneXqaf6AZkzxEixzwaJ3btWLsXsGM3yhNnktwjuz4vu2epxue86f/eU4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712936311; c=relaxed/simple; bh=o0Ohfuc9FmFgVm+WRikyirOa0zfzgYOUHOXxIW7s4Uo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nWoRzPEfRqF7UrBRA5nM/k9qe8TE7WE59MsM9Mge6qQW7aEHtlBc7RSan/uKZNxtd0J15yACVX4+K6hZ9A7symt5brAPP4ItnHzEnO2vd+3NmzFWRIpO0qD3xqgp91B5dN4y7ZfUiGeN2vQ+Gv3PIDx1Ms2ETBNhwagmn3IlkVI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=SY/TX+nY; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712936310; x=1744472310; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=o0Ohfuc9FmFgVm+WRikyirOa0zfzgYOUHOXxIW7s4Uo=; b=SY/TX+nYIcHlVlmuYzfP5BqRb2r/fDNIG9W3GInFyIIpekQsq/pcSGjg Qa1FKpSP+QDQZBiWfJIKwtmZc6X7F6RUFBGPWvQJlVMPG7JwpPCyVMsXT L9o0QrKmpaTWfio1/A+GdasgmLWPzUnWzzQKOrnMMgj0Io1xZ84NYb7qx xbuyorP3V7k/9Dke8p+tzJ8OYsYnXs/HmMyC5D/uEetqETiyvF80n5FgC KM1G2WF8Rs2A8kr51zIzYVHQEp+GRPDQQ9Z+gyo1/t3FKZoW/dBpgs100 zqHRJ0kICLZcYWkC1KwD6Rp76oHCfPt4IaOn0nm40xB7z8mAHO9z1sfto A==; X-CSE-ConnectionGUID: SxgHU3KRRbiLds1JFPeLhA== X-CSE-MsgGUID: yniKpg+ZQYyG5dGPwRCbTA== X-IronPort-AV: E=McAfee;i="6600,9927,11042"; a="12187226" X-IronPort-AV: E=Sophos;i="6.07,196,1708416000"; d="scan'208";a="12187226" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 08:38:30 -0700 X-CSE-ConnectionGUID: rC/3ktDzS+O1TKFpUz9EjQ== X-CSE-MsgGUID: ijfHJG9yT9uMjig0fGakig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,196,1708416000"; d="scan'208";a="21330663" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa007.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 08:38:27 -0700 Date: Fri, 12 Apr 2024 18:38:24 +0300 From: Raag Jadav To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= 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: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Apr 12, 2024 at 01:12:48PM +0200, Uwe Kleine-K?nig wrote: > 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; > > }; > > > > +struct dwc_pwm_drvdata { > > + const struct dwc_pwm_info *info; > > + void __iomem *io_base; > > .io_base is only used during init time and so doesn't need to be tracked > in driver data. It will be useful for other features which are WIP. > 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". I think "data" is more readable, something like "ddata" would make me re-adjust my glasses ;) Raag