Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3203257imu; Mon, 17 Dec 2018 15:25:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/X7/61TUzY34QgfLv6wVtjv3qAKx3tp3ZYaHqkUnQ+RY0VFA+S3ckpNFDo/nhgnG8QSd5Gt X-Received: by 2002:a17:902:20c8:: with SMTP id v8mr14607863plg.319.1545089139423; Mon, 17 Dec 2018 15:25:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545089139; cv=none; d=google.com; s=arc-20160816; b=PjXigPtYdSybuDbYJHdFx3bNbUDv7rZc5Gn8PtU3i0Ub84Da3h8bbPaRt7eCf05pqw jEBXs/qZCBs/3wjXwIV/pQnXG6U4PBBg2WjyF99XeFYui8qMiHDxofP9wJVJVentV3Nn FUdpPOeVUzZeyrLLj5yzIfmDyz+FCIIBO2GsU3BjicmXPxkeQlF47hejxn9Hn4ckBYLV 7E2SY7WQO8w667A816/vryaAf1MLDb5ty6KDbBAF/PQF2loMltNTUnqLQ7/cBmSvSySu SSaag+mzm0pOC4gf+5fXZUa8uhc5gtWQx2GVoHzaOFH8sL26hJ6d3mTJOISg9rXj+U2H F/0w== 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=+uXUeSCb6wymPCJz5JF6Rf4E7j2stig7Asxv3H/CpxI=; b=K5nKo514Cgyf6Ys8RnCAtapNf/8blDD/W80ytUr0kWH42UDvDT4ps7c44E1vPaBLuA XKa4EfSix9MtPTqUpjqIwU6Bz+QGEiXYMJsFBnAeENbJDyxhgr7YmYxGuhAYH0pvepMg 5/brd3eFGZ0/nNSYCVss4XUC1hYi/lyJh9p3FdBYFpEiBKzAW3Twc4e8S69IjoVZn2I5 XBdIPRc08y+S3A0/YiVmYJHgKtpkl5itrYZpcHXrmqNvwW4r00Rhx3VNMVENfeWz7mbn +ovKhSNemSS/5VJoSnNhT2e+dIL5i5q+/dcIBdUBXam/p0LoLer1eyex8O5HR1WJhCll KO7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T6nFE8bu; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si11346131plq.371.2018.12.17.15.25.24; Mon, 17 Dec 2018 15:25:39 -0800 (PST) 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=@linaro.org header.s=google header.b=T6nFE8bu; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730954AbeLQWWC (ORCPT + 99 others); Mon, 17 Dec 2018 17:22:02 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:40785 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728108AbeLQWWC (ORCPT ); Mon, 17 Dec 2018 17:22:02 -0500 Received: by mail-lj1-f194.google.com with SMTP id n18-v6so12432664lji.7 for ; Mon, 17 Dec 2018 14:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+uXUeSCb6wymPCJz5JF6Rf4E7j2stig7Asxv3H/CpxI=; b=T6nFE8buAdeX0mJEej9rLMShxxsxjsL1x3K0R6Dgs1koSubgOxBWJtdLjYq6KCc/Qv GxJ6v6qUJCSPeZzIjfcBaKwn0kpQ8E6MtPuBaJ1nybw/2Pw2156gUgEtJXH/y7Aylq/T tl/3wbxVznouPXdtreNv0s1uMKoAk2cO3RRmA= 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=+uXUeSCb6wymPCJz5JF6Rf4E7j2stig7Asxv3H/CpxI=; b=pT4ByBjmcwWOsHqVbPJubWEPFFBxzz61fqmyj340tiQBwbUp+HSdPVNDgELJmtXSEH 6hBxDq5Lo1FoC9uhJ4kQ9+IJXqMOL2Q4hqkfAixzkPBOYx676GGsuXs/YpWiezZVvL5O Q6BxuuNhliGCmIDYDCOg20rLCqKNb/PJwhakOgPx2qkBPYXyrFFeZqSH4DlBH1d5jgTb DBT88Z6ekNMCQz3ry4gKXz1qQOdh3N9l3VYQCgALtxMkPzh6ruDzQjyE4EQkUTliaQVU 9UGqnKLM1upVpcD8PopZbWpyitR7rION7j/PN0PYPQe/mSyI+VkE2pCaxCJtZFDGuz+y dd5A== X-Gm-Message-State: AA+aEWbNx8YnIZMnZ+18Ms+kGwfDMnRq1+8IjH/jdmPZJCv3Fm1UTukQ yw74a44cPzFq/ESKfaCmpDIcaeM7SB574laYaaDNhg== X-Received: by 2002:a2e:7403:: with SMTP id p3-v6mr8571077ljc.97.1545085319541; Mon, 17 Dec 2018 14:21:59 -0800 (PST) MIME-Version: 1.0 References: <20181217153652.20056-1-jank@cadence.com> <20181217153652.20056-3-jank@cadence.com> In-Reply-To: From: Linus Walleij Date: Mon, 17 Dec 2018 23:21:47 +0100 Message-ID: Subject: Re: [PATCH v2 2/2] gpio: Add Cadence GPIO driver To: Bartosz Golaszewski Cc: Jan Kotas , Rob Herring , Mark Rutland , linux-gpio , linux-devicetree , 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 Mon, Dec 17, 2018 at 4:51 PM Bartosz Golaszewski wrote: > The driver looks good but is there any particular reason not to use > regmap for register IO? I thought we only use regmap for MMIO when the register range is shared (as in a system controller) so that some registers are for this, some register or even bits in a register for some other driver, so they need the spinlock in the regmap to protect the register range. It is also nice for shadowing/caching of register contents I guess, wat does this driver get from regmap MMIO? Yours, Linus Walleij