Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6586474rwb; Wed, 18 Jan 2023 07:03:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXtaE2QmofIDoNPhjHuTW9+LcaGYYBXS1LROY3M4B3RqtGDwiLrp+kMXzRK6RYLdK4jzP43i X-Received: by 2002:a05:6a20:6d22:b0:b6:8476:ef72 with SMTP id fv34-20020a056a206d2200b000b68476ef72mr6567306pzb.36.1674054237108; Wed, 18 Jan 2023 07:03:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674054237; cv=none; d=google.com; s=arc-20160816; b=Ci0Cc9qsnwY3ex8k+z6R70Ea8duQ4f6qVowlzVrNTiuajDqg68VxAXfA70EjnxY8Td jXBx+AUxyU6/JXmeNPy4yMsI7NOStmqjZKGj38a/+T36B72MqMv9jplFLHm6tQM2HK3f cEcgZRaKwP5m78GNXMtD0cBasLTrELirGlZEs7HI/YliFGokwsjwOtiOVknzrjPIrhFh Ovn4ORrsB2qwp224V5VqRparmAwSHYGVpDSZpQgRbQmcNYl/x9laMAOQHDM+5opJP5xs 5GoydugcTb6DiMQRXJbAs0O4r+doc7cf+id2aq3DMs5NsT9VvO7gRsZM5K0kthC2FG+G zrAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bNS6eiGHbygAPEjwKzCdhJHEUCYd2KE+a83PDdTHehk=; b=C/9sjOh7rGZZfYWOMbmKJ09xEF7DlziKHCr63cILdQTRfqeY2qIBVZuuRL8Da4n2XR tQ/bSA1LNLgNr2XBvN6jeKg5MckSfVBlev0Vb7JXqoVlUKHG+3SlhiYC6MZQsKWUOu2x BZD56VqhP7t91e2bgE7+//dT2m9UcfRcKSaQMVyO38pMqV8rhGdcctfpKAcHdXEhX+IM Ptt979q9nmGbmdiC42ARLVJvc/sy0Fhzz/WfPB2r6vT4RfpvAQG/bfOjSriUvgGW4ka2 7nNA9XTFEyQoVbMvWoVggPZ82En6oS97xKBSa+D7QLy8jJ/d65YV79IvRit4zxL4YF0Q OAHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=XQz8nBzO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a63df12000000b0043ca0a1f7dasi36702279pgg.674.2023.01.18.07.03.50; Wed, 18 Jan 2023 07:03:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=XQz8nBzO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231503AbjAROql (ORCPT + 45 others); Wed, 18 Jan 2023 09:46:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231496AbjAROqP (ORCPT ); Wed, 18 Jan 2023 09:46:15 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97BD95D7CF for ; Wed, 18 Jan 2023 06:38:31 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id s3so11727836edd.4 for ; Wed, 18 Jan 2023 06:38:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bNS6eiGHbygAPEjwKzCdhJHEUCYd2KE+a83PDdTHehk=; b=XQz8nBzO6ssc0BhM0mHTU4Ee9cGY/nEF9rDFzsVgIw1SJeNYIigeUYr5c/RHFjCQh3 mO6Yh0EoHw5NR/lWgI3NGtZbHwUvAg5KiyAOOv00OT0yLA/ajYqJ++jHEkg/pc+zO81S cf9EBiXWpLP2i2JYAg4pjh8Lca2+9gxAvzIu2TgJg0f/k6F8n6IIAmoyHqKygdtUmjza C1tqTtmh7MfSy86n8BMT1bXOt2Yl3cfkCDwdbe4AJifEZMfhC3bnpwXSeWfgnozVGO6g 3AlrVRnuntM6C8rMVDq51hACHSIot1L4aOPESjBWD/tRxsawdKZtBQx5p4ubeqyyQ3oE ek6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bNS6eiGHbygAPEjwKzCdhJHEUCYd2KE+a83PDdTHehk=; b=r+lATY0ZfDVvIFNqK+zabXQmNcXlIZ5rq/GwspPRZJfGeJen42xpu92fib5W7MOC6d DHdB4P9ZSBtEmMjpvwRaYI8N22ZNZUtVCU6E8nHiS6Jng1jyInXarwbLRwLVNE9ygT0q egD6y5K62tp5Var3MbTlGSaL1/ycKF5HzTgjKnWuWYNrMjpG3/cu9VKPJ1LA8dQQVUAN VxyGzWBOJhPzZgg7Rxxpzy8DCfMyWVZekhH9AwhnFQJ+bdXvK8+W/yOOyT3yoliDRSFu i0e/ELtctNaJSqz8RSltywjcAu+4MMdJR0SU6YM6qX27r5FLoGGbu83wWx50frG1DQjF Ci3g== X-Gm-Message-State: AFqh2kpz4s9Y1e3rndlqO9AsMz6VdvXXntIUg/jkGaY7f0Ef/9nPYf9e UiOlhmwtnkux9+sa2/5awCoEu7V4gHGPK1Y0oJF/8Q== X-Received: by 2002:a05:6402:1:b0:498:dfe5:49aa with SMTP id d1-20020a056402000100b00498dfe549aamr561038edu.398.1674052710126; Wed, 18 Jan 2023 06:38:30 -0800 (PST) MIME-Version: 1.0 References: <20230112152855.216072-1-bchihi@baylibre.com> <20230112152855.216072-5-bchihi@baylibre.com> In-Reply-To: From: Balsam CHIHI Date: Wed, 18 Jan 2023 15:37:54 +0100 Message-ID: Subject: Re: [PATCH v10 4/6] thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver To: AngeloGioacchino Del Regno Cc: daniel.lezcano@linaro.org, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, james.lo@mediatek.com, rex-bc.chen@mediatek.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry for forgetting this comment. > > +static int lvts_ctrl_initialize(struct device *dev, struct lvts_ctrl *lvts_ctrl) > > +{ > > + /* > > + * Write device mask: 0xC1030000 > > + */ > > + u32 cmds[] = { > > + 0xC1030E01, 0xC1030CFC, 0xC1030A8C, 0xC103098D, 0xC10308F1, > > + 0xC10307A6, 0xC10306B8, 0xC1030500, 0xC1030420, 0xC1030300, > > + 0xC1030030, 0xC10300F6, 0xC1030050, 0xC1030060, 0xC10300AC, > > + 0xC10300FC, 0xC103009D, 0xC10300F1, 0xC10300E1 > > + }; > ...what is this long list of commands? > I can not give an answer for that. The LVTS programming guide is short in explanation. It just gives this code sequence to configure it without any explanation.