Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2539946pxb; Mon, 18 Apr 2022 02:51:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwanPNvLH0Eq0z3f3L6ih7sG4Rp6TAzCoL41Cc5WeiRnWvpxlEQALkZW+yF4IdlSYK5BS/3 X-Received: by 2002:a63:7804:0:b0:398:1338:86a with SMTP id t4-20020a637804000000b003981338086amr9497493pgc.575.1650275483544; Mon, 18 Apr 2022 02:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650275483; cv=none; d=google.com; s=arc-20160816; b=P1q4poORVkTR5LpH+vCVzUaxF0bKpRq7UrvdNl7ffTHyjWr0Klz4bgs6rpoZBBypj6 LOBGsIrUb4Q0piPGd6xnPPYN3CzYOeB8aG0HSQvEUh4JbAF1147uHIxvwp4eBk4i0EBr gXj2h/Z3SNhe7sBrJEL0TqNIjXgrEM7MFop0/NeQ+bdoLTSwBS+GVwSvS6WA+GNOCuMo oyTQLYvIeXzFPO0fABXYX1jDwWqlaA3xymGufxRoNcs6JH6xyO3KG4aFU7JVIsw9LyMz WrQpvUbCAr4hbM7Zl/UeuAkXIrG0NpvFysIVAgrdUBQUCeSAQJyFqKimTsysXPbLOFuw u+9A== 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=tNjjyGaUEQ8lUKWlzMg1jMDbdSXdCmUFakLqiNuNiG8=; b=Nj+4yGhlzgjJZMPgUsykWyB9uYfaaAI4JYv0cGbFsMQytDi2QJKGl2rVUJWgzoUfPw JBp8TtKp1V1VzfhbtNQt7QHXP4PztFIyjzB83imYTKuhX16b2109JtYttWauHbHl7KYC 7QEu4NwiCXCQhPlW/LFmL2k1JD6r8JLC+qjb+H1inclaVI2ecUpdkX4qnq9r5AK4IYCA O/c4lsQvv0OCUxn0bKC7V23Y5ss8LNvOb2p+YyjfL79jSs5j3lb1pOJ6Q/GfqFNV4RrM LLF5qtSegRFrrLDlKftakzP6AE60pMlz1qoS5KyMdckdJ2xGRpQVMMgVbE77vzEhBRrU Tz/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mVWSz28H; 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 q13-20020a63504d000000b003816043ee3asi8249240pgl.47.2022.04.18.02.51.08; Mon, 18 Apr 2022 02:51:23 -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=mVWSz28H; 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 S235952AbiDRDKM (ORCPT + 99 others); Sun, 17 Apr 2022 23:10:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235950AbiDRDKL (ORCPT ); Sun, 17 Apr 2022 23:10:11 -0400 Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9411918B0D; Sun, 17 Apr 2022 20:07:33 -0700 (PDT) Received: by mail-ua1-x931.google.com with SMTP id f7so4406038uap.4; Sun, 17 Apr 2022 20:07:33 -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=tNjjyGaUEQ8lUKWlzMg1jMDbdSXdCmUFakLqiNuNiG8=; b=mVWSz28HnIW7UGdwHQ9Pim8IwvN/k61x7XuAbnp6HBASWmnWsgHZFnJK9SoO/3TENd qFw5XS5DkZtd2I0JG6EKulOKgQl0LOsmZ2qw9lMTT8yrUzAoojuIfpD8giPfiIO7U8+E rXqBnA2MOD919ZaSbv9a+HpqK3c30BFuHmLPvQ2zfcTnP0C8mMkxskzknziFzMS3Qiu0 A9q5GlpfUayZ9nk8ZGjJocVDuGRYc/SOWIEvOINiMP2sTPfbVv36ZxkKFHSd8EEz5awS xDGvMnYJhH+s3oPQviw6HmHV6mM73l6Ipx8WAHEuUnJ6rxH3JRsoXe6lf3k/mFgGOn71 L2Fg== 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=tNjjyGaUEQ8lUKWlzMg1jMDbdSXdCmUFakLqiNuNiG8=; b=QnpAwUz7yQxvQRl8V3G7nMx/SxrX9WyZYTPmQ6Lrv+x3k3wzvzZQM1nU1fuOGu2kBt vXl2e4hG370Xb5TO/9JMRLaBfcsp8FGA0wHwzFbyuftUw/VVD1GZ2ca0ZL35P0ZVHjLP g6c5NbVJQRmHKj3wwdYsbPwdOSFZK7dhG/m8kSAese7zPzh7popr8T1X3xPg+p+mlnrp nKUFX3qOmiIbw4QbWi0emiuGG9wNSFN21I9BOxnDe25Uq1CaMa56SG0LtDeJGY53phfs E7FE5fW4KHpw7cKgkas4YSsnsu8+KMWOIkUCViXE6+UZ4KFrsF2q6L5XKdBxdg3Q1YGB ZUag== X-Gm-Message-State: AOAM533raX4o0q2hZSDMKAkabOEm8OSBNoXsOXknsD6jSU0JSxN9b0PZ iWKjHNYx+0CenmxAm6cWdxeH0JnFgbrs3jxEwPbMShpcKQvIcw== X-Received: by 2002:ab0:6f8f:0:b0:35d:5045:46c4 with SMTP id f15-20020ab06f8f000000b0035d504546c4mr1856021uav.116.1650251252646; Sun, 17 Apr 2022 20:07:32 -0700 (PDT) MIME-Version: 1.0 References: <20220417165208.39754-1-schspa@gmail.com> In-Reply-To: From: Schspa Shi Date: Mon, 18 Apr 2022 11:07:21 +0800 Message-ID: Subject: Re: [PATCH] gpio: use raw spinlock for gpio chip shadowed data To: Andy Shevchenko 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=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Andy Shevchenko writes: > > Changelog: > v1 -> v2: > - Reduce the useless stacktrace. > - Split to series of patches > > Changelog usually goes after cutter =E2=80=98--- =E2=80=98 line. Besides= that you haven=E2=80=99t compiled your tree just after this patch. > Yes, thanks for reminding me, I will fix it by upload another version of patch if there is no other problems. > Link: https://lore.kernel.org/all/20220415165505.30383-1-schspa@gmail.co= m/ > > Signed-off-by: Schspa Shi > --- > 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 to= o 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. -- Schspa Shi BRs