Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp967298pxk; Thu, 10 Sep 2020 03:37:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLRC5Xfdtcn90GJFnuxeDCtqaRS1keO/m7xaBgB6ze46SxXYXvEQUoUzfRZQvVRBoHupHs X-Received: by 2002:aa7:cb10:: with SMTP id s16mr8715632edt.72.1599734222829; Thu, 10 Sep 2020 03:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599734222; cv=none; d=google.com; s=arc-20160816; b=sdlurs9evc8Bra4lhpM1eKQdFLAmAfQngPUaS4DODA54m84G9Mp8jxubgFTv0+K9XX 9PXfFyH8+hA6mRRtrJURGJKSm21kpGuVjGp4kQC9PBQ/7iKCJz//zdttVfvdyrVrm04j C/1sPnJEH8KM7UrIutNF61zIKRLqcltzHVDELj+anDbe4aMWb8imgVmr0PJrWvTvzyQ1 jbm2dmnhebqjm/hWnaJMNTOcE9sTWJ9qvC3xAhNgla+ZhDShcP5oXkuUACTcB7pGM5by WeNbeTC1RCGjaznxmhzLMHLVbsGO9pyFjsWDExltwkPvD4Z53yYTwbqRZrvaMt805AJo ewtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=o7mUo0N+Uv5P/RjoOfjgGc5C9g7uxLHLuIM6GPCy9bM=; b=Dda5OwWKq1dlDHU5l3JqQCdYy6dVHdUq3H6xWpY3TEVqiqVfVaGCXIDflCaPd8qWMP JoozQvCa7bkfvgNr9okYM+M6bZKZIZsu0gQRHQIYEKBd6KrazwMvxXz8qHtqpUqxU1cn x2MKHDWxPGUWUUUAtaCqqhzqahMKoxclGTj2mwEcasNNGY0hI0gk8zEIU/w6geEYk6BC Z0ylTXKPOBnmBZtS+kLy9feD04xmKR8Qou1Y5amuh8Lmm8jebcn7wie3ZX6anAguvE1W X70E3Si9IpKQcfKVcn6iF5v+lFnRDbaZWVlAcj6QF//eUSZG7p40HGaEj3HrcmS8jSAO GaAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x25si3165217edr.508.2020.09.10.03.36.40; Thu, 10 Sep 2020 03:37:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729507AbgIJKgA convert rfc822-to-8bit (ORCPT + 99 others); Thu, 10 Sep 2020 06:36:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730285AbgIJKfe (ORCPT ); Thu, 10 Sep 2020 06:35:34 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FB9DC061756 for ; Thu, 10 Sep 2020 03:35:30 -0700 (PDT) Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGJvD-0000Cq-K0; Thu, 10 Sep 2020 12:35:19 +0200 Received: from pza by lupine with local (Exim 4.92) (envelope-from ) id 1kGJvB-0005Vf-7c; Thu, 10 Sep 2020 12:35:17 +0200 Message-ID: Subject: Re: [PATCH 2/2] Add driver for Moortec MR75203 PVT controller From: Philipp Zabel To: Rahul Tanwar , jdelvare@suse.com, linux@roeck-us.net, linux-hwmon@vger.kernel.org, robh+dt@kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, andriy.shevchenko@intel.com, songjun.Wu@intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, rtanwar@maxlinear.com Date: Thu, 10 Sep 2020 12:35:17 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-09-09 at 14:52 +0800, Rahul Tanwar wrote: > PVT controller (MR75203) is used to configure & control > Moortec embedded analog IP which contains temprature > sensor(TS), voltage monitor(VM) & process detector(PD) > modules. Add driver to support MR75203 PVT controller. > > Signed-off-by: Rahul Tanwar > --- [...] > +static int mr75203_probe(struct platform_device *pdev) > +{ > + const struct hwmon_channel_info **pvt_info; > + u32 ts_num, vm_num, pd_num, val, index, i; > + struct device *dev = &pdev->dev; > + u32 *temp_config, *in_config; > + struct device *hwmon_dev; > + struct pvt_device *pvt; > + int ret; > + > + pvt = devm_kzalloc(dev, sizeof(*pvt), GFP_KERNEL); > + if (!pvt) > + return -ENOMEM; > + > + ret = pvt_get_regmap(pdev, "common"); > + if (ret) > + return ret; > + > + pvt->rst = devm_reset_control_get(dev, NULL); Please use devm_reset_control_get_exclusive(). regards Philipp