Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3844505ybz; Tue, 28 Apr 2020 01:11:54 -0700 (PDT) X-Google-Smtp-Source: APiQypJaK4rP7qrLFP9AgqPUou07bMr3i4YvmXwIv1+zjZeasDYDGKw2oKs9o7qO+dBYF+Tcliur X-Received: by 2002:a50:a285:: with SMTP id 5mr21023336edm.360.1588061514023; Tue, 28 Apr 2020 01:11:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588061514; cv=none; d=google.com; s=arc-20160816; b=wqyea0Wykl6tecZnz6oPmoHbJsG7ut35GijG0KA98A1llxvtjEBykDl6uy+lGuXf0c LGnLCw//S+06ZblHjMzQ2c+UA9ToIMHJMXXGeaMF+TKn1U3PKQpTEnm71KyXOqPooEaW g6Y3ypwijHHP7YcFlwVfDFnRyqoG5SAvPtgoEP3aefnu20oBPuiwOlyGdUOxx6ogg66p RXW8vFPjyBnopFijg/KAU9D9MwJbeoV0LMBUo7EscfhDGXFOpZQLTv8HMK68Q1TVNYdy ZhSWmzovNAPi13nLxwZAwRqcUTBtu4LPoJN00/k2EDSE9+MFr1ZXF78KgWHNSgXZxfWq EH0A== 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=Kqa38YVLi7QYLTLJZZ98QduYEyE7k3ch1m+jgKR4ttM=; b=XzQzzsrhwWzHCKHhF4AUjSZLiaZPxTAk9lcAuNxH41rdPaBYxe9zf7DyUPO/W6HA3R gX4vY8Z2z4C+wKjbW7AXqp7E9frh+EsrU01Ar4AvbRToOIk0oj6xVAmgSjoesqs2dZhE KbpgtWeYUSFt4JQvOMvJCn4WYYfcIDmgVLdV5RRws9HjKzfAiWD0LCzekktoix3QX+OB k3LSJLtyae2CcrzLrtqQGS3tjII0gCrB3Gv7ZY4hgOkziZltZLzXIizGGAisfFbCxK5q dabGImhoPEuBjViKnXa/szUz3zzN5rU9O1VERSiVkKeM1Qv0E+AWP6ZU/nV4EpzgNBLl DF+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qp4LAKom; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id d11si1235014edo.105.2020.04.28.01.11.30; Tue, 28 Apr 2020 01:11:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qp4LAKom; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726809AbgD1IJW (ORCPT + 99 others); Tue, 28 Apr 2020 04:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726377AbgD1IJV (ORCPT ); Tue, 28 Apr 2020 04:09:21 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0295BC03C1A9 for ; Tue, 28 Apr 2020 01:09:21 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id j14so16116191lfg.9 for ; Tue, 28 Apr 2020 01:09:20 -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=Kqa38YVLi7QYLTLJZZ98QduYEyE7k3ch1m+jgKR4ttM=; b=Qp4LAKomQILI/2tAvM4aA0DBEvzilLjP1lu63igtRn3zAu3vcuEZXruRMYKHEtis5p u0Kwte31H8Vzt4w9fRELwsKgRZlD9787lL86lP+i+RdF1jPnG4aslfhhdp6Pc30DOFLD AoWN+Qa8UUl4dQjSZexfDylq1gfw8wJiUJXLj6pBq8FzDqltl3fVDEcCW21/3K9g+d2X zSLHRbz9DLYT5/z1Pm8747clwSiPgl40F/LPYnfBcQzkNhz64hGucLMX33hbaLozo2/B q5owKRkdaN6E9QuiVitkufiMdcflD7sYGtQVdQBcr1KWPwuPDFOtVYzGIpB40H98f9oW cJ2g== 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=Kqa38YVLi7QYLTLJZZ98QduYEyE7k3ch1m+jgKR4ttM=; b=fuzI+gpsJSA6qjyWo21IWF5dOEjqM5f7P69QDyH08vCgtZex/0baQQBqjDhpmjY3rk jZOXo2J4NOOcPxPnAByeIFyueu6iSvNwn+8kmfnTrcXAE/+sATErdKCSrZWmZoeHezl4 reLGTy7mJf3sppZsv4+JyPOXNlxoXF4od/yEw+8ezf2k7EgSFNNK9AUq/uPuq1uql3kJ 0FI/ezVrW5XCBWUYP/WxhNWnLr4L+PHeH47jz15cCGEYOBwfGtxv8cxcTLfGluYZ2qiu mg/G65F8m2pbSY6OlTlF5goMIAIhGzPGwb+30f/YVAI8A1Nk3hJA7/ZrXQ0sCqj7UgtT gxjw== X-Gm-Message-State: AGi0PuYUPdX63AhtZtK2uQlmdttSlz0vXS1EKJikZmeQq77YFuwhZVEY 6pG4Z9TYpSbqrN5nfCZ1SGEoauMmoUBIDoYq09M= X-Received: by 2002:a05:6512:74:: with SMTP id i20mr18261664lfo.104.1588061359536; Tue, 28 Apr 2020 01:09:19 -0700 (PDT) MIME-Version: 1.0 References: <20200427090518.GG3559@dell> <20200428071447.GJ3559@dell> In-Reply-To: <20200428071447.GJ3559@dell> From: Baolin Wang Date: Tue, 28 Apr 2020 16:09:08 +0800 Message-ID: Subject: Re: [PATCH v3] mfd: syscon: Add Spreadtrum physical regmap bus support To: Lee Jones Cc: Arnd Bergmann , Mark Brown , 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 Tue, Apr 28, 2020 at 3:14 PM Lee Jones wrote: > > On Tue, 28 Apr 2020, Baolin Wang wrote: > > > On Mon, Apr 27, 2020 at 5:05 PM Lee Jones wrote: > > > > > > On Mon, 27 Apr 2020, Baolin Wang wrote: > > > > > > > Hi Arnd and Lee, > > > > > > > > On Tue, Apr 21, 2020 at 10:13 PM Baolin Wang wrote: > > > > > > > > > > Some platforms such as Spreadtrum platform, define a special method to > > > > > update bits of the registers instead of read-modify-write, which means > > > > > we should use a physical regmap bus to define the reg_update_bits() > > > > > operation instead of the MMIO regmap bus. Thus we can register a new > > > > > physical regmap bus into syscon core to support this. > > > > > > > > > > Signed-off-by: Baolin Wang > > > > > > > > Do you have any comments for this patch? Thanks. > > > > > > Yes. I'm not accepting it, sorry. > > > > > > I'd rather you duplicate the things you need from of_syscon_register() > > > in your own driver than taint this one. > > > > Thanks for your comments and I can understand your concern. But we > > still want to use the standard syscon APIs in syscon.c, which means we > > still need insert an callback or registration or other similar methods > > to support vendor specific regmap bus. Otherwise we should invent some > > similar syscon APIs in our vendor syscon driver, like > > sprd_syscon_regmap_lookup_by_phandle/sprd_syscon_regmap_lookup_by_compatible. > > So long as the generic driver stays generic. Providing a registration > function sounds cleaner than tainting the code with vendor specifics. So seems my V1 patch set [1] was on the direction as you suggested, but Arnd did not like that. [1] https://lore.kernel.org/patchwork/patch/1226161/ https://lore.kernel.org/patchwork/patch/1226162/ -- Baolin Wang