Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1750832ybb; Sun, 29 Mar 2020 12:24:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsajJqhESiAOV9m/AEagsgGPnhBVigYVl+BI+avphKBgPY5VPvjJrfUqMRvkY0LZ1SEi6Jm X-Received: by 2002:a9d:6354:: with SMTP id y20mr6705017otk.171.1585509849775; Sun, 29 Mar 2020 12:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585509849; cv=none; d=google.com; s=arc-20160816; b=MH7BjL/pm/leNI2d6QT9V1cQfN6AtQtoL9tJb4jqXoewovBt0AFLLO+nAztyx+u149 6DSc2Ph6EQkLabXsMNdrbHCmzG+A2A56GWAMhlOCGkBlakN06tvs/UsFDLtaLLhx3dND w4sBw2THDuXA8pKJ0Vvdt8tNgjqs0VA5t3gGrgW/PgCNJ7EERfUEVQ0/UtktqzGmIeC+ GPFe/7DAz8AHsaDBJagX+xzlXm1OqDVP36Ecz2Rh317HHaqOqf8Gma+Bji9VUh5b22cq f9wJNh26oCaGLq+HmZ7kX4BJ9N7oP6S6Fiv7CQJI4WrtQcCJuSPObW7KuiMrF+sQvZZc HVlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=GYAAzBuKQAmuhTQi5C5YwP3g4YILwzAZnXWzrjURdgA=; b=IsBZDEtV3P6vGZ756mqthBcrpwEEOosHML+WzB2XLlIyDrYAVfjUYtVqPpNoGUNzkO COimVwlrLS+PNm3u6UhgwrbAXhLlIiZFIF252v3ukf5c/razJtfGF/JLAKrof+u/1pal 3co1Za4aqcSsQ5kTc25NjgHhfqmQ1Iktr/FwYRBIClwSulv4k6niKlGLUm2MVLisMQl8 3e8Yi8X6LPe7zTP+zM6oQ5+rwV8TAvr6Ass671SF8wGcTz+YdhbFWSt3ii/XFTg2db26 sAsaN0u0wgbYEzF9zupFnqi0dXw4Xx1Km6hUJf7PByHOnZB9mu8BVZqhEshheN/Vvabs BXFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KwZrTONm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12si5392959otm.3.2020.03.29.12.23.53; Sun, 29 Mar 2020 12:24:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KwZrTONm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728508AbgC2Syh (ORCPT + 99 others); Sun, 29 Mar 2020 14:54:37 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:38445 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbgC2Syh (ORCPT ); Sun, 29 Mar 2020 14:54:37 -0400 Received: by mail-lj1-f196.google.com with SMTP id w1so15611264ljh.5; Sun, 29 Mar 2020 11:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GYAAzBuKQAmuhTQi5C5YwP3g4YILwzAZnXWzrjURdgA=; b=KwZrTONmO9AAzkVIy3lPGJF74pPun1ptwTKAhfFAfVbN8oLzBIqCJmwn+y1EanxmYA Ewd+YWP5eumUUEa2FM2xe2toh8PTmLvR/tokOsHx69LpezfF1+PX0ZJbge9w0nlNKpuT ERpaQdkya6A2z+T4XV0XhuVxOXvzzqv5v5BfzLr6piuJPdpjciPr3ZhfO2wCEUjBlZRo W08jvHrxE0SDknXf/O85TfKP5v+NV8ILxzgqz0dkgO7W/X4fyUNlXwEj1KiqLnq2032s 7Ch9fkIu1RQjTMhz3uTMXNef3ijKT9yyOsA6aw380u+mNoLVn/VJR4C+GHsf2VMsFXJf 7zWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GYAAzBuKQAmuhTQi5C5YwP3g4YILwzAZnXWzrjURdgA=; b=XATnmBLsfw4VTl9xuBhUZNI1BTCiAy6xImcQ6il6o4raylkU4QXcxZSmDySgdBiI5V wxlfhiCVLJchh2ZFmeSGznd9RbUPwdfZubGJpc5rFhSwGK6RhVQiaucqfBoAhsx8/ZQM Uq1KtRnA6MwuGylt5n6t9w+T92f4iSXKgNEgbYJ/VoYU1jRpeLjC6uQC1UIidqyFtLtn pDMVpJxmjs3BL1MyzMs5LGQgh4seT5mt3sFI1dTic2paIXwOYUFVEKOeNQdmpcWfD9f7 niSYll4ZBA8oaqn4kJ7OwDI0bOYGj8JT7PpZg52IJClpTTvUKOPViZt/LBKJIlrhqkvI IBHQ== X-Gm-Message-State: AGi0Pua82gbpvfIcxybTh2CeifiadgBw/0QR5wXtcuQDxETH4qC/OJqD RvkyZPli+bh4+nxgAEeCi60= X-Received: by 2002:a2e:a0d3:: with SMTP id f19mr5050777ljm.117.1585508075211; Sun, 29 Mar 2020 11:54:35 -0700 (PDT) Received: from [192.168.2.145] (ppp91-78-208-152.pppoe.mtu-net.ru. [91.78.208.152]) by smtp.googlemail.com with ESMTPSA id n7sm6653891lfi.5.2020.03.29.11.54.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Mar 2020 11:54:34 -0700 (PDT) Subject: Re: [PATCH v9 13/55] Input: atmel_mxt_ts - add regulator control support To: "Wang, Jiada" , nick@shmanahar.org, dmitry.torokhov@gmail.com, jikos@kernel.org, benjamin.tissoires@redhat.com, bsz@semihalf.com, rydberg@bitmath.org Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, erosca@de.adit-jv.com, Andrew_Gabbasov@mentor.com References: <20200325133334.19346-1-jiada_wang@mentor.com> <20200325133334.19346-14-jiada_wang@mentor.com> <672615bc-adce-213f-9e44-864163c0a770@gmail.com> <85a74259-6f52-34a0-af34-0217a088cc5b@mentor.com> From: Dmitry Osipenko Message-ID: <20d8dbc3-ee0e-95e4-6d33-2ed10c0268c6@gmail.com> Date: Sun, 29 Mar 2020 21:54:33 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <85a74259-6f52-34a0-af34-0217a088cc5b@mentor.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 27.03.2020 14:09, Wang, Jiada пишет: > Hi Dmitry > > On 2020/03/26 4:05, Dmitry Osipenko wrote: >> 25.03.2020 16:32, Jiada Wang пишет: >>> From: Nick Dyer >>> >>> Allow the driver to optionally manage enabling/disable power to the >>> touch >>> controller itself. If the regulators are not present then use the deep >>> sleep power mode instead. >>> >>> For a correct power on sequence, it is required that we have control >>> over >>> the RESET line. >> >> ... >>> +    data->reg_vdd = devm_regulator_get(dev, "vdd"); >>> +    if (IS_ERR(data->reg_vdd)) { >>> +        error = PTR_ERR(data->reg_vdd); >>> +        dev_err(dev, "Error %d getting vdd regulator\n", error); >>> +        goto fail; >>> +    } >>> + >>> +    data->reg_avdd = devm_regulator_get(dev, "avdd"); >>> +    if (IS_ERR(data->reg_avdd)) { >>> +        error = PTR_ERR(data->reg_avdd); >>> +        dev_err(dev, "Error %d getting avdd regulator\n", error); >>> +        goto fail_release; >>> +    } >> >> Hello Jiada, >> >> The new regulator properties should be documented in the device-tree >> binding. >> > I will document new regulator properties in a separate commit in > v10 patch-set Please make sure that all patches are added in a correct order and that they at least compile. This patch doesn't compile: CC drivers/input/touchscreen/atmel_mxt_ts.o drivers/input/touchscreen/atmel_mxt_ts.c:34:10: fatal error: dt-bindings/input/atmel_mxt_ts.h: No such file or directory 34 | #include