Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp257839lqd; Wed, 24 Apr 2024 00:58:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWa8Y7K0WK1vEGslP0Stgahyjcv/jQD9C56yaHkGiN1Vht0KIoAZoAsgiIHn6E4XydABrP2RYP+0yiTjgRO+bg4csa5M7JLQgmC1Bh+4w== X-Google-Smtp-Source: AGHT+IGbr6gl65Bv/jbXduePPW/Wfy75F1BqWZjzyF+g3upw9Jw+PSmMS3z5YnkpEHWItIQVhdua X-Received: by 2002:a17:906:4acf:b0:a52:2ca5:f701 with SMTP id u15-20020a1709064acf00b00a522ca5f701mr978377ejt.48.1713945493210; Wed, 24 Apr 2024 00:58:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713945493; cv=pass; d=google.com; s=arc-20160816; b=dr+xP89vGhVhRkEA2iDx/u3PVuqwV01uHl5y/vBaZaJTRCWBtC45VYxoTlnugaJ/Xs 5QJaDVR1iyo0WjsWkd33AcYCiAi4UWWLpFfwJQbqxlwck4yWIuzKxyRiiOhRpfmpayje vE3aBUPFX1LHEq8mPuJ9692nktlDrY/DcS7UuMGFApa4X8xLiiDGzFgvYXlr/K7uTLuC z3+zpL1VlgF4m+6c6Z3R9kmFm6YDARktdNPcP1EowDyVk2yI3eY++3d4FJiTpyYjl0p3 NvHaWTRHzYvuIrJO9I3/bl9keiIU9e9UYy89P9kqLGkuvxtW/JHVdTJKDK1J+xTltLT1 539w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-filter; bh=MMX6QiCqy4Wkoh4oQ7dRjKfmKsrE2YLbEXXPVkHkon4=; fh=ZJaAAPz/2xvTgOUXtOJFtq0fBdq+gI/hqbVGNjetV5k=; b=sI0LETVA69BMjRNJ3NnN0zDbqi9lR68zfE83YvzlrUK8UMjasR4pdFiIXhXj24j7Li ElYUjRfhNVz79tElEPf4aJhEVd2cbMdc3y6S7MxvUA6amyazf0QOMabN9hxID9RB4PnX scrWZJ5AYQGtTkPtz4HJ2QowUErXxSMfFnub8yBmy8Ia8K87wKSqveYSJ+YE1QfyMkCT wE2Q/iKMHnaoDBYMVa5hbriQUMujRtcxQxLWiSO4SRdEk2SwG/NLmBOgH9xIOWYT+qIl 1UuWwACqk4Kq/oNyjw7ewgStl1eLO6c0SKnVTYCjIzNGIMYO62IetiJ1GYmpHVfSr5bR q1KQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=knpp7o+r; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-156513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bt8-20020a170906b14800b00a51cf7066cesi8302806ejb.482.2024.04.24.00.58.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 00:58:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=knpp7o+r; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-156513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7395E1F25B18 for ; Wed, 24 Apr 2024 07:57:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70D00158210; Wed, 24 Apr 2024 07:57:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="knpp7o+r" Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71319158204; Wed, 24 Apr 2024 07:57:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.18.73.165 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713945463; cv=none; b=rR0dIenwWzkxIMbZ2jrhI9+lMfVECvsSTc4puz+j2SmH37WfemgSc41dUv+CuJ/VDluTUnxnV6qLOUfnysAhptvqkJiJs0l23pHGK4+mbBR9370mxbjBzBpoS6hs+BhP4S5lj3IT1I/hYaaCb28AmS5KhlcFJynjRM2y8AUBY1k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713945463; c=relaxed/simple; bh=4rtVE0X0W+VYOde9xnxiY6Ua/MCnujHrvFC8pnUPkTo=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=fSlVO0f3lXGuJyHUgmzGWkWjPZJniUOGeU55lwSUaZuWa5GWtGxWsKFWKflarJHsf1y9lmk6nNJRJPDPCbL5k7GqBcuAHQlmzPIu7Thms3NoOHYOKnRtL9+zAc7zzjC/rkZO8VEe4MNn+j7EisXHj/6/Q3Q4d4TI93dchlF5GoA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com; spf=pass smtp.mailfrom=salutedevices.com; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b=knpp7o+r; arc=none smtp.client-ip=37.18.73.165 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=salutedevices.com Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 73A87100014; Wed, 24 Apr 2024 10:57:35 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 73A87100014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1713945455; bh=MMX6QiCqy4Wkoh4oQ7dRjKfmKsrE2YLbEXXPVkHkon4=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type:From; b=knpp7o+rlSmXPXWuf4/yNNp4X85+CfGDCqeqeTc/IUKAVW90Kc80z8RRcRYbcRpWu GbB3ujXyBOWT3ORfzPNjenLJe4gJ6FXgHZnTo/BN64T0LUlHOD6mAad9nuRtIZWK8J XNIXSOAHiUu+3/jhnR4K74raRpTobcrxVFHTjyRNAgjbkDHwoiFh75X6RTRCv1Cl5N +VaAJU6wgM91mECx5nc9PcqY4Edlh8Pd4Z0NqIHbKifxDsCQfy3p5ehI1X2HgbrDo1 GbiGwlGweiNmkH46e2JYvLqixEjoD66BANg10YJa1cbPJRCXRMxlzaqvsKGkRAfqCJ 1JjZPFbyUHivA== Received: from smtp.sberdevices.ru (p-i-exch-sc-m02.sberdevices.ru [172.16.192.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Wed, 24 Apr 2024 10:57:35 +0300 (MSK) Received: from [172.28.226.27] (100.64.160.123) by p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 24 Apr 2024 10:57:34 +0300 Message-ID: <6d34b236-4067-42bf-a6f7-d2f3b3270e3b@salutedevices.com> Date: Wed, 24 Apr 2024 10:57:34 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] pwm: meson: drop unneeded check in get_state callback To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= CC: , , , , , , , , , , , Dmitry Rokosov References: <20240423161356.2522636-1-gnstark@salutedevices.com> <20240423161356.2522636-2-gnstark@salutedevices.com> Content-Language: en-US From: George Stark In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) To p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 184892 [Apr 24 2024] X-KSMG-AntiSpam-Version: 6.1.0.4 X-KSMG-AntiSpam-Envelope-From: gnstark@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 18 0.3.18 b9d6ada76958f07c6a68617a7ac8df800bc4166c, {Tracking_from_domain_doesnt_match_to}, salutedevices.com:7.1.1;127.0.0.199:7.1.2;smtp.sberdevices.ru:7.1.1,5.0.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;100.64.160.123:7.1.2, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/04/24 05:07:00 #24952670 X-KSMG-AntiVirus-Status: Clean, skipped Hello Uwe Thanks for the review On 4/24/24 10:19, Uwe Kleine-König wrote: > Hello George, > > On Tue, Apr 23, 2024 at 07:13:55PM +0300, George Stark wrote: >> Drop checking state argument for null pointer in meson_pwm_get_state() >> due to it is called only from pwm core with always valid arguments. >> >> Fixes: 211ed630753d ("pwm: Add support for Meson PWM Controller") >> Signed-off-by: George Stark >> Signed-off-by: Dmitry Rokosov > > I'd apply this one with the following changes if you agree: > > - capitalize "drop" in the Subject line > - s/get_state/.get_state()/ > - make "null" all caps (i.e. "NULL") > - swap the order of Signed-off-by lines to have yours last. > > Alternatively send it in a v2 together with addressing the comment in > the second patch. I agree with the proposed changes and I'll clean it up after myself in v2 > Best regards > Uwe > -- Best regards George