Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2093757lqz; Tue, 2 Apr 2024 07:09:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWCOENz2WQ6QK+KzgmiLuD7gh3zE+X+HrNxBnvSg4jVPrlKFSyHazziHMPjpp4c0ted+y7Bs3R/CgzBDhi+Q/vBsDAukPJOb3nPCB/csg== X-Google-Smtp-Source: AGHT+IGQwi7KInmQu3o4Gq+ORyQ7LZZZcBwnJQaMlgQ29FiR18Q/VpoI80/9GygbyXPLsihEH+9V X-Received: by 2002:a17:902:ce02:b0:1e2:7c2d:7683 with SMTP id k2-20020a170902ce0200b001e27c2d7683mr1212654plg.68.1712066972876; Tue, 02 Apr 2024 07:09:32 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k2-20020a170902c40200b001e21db5dbb4si10654027plk.6.2024.04.02.07.09.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:09:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128106-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=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=MMupnFhb; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-128106-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128106-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 EB41828431E for ; Tue, 2 Apr 2024 14:09:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F13086128; Tue, 2 Apr 2024 14:09:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MMupnFhb" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 F2E2985268; Tue, 2 Apr 2024 14:09:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712066965; cv=none; b=Parppya4PA2GY1At/kKfwOOnqqe4K0hbX3lfujK7fPubiq7+CU5aSOCMlgTeWWKQNOglZQqsPmAHTIM9wPHKaHgFWIlJ0dd1xZxDosxes/jcHFOIMXCVDFJmAMXlFC92pfcFRiPF3nYH8uVX6p/06LYh1RjozVdX9BJv2FrLil4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712066965; c=relaxed/simple; bh=uEC3a2yUsQ6IMUZDu++fBR8R8oM+dRgeV4GJKC1kyJ4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c38Dagp/iSfhGp4G9rV5CaOJcy8lq+LYzvftDp0vgsEfGvs4oEkZwaILDHAcOM79DZoBbb6Dh70HtOex//2oX5SrCMh75Ax2lv0LVWFDspmtIo2I5vFXKwc6Je0yaumxFN6BpvbOnEIywe+kcQjtaQf1oX2frLfrjUF2oPGgRdk= 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=MMupnFhb; arc=none smtp.client-ip=198.175.65.12 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=1712066964; x=1743602964; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uEC3a2yUsQ6IMUZDu++fBR8R8oM+dRgeV4GJKC1kyJ4=; b=MMupnFhb3XCs6dLvyp0XcP/G1ag++noF/AYxfGUXTZpoH+iIbzbEZQRt MJgWC5u/Tcw/uClJAUaswWKoL7fhziqRJGwExJ/ylwzj1qfXwkMNbhNcN 7H2W6tIPxPdkGiblZb7WEjqKJPZa6SpzazuxXlU0yDX/TALs+0w7Du5gg 04Tn0Cz13XVmDy7jVfSLmfbGgzLPjqOgG+Zz6FHfgpF0yLm2D6kRJlrRE XILk6uToUBy+h6YNGd1gXKg6DXds+wtGxI1CG/a6oGwes5R9hY4NysAmQ FHxfY0uQv/atDQaUwpTlTnAbyOsWA5KkJkeWbCI4Z/g2Eh+KqywonNnjZ A==; X-CSE-ConnectionGUID: cVH/vLLbQTGejBwQGrAHIQ== X-CSE-MsgGUID: Z4dBD783QEGe62H+acCQMQ== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="18689668" X-IronPort-AV: E=Sophos;i="6.07,175,1708416000"; d="scan'208";a="18689668" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2024 07:09:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="915142247" X-IronPort-AV: E=Sophos;i="6.07,175,1708416000"; d="scan'208";a="915142247" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2024 07:09:19 -0700 Received: from andy by smile with local (Exim 4.97) (envelope-from ) id 1rrepB-00000000pQY-1kBR; Tue, 02 Apr 2024 17:09:17 +0300 Date: Tue, 2 Apr 2024 17:09:17 +0300 From: Andy Shevchenko To: Peng Fan Cc: "Peng Fan (OSS)" , Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Dan Carpenter , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-gpio@vger.kernel.org" , Oleksii Moisieiev Subject: Re: [PATCH v7 4/4] pinctrl: Implementation of the generic scmi-pinctrl driver Message-ID: References: <20240402-pinctrl-scmi-v7-0-3ea519d12cf7@nxp.com> <20240402-pinctrl-scmi-v7-4-3ea519d12cf7@nxp.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=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Apr 02, 2024 at 01:59:19PM +0000, Peng Fan wrote: > > On Tue, Apr 02, 2024 at 10:22:24AM +0800, Peng Fan (OSS) wrote: .. > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > > Missing headers. > > Not sure there is an easy way to filter out what is missed. And?.. You are the author, not me. You know your code much better and it will be quite easy to perform. I may miss things, but reading briefly the 1000 lines and get what headers are required takes no more than half an hour. (Tools that help me, in case I don't remember by heart, are `cscope` and `git grep ...`.) .. > > > + ret = pinctrl_ops->name_get(pmx->ph, i, PIN_TYPE, > > &pins[i].name); > > > + if (ret) > > > > How does the cleanup work for the previously assigned pin names? Is it > > needed? > > No need. The "name" memory region is allocated in firmware pinctrl > Protocol init phase. > > > Maybe a comment? > > ok. As below. > /* > * The region for name is handled by the scmi firmware driver, > * no need free here > */ LGTM. > > > + return dev_err_probe(pmx->dev, ret, > > > + "Can't get name for pin %d", i); -- With Best Regards, Andy Shevchenko