Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp466185rdh; Thu, 23 Nov 2023 08:38:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7OLvh63T6zpwoL90bLCD6VRvdAu8Z6w4m9mkrZxuupTn6qz3rbBIZAlVd3s0r/nG22518 X-Received: by 2002:a17:903:246:b0:1cc:5a65:c535 with SMTP id j6-20020a170903024600b001cc5a65c535mr30460plh.6.1700757513151; Thu, 23 Nov 2023 08:38:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700757513; cv=none; d=google.com; s=arc-20160816; b=Nkemlt+n6ukZAwKJM2dHx9GZoL5SOunbnk2rpcg+dVf8o/hwHHy28fOQl+9g/wKZ2a fu63KDxid/mx5Y2NXqzd3WP1/ZMGSEiFGddVF8xf8MvX20VzN+wcKB7ptlccaJ6Rnuc9 F8XN3geeF6pDsIbICa4VkQYQcP2onDW942EwqKiaLr/Dvwk2y3Q3CAKRsOwkaRDuC1ON 1miccUOAlNHNOUd4hBF+H+FlopYkamAo9gap2lCqmnD5NcwonMdm7Nte3nyGfVU/ce5P auImkn8XLylFA2ZyMXXy6VticpG8rAOfGBR/BVBik/UvSh/e2DL+bJRmRIp+AyKtUSMB ySXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gnDq5Rb4el1Yt/5M3SFJnxlD/XUqRu/sdEp2M99vQK4=; fh=k5yM6GttLaD1I89rqziztGhEW5bXD3M2qrh1W0YaLm4=; b=OhRs7vBt+RH4OV7ZUZkVobQWPfYvbD0xa7KFNYpfIRNknSmCqg5d7nimeClOWwO0p6 o1GTTQxfNsRTcWvsfrhu7kSOPC/wAgsizTJe2wFpX35lMdP8lWMnxqPcXhs074UXpx7s Dd8NvRbhfDYyMmLQFJu9rHXqcJbshT9IG2yaOM45zbMsi1FdcoUXKJk7JWdkFjukF1p7 nxrYhOQzZHpBmSSi3c6zKVuwnlSai6wTWAETxmdQJRyJmpoOIwfpAprT0s83n+BjDdo7 Pnx36qXeK5XgVISyZb0839RoPe9aGtA+yMJIxbZgCcs893BO4upTaidGJPK3au9EPbt/ lg/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WsbgZ+8f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id j6-20020a170902da8600b001cf7d7b941esi1467865plx.300.2023.11.23.08.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 08:38:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WsbgZ+8f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id EAFD78066771; Thu, 23 Nov 2023 08:38:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229526AbjKWQiQ (ORCPT + 99 others); Thu, 23 Nov 2023 11:38:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjKWQiP (ORCPT ); Thu, 23 Nov 2023 11:38:15 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21B37DD for ; Thu, 23 Nov 2023 08:38:22 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B668C433CC; Thu, 23 Nov 2023 16:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700757501; bh=tDedXJ4tnaGMs3ZTX/pYA5ErQwaoQ9VfB/MU8vDEhKA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WsbgZ+8fTYYujkEj1M5p0m4erPLW64Ku483nH050cih4Iup/Le+FsNJuo8wxh39qj idzstqs32DolW3/mZzmDCIDKu21a/KkaNvSxzxk9KumL/2jHwtiJs5BuxsbI//gwxJ fT+09/3nDeb3YiNjHmLwJDzVzAUzGYuyVdHLw0v5E5L3AU/mAOFSUsuMS0xsF/zKQ9 tzgoSXZVyVVLM6iPRiIPG2BH0qZNQSeHeLWUXPd/Fuc1Z02m92nbeDPwMMqCtMqXi4 IO2PmgTCbs2ThLftcJjdJg7V5PhL9ypqCcygHhkl1UQU8L0qay4rp5VhY3PLkQp79r xJvnJ0BeW0rgQ== Date: Thu, 23 Nov 2023 16:38:16 +0000 From: Lee Jones To: Dmitry Rokosov Cc: pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, andy.shevchenko@gmail.com, kernel@sberdevices.ru, rockosov@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, George Stark Subject: Re: [PATCH v4 06/11] leds: aw200xx: add delay after software reset Message-ID: <20231123163816.GG1354538@google.com> References: <20231121202835.28152-1-ddrokosov@salutedevices.com> <20231121202835.28152-7-ddrokosov@salutedevices.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231121202835.28152-7-ddrokosov@salutedevices.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 23 Nov 2023 08:38:31 -0800 (PST) On Tue, 21 Nov 2023, Dmitry Rokosov wrote: > From: George Stark > > According to datasheets of aw200xx devices software reset takes at > least 1ms so add delay after reset before issuing commands to device. Are you able to use an auto-correct tool to sharpen the grammar a little? > Signed-off-by: George Stark > Signed-off-by: Dmitry Rokosov > Reviewed-by: Andy Shevchenko > --- > drivers/leds/leds-aw200xx.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/leds/leds-aw200xx.c b/drivers/leds/leds-aw200xx.c > index 4bce5e7381c0..bb17e48b3e2a 100644 > --- a/drivers/leds/leds-aw200xx.c > +++ b/drivers/leds/leds-aw200xx.c > @@ -321,6 +321,9 @@ static int aw200xx_chip_reset(const struct aw200xx *const chip) > if (ret) > return ret; > > + /* according to datasheet software reset takes at least 1ms */ Please start sentences with an uppercase char. "According to the datasheet, software resets take at least 1ms" ^ ^ ^ > + fsleep(1000); > + > regcache_mark_dirty(chip->regmap); > return regmap_write(chip->regmap, AW200XX_REG_FCD, AW200XX_FCD_CLEAR); > } > -- > 2.36.0 > -- Lee Jones [李琼斯]