Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1448936ybb; Thu, 9 Apr 2020 02:18:14 -0700 (PDT) X-Google-Smtp-Source: APiQypKnFOow9YEF0XF9JNYywgN0WRqCN/QJNwVmdsHR4d8g1XhXiqnVsNky4ZbFpsUGnbmF6sPz X-Received: by 2002:aca:4286:: with SMTP id p128mr5352935oia.29.1586423894106; Thu, 09 Apr 2020 02:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586423894; cv=none; d=google.com; s=arc-20160816; b=eBO/fbKwLahybr3hyQKDqz7P3yF2KsbvtCDJA235K3WReM0K3khl/Dg2ccfpYPqWjO AKPYxmSA6xjqQUv0R69874y0Wp8MoPhF8NkHdF81GthU6g6UijPEOqJjV11Jin7qVwqT Jubs/sCFRvp/EfpO51IvafpRwWy0HWc0Id5ZMhxEZlbH7i59n/hR/R1W3K+RmauSdvXP sDauWYUDsO1jNSYk+KRQNtgMVpyU71ra+hcp5cx1qdEzbFg6jJeig2FactcW1bu6QCjI S/5U+HKs93SYjaam/finAeL1HdZ5d1Ai4dGtrA1zGIr4+BplnSPDycjjSWDxqlovSDJZ 9uZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=fJ/iKkF5OdTuDgz+7DSCHLG3qodqRU8X+JG0msgGtnY=; b=CGrq2K6wnz4cfF+iN2ZoMLdvN+gvMhIc53GiFeRRBTMODDOeOeoeWIXb5aMX5kMLQU LLp5zkkwejpFL1y1ip/RdwK/Zsw9aKjS6CGGCqlJUh6RNDSOJsb0garlLMXiO0alQ+7u NFqqNQ8kvGeb+w24n5xCVl/Al9PkjGOKg795TkaUl/m3/gCovV4y8sJon0WC7Br3DK4F s98PrbWZUy7sedlAkiF3cPdJ7ZiBA0toOqsVxy7fXbU2wv4nhyK32oFywHwaeaT1GKte zipWkd7aU+sl1KM4bsWP/62hY6E/toy4AkyMZJLws9B9hh31Bfm1bOyCgfjRLQ38CWrK IUsw== 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 i2si3159198oif.204.2020.04.09.02.17.59; Thu, 09 Apr 2020 02:18:14 -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 S1726671AbgDIJP7 (ORCPT + 99 others); Thu, 9 Apr 2020 05:15:59 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:46619 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726621AbgDIJP7 (ORCPT ); Thu, 9 Apr 2020 05:15:59 -0400 Received: from mail-qt1-f176.google.com ([209.85.160.176]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPSA (Nemesis) id 1Mnq0K-1ixZfo1qzi-00pIOx for ; Thu, 09 Apr 2020 11:15:58 +0200 Received: by mail-qt1-f176.google.com with SMTP id m33so2221988qtb.3 for ; Thu, 09 Apr 2020 02:15:58 -0700 (PDT) X-Gm-Message-State: AGi0PuY9q7a2o9AUQOpsPIHz1+jrXktyDH/TbnTw99sAvY3/xAjkcqXi BP8gOSvSNDWrylNNJTIu9ZzoeIBHsmTD4JxJoRg= X-Received: by 2002:ac8:7292:: with SMTP id v18mr11168094qto.304.1586423757348; Thu, 09 Apr 2020 02:15:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Thu, 9 Apr 2020 11:15:41 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 0/3] Add new reg_update_bits() support To: Baolin Wang Cc: Lee Jones , Mark Brown , Orson Zhai , Lyra Zhang , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:fUhXbTmZBtgfIdnCHrnbaNFrzDFemHcsnDPQJYaNGwA5wX13a/l 023S48tDTzi7qkGJ1uZdTe6djI+qnP9nM06NkXas8RdbSzUKlcVbs9hmIYA3ymRWOX2JZtG NVIjySDoPn97zDUqrPmkd2hYN8DfxSJdOgY/MoyYiTfSO9yFZ5zxe9Sxljm9tplOOYO4I9Y JPflSpvqCc4cETm/Ct38g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:1u9vBiRz+RU=:FTWZ+MGzd54cIQJ/UsMI6c eR9j5KksWsUCBgS9KItox/2BJ+EaQFXpQSxL7z2Om9k/Y7+HOfDk/SxIYIHsRICvBBKNpVGHE 1I5NkucpIJMMR0boCdi7NJL98pw05FZQe4yKhUbRTss6f7l0mK2xDwp+4d74r5p5Fv6Tx9NyC 3/fHaAcEcwSwUT7qfip9zdltnaOTXuBnc7i+5TTWU1AuY8tt9npwqt6uAUSrqcI8f8Eez8Txu GaBAAR34H+EuQ0Y0Z53u8AuTpt9nDTxDzceg14pHQOhKLIcak6UXXxCWcLOQrDiQNZV4y/J3L XgiK+8oTrNaZ+gQ5a2HLbvR1pjFL+Gs19XAFkq4ggcKjztqpM1ZNh8INOcsgQr56arSi8QeWI a2sa1T0EpipOPXP8txlgPg2XoZGoIikmbbY4D0ogfmU3wYPKpwJHcVfnZwhNYwVt3jrMEV7Bi reGKVeHb1A/nV70GBYwkgSjpQZz7dGzuItojgDwM99AvjfDZwW6EqEYt12UlslFC3gjBD3W3u nE6nUCKsW+DzOSgHsIBrCLKIBKEAU08D+9bFswJroqBrZ+BwEpWue16i2cEMosNxGawxiS1Q0 8/14LRvnfQGj3Hi+w5s2WXTvXGm+ZJCerGzADac5mflXqwML0KhS8stnALlayOWX9aDVMSWhW JWQq8nIhdBau1oGKxJ8QYWGpC+CAaqTud2Z3vs3i1d/fqDg5FllLVOlFGr64Bxm9jCddL8QDK GRYWF0kb2fQmQyY+XpwrzkIIP7Y64m6YUKnXhMezXYeHV0ip6LcS76sBEWH9msl/oQdkc+nzD WCQWom1n2DOYVnmovAQ7cq5ADFabZk5XBItxVEbTcvf6f3GhD4= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 9, 2020 at 10:58 AM Baolin Wang wrote: > > The Spreadtrum platform uses a special set/clear method to update > registers' bits, thus this patch set introduces a new reg_update_bits() > callback, as well as adding a helper in syscon driver to support > this feature. > > Any comments are welcome. Thanks. This looks like a good idea to me, both the concept and the implementation. The one thing I'd note is that we have a similar mechanism for devices made by Sigmatel and later Freescale after they acquired them. include/linux/stmp_device.h only holds a couple of definitions, so it's much less abstract than your approach, but the idea is similar. It would be nice in theory to move the sigmatel devices over to reg_update_bits() in theory, but this seems unlikely to actually happen, given that these are mostly obsolete drivers at this point. Arnd