Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp645732imm; Fri, 3 Aug 2018 09:10:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfmorffeYgvLYu1J4xFpLZpGwNUsMi2WTxoeB1qHylPqK7DWiQNnnQVE/pcd6WW7y0Kd2LJ X-Received: by 2002:a62:1157:: with SMTP id z84-v6mr5319008pfi.66.1533312624354; Fri, 03 Aug 2018 09:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533312624; cv=none; d=google.com; s=arc-20160816; b=kvhTMd2XMocxfD8XvqfB64GAX95PS8hXg7vZ/GVShR/FfY7OXc/LV2iyJXrmvkMdLi /WylVaQPc+XB1cAcp1TMJKSDF+6dBshcCbZIsxhaWUuy4OxU57wZN8cP60TOpdWnfNNX f7ZRKb+BRkO9ut0pm8sb7dgXqvUJZgTSFNUnELMXDoZ1/Nh0vr7OE4+jq83VUcz7ow6K ve/6KqPYIY2yl8AHpxHeMiwRrTPiMJ0xmvhw/yuo2TG+pn9/Nxojwc41eE9x5pVnJN2A f2wOsIJImwjbA9LXf33DnYAwoXDr/lSasYtNbSKYUD4bWDjTd4NiDfV3jD7qI79+ANMI vE6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=uwv4PQhMPQi1BYv69t+TREpqDKUxdwKHo5FWsyicuFg=; b=ab9R4ZGaPczD4sF2Mbtaw1sJwsqdALluLz+YsN/wW2BbXqRE+9UaHkeL3TXDN6VaHw YM9OV6GP8d4KtgrR0H2PzIIaihLQ/m2p29dgMs50sXgHRdw1CN+Fuo3gbq2bAnONwEJj p60VEhHJ9Ke5NkVSRFPZJH8vGIbRF24Tt1/UmcVf+bhWUNKH2QUW5tBp52gajeUNwvr1 hMNhyn+SWtX/IHsAsSPLkfFyekSdjPVa7GkS6VeNA3bG9rXNZbibazIq3DxRU+gtVDxY DfVDdz59jmRa5k6k/1dd6miDokOPjfLly6fNl97D8jbjVh3UJM1VnauJPpO1tnt+eRbO HRyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h65-v6si5466146pfg.197.2018.08.03.09.10.09; Fri, 03 Aug 2018 09:10:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728081AbeHCSF1 (ORCPT + 99 others); Fri, 3 Aug 2018 14:05:27 -0400 Received: from smtprelay0225.hostedemail.com ([216.40.44.225]:33587 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727128AbeHCSF1 (ORCPT ); Fri, 3 Aug 2018 14:05:27 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 638FE100E86C6; Fri, 3 Aug 2018 16:08:30 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3870:3871:3873:3874:4321:4605:5007:6119:7901:7903:10004:10400:10848:11232:11658:11914:12043:12048:12740:12760:12895:13069:13200:13229:13311:13357:13439:14181:14659:14721:21080:21611:21627:30012:30054:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:36,LUA_SUMMARY:none X-HE-Tag: cup41_4a15fe994185f X-Filterd-Recvd-Size: 1736 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf13.hostedemail.com (Postfix) with ESMTPA; Fri, 3 Aug 2018 16:08:28 +0000 (UTC) Message-ID: Subject: Re: [PATCH] gpio: Add driver for PC Engines APU2/APU3 GPIOs From: Joe Perches To: Linus Walleij , fe@dev.tdt.de, Andy Shevchenko , Mika Westerberg Cc: "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Date: Fri, 03 Aug 2018 09:08:27 -0700 In-Reply-To: References: <20180801111243.2848-1-fe@dev.tdt.de> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-08-02 at 23:30 +0200, Linus Walleij wrote: > On Wed, Aug 1, 2018 at 1:12 PM Florian Eckert wrote: [] > > + spinlock_t lock; > > I think checkpatch now mandates that you put in a comment > about what this lock is locking. Please remember that checkpatch doesn't mandate anything. Documentation/process/4.Coding.rst does have: Certain things should always be commented. Uses of memory barriers should be accompanied by a line explaining why the barrier is necessary. The locking rules for data structures generally need to be explained somewhere. So there should be some comment somewhere in the code for the spinlock.