Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2129985rdh; Sat, 25 Nov 2023 15:06:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/KZFv5b0st6xcBC9ZM7gM4k9n9it2R9l+ZyBc8bl4R+c/YshgFEmCZvBTSPLfFc8xh1HX X-Received: by 2002:a17:90b:4b0f:b0:285:3444:94d2 with SMTP id lx15-20020a17090b4b0f00b00285344494d2mr8691875pjb.9.1700953612501; Sat, 25 Nov 2023 15:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700953612; cv=none; d=google.com; s=arc-20160816; b=NkX2BA0lzr3x+OdyHgjlBTNrqUHy4aeLNhY7EzGgyXGrbz1ia9NXhGD053Cykwi3Mw g2uSoECFR93cBlfG4SEyBYQf1Ln38EZ/hJwAE9PSllNDAYjptSh+/o2iCn5uUXOpP7rT AO7nVZAQWriUSrXPXEHWvxpxZJzrTcUPZMdJ0uQbGGV4A6sT2Fmm/+ChtI7o5NjBBSFJ H3cFy8CanNm+xUm2oLbdHhB2PWU5tPM06srlreeACtfjLFrNdX2+afqFlvEClsJcLqcM Fzs6MkOuj9FjthsVa8Oa3Xwrgjg9YNBGaYcdf/9NzSv08awJwUZAsm+0isXvQMePBnKB Vegg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=T5t0Y/VnICe+ERJNkW/1rkcBwpPmZhdYUYmi9BmnfaA=; fh=MQHbFLpVz7aKo6q0TO1QEuU65uZXvtA7rg3ZxhXXnKE=; b=I4PS1Q9u8/g5hbldyGJyiJOw/v/iX//LrPMgZ7nkEvOERarZiCeEcB4MpKCfoRWfJC EyVdlyt0OhDUu949oQIr9tQlDqf81yVHZKq8pDsiOXtixVKxxZzzJJmgDJNNN4hLIajQ bVcm9uQWOtT/qbiuLFDlpAw+jfK4JSlx3Mx9ttcmVdXgS+lsbGUD+/TQxkEQXq0kqM/u qI+NStrIeh7HbntYuamiSxo7mgxh6UHYpOpmcqjYSIijFLbwzEG4SlhCfB6bQ9fu8pom zsR5TF3AfCxOnoIYigorl2FrO6I6NgX9xe1bNCoufUNNGlDVLW55hlqPhyFzU8ZIoxY9 +vjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JnaPy226; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id cv1-20020a17090afd0100b0028023efb800si6745893pjb.18.2023.11.25.15.06.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 15:06:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JnaPy226; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8E35A80755CE; Sat, 25 Nov 2023 15:05:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229521AbjKYXFR (ORCPT + 99 others); Sat, 25 Nov 2023 18:05:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjKYXFP (ORCPT ); Sat, 25 Nov 2023 18:05:15 -0500 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC77512D for ; Sat, 25 Nov 2023 15:05:20 -0800 (PST) Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-db40b699d2bso2636281276.1 for ; Sat, 25 Nov 2023 15:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700953519; x=1701558319; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=T5t0Y/VnICe+ERJNkW/1rkcBwpPmZhdYUYmi9BmnfaA=; b=JnaPy2260sNyY9Wf8olvqHLbnZ2VisJzyzxJIRG8BJmCpXLo6XQPn/uzXqDTG7Bmsu D7a/FoZqMqbc0qHOzXf7Hn4Vx+V/Xdnsq0eZbvXj1Mt++HQXv74Qx0yIpRcaIMlKioXm awCkYjjEWgzBfRol3+sLlUfslNS4xDI4qVqsH31PpDnoi/BbUSKi4h88NXUXkenyFEoK we0n8+KSB35JonWnbfAA0sTus4PcpqRZhOs9+PtMUCrlaTYc3T6UIDSjf3xS2AAHYSg6 rFDRhTFWAeihGvJDMp8TVIXw3c495ayNc9lw/gIf0GKrHoj8216XR+gSS7wrtsMumVdM YOmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700953519; x=1701558319; h=content-transfer-encoding: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=T5t0Y/VnICe+ERJNkW/1rkcBwpPmZhdYUYmi9BmnfaA=; b=b9gDA+0qi+ennkqoweEMTyvJPUWGpk/aaq00YLCHp4RxUIjADkPihOtTRpI86rCXfE Z92Xlui9iNqVPix+YLvIVMMfOQR0fdhHBqQ5haapGVTqQbSWK3MytQ/+NXvDNXcMBD8t O6bho6ZYrbHDHf7ytvehT7qRbafC4w5yIDSe6iTLv50rhyswBFpDG83ABNESkrpzW/+z qSwbo8So9QXF042ATbiwbhtwLS2jXe4UWjTWEzmc4WJyBWF5cAMvkHPMzWrF5NVrP8Zx p4txybHkCnKROw/25AKHgBO+k+4zUj/PucIi3Y2K87ZowSwibvKrE2PnYVUroyxe/rC3 frpA== X-Gm-Message-State: AOJu0Yxnl5ZnY/2aZgxQxN9vUBV7sBtJHcdVdQZXENrAVpR+G3dM5sgy es8LkBApiNa1FMbjPltd3Fe+GQM4Vzp7YQ8zUJK6FA== X-Received: by 2002:a81:a195:0:b0:5ca:e0b1:45d5 with SMTP id y143-20020a81a195000000b005cae0b145d5mr2342082ywg.23.1700953519713; Sat, 25 Nov 2023 15:05:19 -0800 (PST) MIME-Version: 1.0 References: <20231125-dropcomment-v1-1-15800415aae0@linaro.org> In-Reply-To: From: Linus Walleij Date: Sun, 26 Nov 2023 00:05:08 +0100 Message-ID: Subject: Re: [PATCH] gpiolib: Drop cargo-culted comment To: Kent Gibson Cc: Bartosz Golaszewski , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sat, 25 Nov 2023 15:05:33 -0800 (PST) On Sat, Nov 25, 2023 at 3:40=E2=80=AFAM Kent Gibson = wrote: > On Sat, Nov 25, 2023 at 12:25:47AM +0100, Linus Walleij wrote: > > -/* gpio_lock prevents conflicts during gpio_desc[] table updates. > > - * While any GPIO is requested, its gpio_chip is not removable; > > - * each GPIO's "requested" flag serves as a lock and refcount. > > - */ > > Perhaps provide a comment as to what the gpio_lock DOES cover? Normally yes, but Bartosz just said he is going to replace this spinlock with a mutex so it's better if he adds it then. Yours, Linus Walleij