Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp140074ybb; Thu, 9 Apr 2020 19:17:49 -0700 (PDT) X-Google-Smtp-Source: APiQypKBqPchTdkHtDM26Eor+B7xyTagsBU4aXPyG+lU3YFEvDKdwIPmAk+xST+z5ZWQLlrCDERz X-Received: by 2002:ae9:f308:: with SMTP id p8mr1990143qkg.81.1586485068911; Thu, 09 Apr 2020 19:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586485068; cv=none; d=google.com; s=arc-20160816; b=rSaGO3KO0gajZQKTCnNm7UtJCOiUSZpZMRgWU1hEup8geXnEpvJ4C0wGvrKJBUM+/z AAEw4Eu/L7El0nxoCLdGEzgCUGynni3WnALi2dUwX0jsJjcgkW7s0inpPgbCmOoECPiJ kIozrgvZDcvT7S7QOS+m8pXd1unCC/YRHXH/pnViJjEzfnH+e+fHhPo3TNO4KVg6zlwq wY9AwB7i2L8QdKW6S+H4i/fCyqJwBZGAhh0vcZTefb96jZ48tBEGHcWS33ZUD94Sxv+V v5Vy1qBT+1o/JI3BcZBxMMBjw1KQQelQwcV7fNnFHaiEpfqclo7y7b0OB9CLMUt2BTk0 sB5A== 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:dkim-signature; bh=rHp6kWdblV62fFQJszl1KhtVeREya2XQGoR7Z3Ctk6Y=; b=o3c65+vAtSZjSZPGQIJWFyKaMUB135MOOY10gr9gmuMcK9kDvojsll5TAPiQOE2B0k GRc8odu9RQiQ7vHY7c1yKQO3nJ4zY42sApCUs4+ywdNlvVGvmD00Fqw5g5OcJk29uQpl zgiHfCgU9cUKn+gCRzDcJ8MnC02jyvoX0x/BssSTcANDF+vyUnHR9W+8tgoZDSvRVBNd QWCYLuOI+INChTRpQFQ5HelW168EeMRFnr3ccMMLT3/yH9NiQr0RakkUl2e59Qy9n8bM N+aNFtUzoGzxNduMpzfTkvkkboXV3dr9JpUjbON1uIMI1XxmFZO7ynLfY2KS8sI4CpcB W6NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iJFrkbUJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b24si380028qtk.172.2020.04.09.19.17.33; Thu, 09 Apr 2020 19:17:48 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iJFrkbUJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726706AbgDJCPc (ORCPT + 99 others); Thu, 9 Apr 2020 22:15:32 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:43834 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726327AbgDJCPc (ORCPT ); Thu, 9 Apr 2020 22:15:32 -0400 Received: by mail-lf1-f65.google.com with SMTP id k28so351540lfe.10 for ; Thu, 09 Apr 2020 19:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rHp6kWdblV62fFQJszl1KhtVeREya2XQGoR7Z3Ctk6Y=; b=iJFrkbUJnTySpOhDp4yoyBmUb3UuG3oACOXrNZRqkUH+XGjwxA8DR65JI7GNpR+l2m qOZnt+e4jshk3lLgb1AbSo53mixeKjd3pjW45jJYN1J2BJDYxfspx6uu6u060D1DjGqY +nZ8KuK0Z9rVktkbIs2LLT3DaGwlW1H7vtzc/2/aPj18Bk9uctn+3/8jxXqT0HgN0uVX cCXMNybZkNokyyx8bpO/JKMiG4OLhGeS0MPS6TngDREhg+ckTCvqi/9Cc5CNoACbk/8u mWd5Oy/5cYph2quUrEwZtyBlgaIJKk8OGZdhs90H8XGRlcQcCTXAZI1zElovy5xJD5gn SAAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rHp6kWdblV62fFQJszl1KhtVeREya2XQGoR7Z3Ctk6Y=; b=DFol3PN7Wz0fuJu5xiFFdDpxKDFXKG5+heRL9Ldz8iB5hbVbNahr2jyw+3e+td6I7Q 7D3kykUnWjhZLD/rlsQRc/1PEWp9E5wBao28XF7nQxaWAIardtjLKn/8YwY6tyJzHhp4 gAD0oo1WWtg7mEz39wGHxUPLkP17zX2ROhJIrBuJO56vm2/4GkW5Ox41eOcOB2blFsKF A0QfbWJcroXh/dPmTmlqMpJ6wCFN3c+l6NEVbMV3D2/A3xplPqqcqK1ADBZEZMgfqDlk w358I5qBfFj820iePft0yCGd4l7iSYszRDVsec+96lCpSAgvWZwyMwvrnrDJ/DerP0cG xeBw== X-Gm-Message-State: AGi0PubvPQm1PCjgMxm6Kv+kbEvl3hn19/IFLIN6Xm7p80GZVB7OEMww 1eYwmCqcMdGclAd7u1e/3j+dXT/V1J08mdblBbI= X-Received: by 2002:ac2:57cb:: with SMTP id k11mr1235147lfo.19.1586484931222; Thu, 09 Apr 2020 19:15:31 -0700 (PDT) MIME-Version: 1.0 References: <759f7471d03946ae273a06f7bcca8a54528ec08c.1586422035.git.baolin.wang7@gmail.com> <20200409104802.GB5399@sirena.org.uk> <20200409142715.GF5399@sirena.org.uk> In-Reply-To: <20200409142715.GF5399@sirena.org.uk> From: Baolin Wang Date: Fri, 10 Apr 2020 10:15:19 +0800 Message-ID: Subject: Re: [RFC PATCH 1/3] mfd: syscon: Add reg_update_bits() callback support To: Mark Brown Cc: Lee Jones , Arnd Bergmann , Orson Zhai , Chunyan Zhang , LKML Content-Type: text/plain; charset="UTF-8" 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:27 PM Mark Brown wrote: > > On Thu, Apr 09, 2020 at 10:13:58PM +0800, Baolin Wang wrote: > > On Thu, Apr 9, 2020 at 6:48 PM Mark Brown wrote: > > > > > + int (*reg_update_bits)(void *context, unsigned int reg, > > > > + unsigned int mask, unsigned int val); > > > > This is fine, we already have this operation for buses, but why is this > > > munged in with the MFD patch? > > > Originally I want to show a example usage of the new callback, but I > > can spilt them into 2 patches as you suggested. Thanks. > > Yes, it's good to have an example user - just not as part of the same > patch! Yes, make sense. -- Baolin Wang