Message ID | 20201215144230.9235-4-m.szyprowski@samsung.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3974295jai; Tue, 15 Dec 2020 06:43:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMim49ci05JIAV6GiArKIQtukziufbY5B39jxblq/M7gycB9RlkvzhRtBtYy1qsNzuTKXq X-Received: by 2002:a05:6402:17:: with SMTP id d23mr20193299edu.341.1608043388054; Tue, 15 Dec 2020 06:43:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608043388; cv=none; d=google.com; s=arc-20160816; b=RC0rkxHRLhvOWV7Ygo0c3f8NZeXob7LI4r8rS4n3Ms0O0jgit1ahgaRZeRoXaKknVr FRPaMieW3vLr/YmXboCD6GBP3Gp/ghS602PfeNn2mhRI687t7bXnhXF0vD3LNRTVQFb/ oLVljwWwCGAmxpxwxO9hCcHsFpLKfJHvj7Wej2m26VC0BdgWe6MAsS+rAE6dcNMuy3Ob SpLiPddCWAh2HTv273JnTtjSHXU4fxh/UDT7q+ijL219OgNKsdKTG0uRW0tiuHHfio4S UVM+9+0fy/+Tp9fm+QFuwuKyqgavlAyHHVsFN4b4KDX+8xdWj0YqRwXOvAWmC8j5ulgJ S94g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=niKH6BNL1ADCXiwc4ADswQfLUZeqREE5EgoAsfjsh+8=; b=eJCPTF6x7Ext/LvHn7406X8qJDX0tJ8qDmvKrZ0KLemfanh/+t7Fd/xAAhH2yiWBb2 57/3SO5PQl1dF1c0UUTxc3I6cEdHTyeE/mkvcG/3t2C6XynuuHpRsGw5LNea76KhKTgY a5K3w3xtbPm9oy4B6qNYlV60kfTp7/W+4QfqD7jtj3TSdMmawEMJ683QNQkwUql90yX8 /9iFmbSTH2LUMkrC3bGg0sBm+csQAw4yK2iTSNkNf34VjcWNc6AgFbWXF5W+YXDnrxzI YJR3441h1y2FiDgOt8OFYIJXQCssOJGgtNQLiRyRk9P4SwAP7k1idNPriR/6lwRr/cMZ /zwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=A49SQpxj; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id t6si962359ejr.116.2020.12.15.06.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 06:43:08 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=A49SQpxj; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D5CEF82998; Tue, 15 Dec 2020 15:43:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=samsung.com header.i=@samsung.com header.b="A49SQpxj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DC000829AC; Tue, 15 Dec 2020 15:42:59 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E52E382998 for <u-boot@lists.denx.de>; Tue, 15 Dec 2020 15:42:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=m.szyprowski@samsung.com Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201215144246euoutp02cfbdf7a37c9108de0d2fc988a6ab10fc~Q6uwLQ1Cp1508115081euoutp02i for <u-boot@lists.denx.de>; Tue, 15 Dec 2020 14:42:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201215144246euoutp02cfbdf7a37c9108de0d2fc988a6ab10fc~Q6uwLQ1Cp1508115081euoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1608043366; bh=niKH6BNL1ADCXiwc4ADswQfLUZeqREE5EgoAsfjsh+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A49SQpxjIUmq0hvhmf/SvLOKg+IVglxX2LztlSu4WsNjiRZRBTn65lmGDB7sH+XQ2 DNydCbj1Xxb8frA5qdkGYSJK8LVGaWaNVpK+doo9nvy3+4qgtatUlYWA0ckTR7zU6C 35Widjd7C7kY4Gw5H4esnl3dW0sXDwdxQ6PX1Jyo= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201215144244eucas1p2974afe13adbb673fe9a96ca91b09a627~Q6uuQAR590385003850eucas1p2C; Tue, 15 Dec 2020 14:42:44 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 3C.C0.45488.46BC8DF5; Tue, 15 Dec 2020 14:42:44 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20201215144243eucas1p1d1a361740f20097fd2db505c9bdfee7d~Q6utb5-C-0484804848eucas1p1W; Tue, 15 Dec 2020 14:42:43 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20201215144243eusmtrp2deda85c1f18d1149da21f41bff07170e~Q6utbUQqb2505225052eusmtrp2w; Tue, 15 Dec 2020 14:42:43 +0000 (GMT) X-AuditID: cbfec7f5-c77ff7000000b1b0-a7-5fd8cb64b6c5 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B1.A0.21957.36BC8DF5; Tue, 15 Dec 2020 14:42:43 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201215144242eusmtip2a6c21445821e0abd06283e88637d34e3~Q6us4GTIY0137801378eusmtip2C; Tue, 15 Dec 2020 14:42:42 +0000 (GMT) From: Marek Szyprowski <m.szyprowski@samsung.com> To: u-boot@lists.denx.de, u-boot-amlogic@groups.io Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Neil Armstrong <narmstrong@baylibre.com>, Lukasz Majewski <lukma@denx.de>, Philippe Reynes <philippe.reynes@softathome.com>, Simon Glass <sjg@chromium.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Jaehoon Chung <jh80.chung@samsung.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Subject: [PATCH v2 3/7] adc: meson-saradc: skip hardware init only if ADC is enabled Date: Tue, 15 Dec 2020 15:42:26 +0100 Message-Id: <20201215144230.9235-4-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201215144230.9235-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42LZduzned2U0zfiDV50s1tsnLGe1eLGrzZW i+fvLjNZrD1yl93iUF+0RcdhZYtvW7YxWkya8IvN4u3eTnaLw1M/MDpweby/0cruMbvhIovH vFknWDw+fIzzmN/5ncnj7J0djB59W1YxemxcdoA5gCOKyyYlNSezLLVI3y6BK+PDv1dMBfM4 K1ZOW83awPiBvYuRk0NCwERiZccPti5GLg4hgRWMEl09m5ggnC+MEk9a+9ghnM+MEo2vL7LA tHxcv4oFIrGcUeJc+1wWuJbVXQ+ZQKrYBAwlut52sYHYIgJGEpeadoAVMQvcYZLomtwANkpY IEzi2q7FjCA2i4CqxMnDL1hBbF4BG4mp91ezQayTl1i94QAziM0pYCvxZ+IqsJskBI5wSGx6 +ZEZoshFYt+nm4wQtrDEq+NboN6Tkfi/cz4TREMzo8TDc2uhunsYJS43zYDqsJa4c+4X0DoO oPs0Jdbv0ocIO0p0zr7JChKWEOCTuPFWECTMDGRO2jadGSLMK9HRJgRRrSYx6/g6uLUHL1yC Os1D4vGjJcyQEJrAKPFnwTuWCYzysxCWLWBkXMUonlpanJueWmycl1quV5yYW1yal66XnJ+7 iRGYYk7/O/51B+OKVx/1DjEycTAeYpTgYFYS4e0tvR4vxJuSWFmVWpQfX1Sak1p8iFGag0VJ nHfX1jXxQgLpiSWp2ampBalFMFkmDk6pBqYKqX2/cvJe/Gr3CrybU9XpsCFE2+3Asalixd// Jqy8KJwi9uWL4724Q5d8A20YnY8ccBYNCHgpaM/wsGhi+7bL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QgpY+yT8vtiqdY7Wo/IZdrutRW4833SwvX3F7E 0nFsu3dXAJf45HTruobcA69iXeZEb+PKVp+q8yZS7Aqj5ett59b/73/4+MGznWt+/FjavSv9 1dztpod55wY77trv8/XTJ7eFT41+Bsv82vp74duM61oa+bek5l1ivufdoJ2jZjDB+M6f7X2H PI8tES1kLeiv513Ns00s/Xhe+NXksynVL535a6I+tC1gm3/J2Xy+8I6Ib215fzgMlFiKMxIN tZiLihMBlwTXdP8CAAA= X-CMS-MailID: 20201215144243eucas1p1d1a361740f20097fd2db505c9bdfee7d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20201215144243eucas1p1d1a361740f20097fd2db505c9bdfee7d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201215144243eucas1p1d1a361740f20097fd2db505c9bdfee7d References: <20201215144230.9235-1-m.szyprowski@samsung.com> <CGME20201215144243eucas1p1d1a361740f20097fd2db505c9bdfee7d@eucas1p1.samsung.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
VIM3: add support for checking 'Function' button state
|
expand
|
diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index 998cef24d8..ce7ae990ad 100644 --- a/drivers/adc/meson-saradc.c +++ b/drivers/adc/meson-saradc.c @@ -512,8 +512,11 @@ static int meson_saradc_init(struct meson_saradc_priv *priv) * reading the temperature sensor. */ regmap_read(priv->regmap, MESON_SAR_ADC_REG3, ®val); - if (regval & MESON_SAR_ADC_REG3_BL30_INITIALIZED) - return 0; + if (regval & MESON_SAR_ADC_REG3_BL30_INITIALIZED) { + regmap_read(priv->regmap, MESON_SAR_ADC_REG3, ®val); + if (regval & MESON_SAR_ADC_REG3_ADC_EN) + return 0; + } meson_saradc_stop_sample_engine(priv);