Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3147699pxb; Mon, 18 Apr 2022 17:16:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU/1P+FeHRfMOhhHTJ01K6GVMaRWppY4wl8oA11iCVcZCnuYpLIkshqE89kFozIVi2onO/ X-Received: by 2002:a17:902:f789:b0:156:5f56:ddff with SMTP id q9-20020a170902f78900b001565f56ddffmr13581618pln.116.1650327371937; Mon, 18 Apr 2022 17:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650327371; cv=none; d=google.com; s=arc-20160816; b=nw+qB/b+Y31rSBmplKfSzVjnjyGV1J3LdbhmTkYq1y89IYN8D/JlRJEDvoqKjej61q CRsgqdzs7xA43piNMN1Ggh2G2BtNX750f2JJvpsdQyZt4z3cnAm0had68WZZcjI2ZvDj baPf62Gd2fcn1bHJOtES/2Z2ibr7LcYAxD7VDKqXH5qxJcCz+KGUs425YuMMpqPlwe2R Sn/MENT57rAZn8LQAcQ6UXCMMmPOWJKaJdUSGnSS7+8QQHFQi/LWH62kI3cwMhh1TCYy PZuPrTXEZHQwV1+5qR8vdWXMBDe9/grQQ8JAE2wNZ6BKy1+BDWLiv3+XILEuf5kWlteq h9dQ== 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=jddOeVYDWIlo/cj/yYFFUXuXoX8x2AdqCL3TeKvdwUM=; b=rJUWF6qxZuKes85YmIej3z8GDj3WNi0bQbTZHkFfD0xVb0WeR41hPuRO3aeU5TXRhn I/dbSj4cZb+NZD2PrFKlGyrWBJfcCKx247Ou0YHVShLzMris5t4lVa5RSF1/FYMUo0oB e7X+u+z9zddCdFI/cEscwRrrghC+1WvXtf52gG4HZmvGyqSFGXg1ElmRga0fLrtc0DqE 0gfavFLG9g+RmPGaa4cykfn+gSITKz51zGsazmM5C+3/4oh6SWPPGotygzKeYCeipIzl bEPTarbBh9DlMxw/zRk1f4XuPHFtVRiRNxfpV0tkhPWzBMDrByFo+q8zuaXNqicBORAQ c/Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZNw8LTq4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170902a60f00b00158ccd9ed4csi9646782plq.224.2022.04.18.17.15.50; Mon, 18 Apr 2022 17:16:11 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=ZNw8LTq4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236112AbiDRLln (ORCPT + 99 others); Mon, 18 Apr 2022 07:41:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234797AbiDRLll (ORCPT ); Mon, 18 Apr 2022 07:41:41 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E2BE1583E; Mon, 18 Apr 2022 04:39:02 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id i27so26349524ejd.9; Mon, 18 Apr 2022 04:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jddOeVYDWIlo/cj/yYFFUXuXoX8x2AdqCL3TeKvdwUM=; b=ZNw8LTq4Hc4QPU/VQ5Q/h8Byof5DJNhMrdvdRJ3UUYaEHpeHSo/DfksepFIwKeic79 POTGJWfdxHDBgh3s/mTLSyj+SeisYdPcKcwKa9O7ihwrFNnce0zsqsD50uMShZz6C9l8 MCgxNXtiJNzKjdeUomtYxYrYTuHghJ3tzX7GrscJSiMsr0Q9LQry+6F63ka0c79SOL/y 3YTji6ezy1qw7AGfFsTshYh/9srscRmTkKRB3kGlKtgkUE1vKQMwOmo4EcT1sURqFLdk tmXbB7bbmIp1het8+mJqoRI9o/prgDBmiWnCQvhf7zhyEYzBDILJCnfm6KAl4PTT9b79 ROxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jddOeVYDWIlo/cj/yYFFUXuXoX8x2AdqCL3TeKvdwUM=; b=yfSlzcCB6PSc1opV7CCho37iTRRIW2wO9WdKWVynGFk9wm2rd/lzuKIje7aqs/Th6D TpGLBbnQDqu7na8f+6uEu0uJcGOPnUtJPJYzvu6m2VA4/ynSagymJM2A13njHGjn4iYQ hTpmAlRDtKOjJd15wqe2KzsvMyGVTStS4vabBvKBmcDVvDypKcGLN82w7pFhM3zxTIwp g1/9hisQZ5VyH2lyftI7dyKLSeY3iLRuB0ZzcD2XrGqdvD1m8snS3qJj5oc1VefX9eUR jqG+x3NYWQJ5fQUZMSKGYyHijzgiBRT1oF4XqBuCVSRwhZhwj8739CnQ0RGwD97jlQ8J /CZw== X-Gm-Message-State: AOAM532uuo2ZASHnQzWs7L83xMRcD6cAbAKiGvTb9FX7w+cUpLYDQB8+ iAKcbdZNhyyPcVwUQI+K1vn9K7kluVWR5XRhmsvflDXaYg7dBw== X-Received: by 2002:a17:907:968e:b0:6db:aed5:43c8 with SMTP id hd14-20020a170907968e00b006dbaed543c8mr8724866ejc.636.1650281940410; Mon, 18 Apr 2022 04:39:00 -0700 (PDT) MIME-Version: 1.0 References: <20220417165208.39754-1-schspa@gmail.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 18 Apr 2022 14:38:24 +0300 Message-ID: Subject: Re: [PATCH] gpio: use raw spinlock for gpio chip shadowed data To: Schspa Shi Cc: "brgl@bgdev.pl" , "f.fainelli@gmail.com" , "fancer.lancer@gmail.com" , "hoan@os.amperecomputing.com" , "linus.walleij@linaro.org" , "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "opendmb@gmail.com" 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Mon, Apr 18, 2022 at 6:07 AM Schspa Shi wrote: > Andy Shevchenko writes: ... > > drivers/gpio/gpio-mmio.c | 22 +++++++++++----------- > > include/linux/gpio/driver.h | 2 +- > > > > You can=E2=80=99t do it for one driver only. As I told it will require = too much of additional churn to make this to be series. > > > > It seems I have misunderstood your "too much of additional churn". Can > you explain it? > The gpio-mmio.c and driver.h here are the basics of other gpio > drivers. In my opinion, these two files > belong to the basic code of gpio, and functions such as bgpio_init are > declared in > include/linux/gpio/driver.h and implemented in > drivers/gpio/gpio-mmio.c. So there is no churn. When you change the member of the data structure, you have to change all its users. You can't change only one at a time because it will be a (compile-time) bisectability issue. --=20 With Best Regards, Andy Shevchenko