Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3410156pxj; Tue, 1 Jun 2021 04:50:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI1XNz1aeYepi6tIH163ETs7foyyDeFZWVAlFye74X+ww+obpZPPz9BfiFhMe1kNrADZFF X-Received: by 2002:aa7:d4ca:: with SMTP id t10mr31808553edr.42.1622548219252; Tue, 01 Jun 2021 04:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622548219; cv=none; d=google.com; s=arc-20160816; b=hAV5mICncL3wF01XKE4Df2x+MvM39EhXbnwFzoTppwxc7HKHUHx9EAGS71lOX/7Oab CKmtdVGwdMhp7RUyaVmc2zryY1CjufIN9fpVVvPldDPhjlLI7CHMF3V9xHHkfRJqzwcQ E879yGVD82ifhWlRuxwM0RTS0sqw9YEdccCLfiq8ZSrr6UQSbaYfx0+vL/WAOJDqBZaM Xzw2IwUDuW6Z/nPRrthIgL/0pOhAtbCOB181u8J3FqaZJ154hY/+A7ryOBxFHz3h0i1a JDHmA+u9wzejxttRA9np1PwWa+gsChLCceqf9R8XDZaF+1SGFn+ToMuAB09ESTj6GN2q NETA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6zj02qXAAuk1QMJQIoOzaeU/P0x5I8fbdsNIO3pGtyM=; b=mMVyGMzuifTme4lC8jUpS9O58VavxjZZQGl/n1CwLe3AWk2yxPeiwB5JkZWI6E6CAT D5JdoN/ef8g76eZg6P/0fA5ierch3G7gOJqN/3VUk2Aq+2T0yvekUdhzPdflTA0u+Lvs WmAiQ57tZzREE1jp6yEIzQMUsHWKFv9kmeMtZaAdDqtD6aEAksbszBXlm3QtsY0PJf+M FxIOCzQ4ASYx5ztQ7alYIVM1L8304UYDsUzdJCz0JUgI+xzgfJd38TOzmVR+JvHd2a9A 6bXfHqRCN7T7JdjljDOOTezSLjNwbnbb4O7f/Ln95CFinoG1pPcGbtl2MUa5NKE4vGXm tz1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GCM7Tqzs; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si15512877edb.70.2021.06.01.04.49.56; Tue, 01 Jun 2021 04:50:19 -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=@linaro.org header.s=google header.b=GCM7Tqzs; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233584AbhFALuj (ORCPT + 99 others); Tue, 1 Jun 2021 07:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbhFALui (ORCPT ); Tue, 1 Jun 2021 07:50:38 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAF45C06174A for ; Tue, 1 Jun 2021 04:48:56 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id x38so21290027lfa.10 for ; Tue, 01 Jun 2021 04:48:56 -0700 (PDT) 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=6zj02qXAAuk1QMJQIoOzaeU/P0x5I8fbdsNIO3pGtyM=; b=GCM7TqzsCQfMbmkRYl1ltBptIKp+x5Qk014ppmBUTtp150nlx088axbmbXi54EYEJs 6mEGIZOKLnyzs1jt1wMaf4KOlMe3yCHfXXpLFdWB+VhWAzC9DsYKfmOK9iyh4uiW9ZXM UPffTgBYvAeMgv1MSPKtvFAFcI20GiYHjJh02wNDnOTqk7XsXL8h7+73mOVpvHrrBe1z 7yuT6pmonFwXsXn0DW1jC03q3BXXuZKSUl+XfSVgxFiTvAWmSadKCkguWLltWa75Gk+F HVlyOLt2dlf1Ogd0HGlSc2b+Ev3Qlp9roPuwyJV0Pze1yj3rTINevD5wK5+QYs2AKeRa SjCA== 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=6zj02qXAAuk1QMJQIoOzaeU/P0x5I8fbdsNIO3pGtyM=; b=jmVYq9w4Q8gH7eu309OJy+YyG6MS4Gj2ehkOzjpUYPHxOB0bmUvHq/H02ZsLjY06DJ 0KbfLwKbhelWY6iTpM7N3ER7t9M95PySOdZwRxXOH4GAZv29dvOH5U0TiLdnrbJEi9NL jNKtOCr84RmByrmL4GOs8FAE9AryEimpIQTBYs3BYsxF6G2SFPy8U3VaEea05oTgVfkq ThiIVHMbPmlNe3DfG33t2NiO9Dwraf3dXUJVgFkwJbpbYbuH4tY8xZu99kWBc8wQeJPB TSfFFDx/9ySuXeW2LIsh2S3FVLIylbnXk6Cg+uAMZz8cnD+iHDpjCdXwyL3i5QTN/Fgp C0lw== X-Gm-Message-State: AOAM533AlY07HHe9hsoD+789FUI5neTFYKiRuWnYndK2kBzMosXRdkOq yPCrl3N26uQQ0GR/VpSZL8trGLma/YgrfDbZTBkUBQ== X-Received: by 2002:a19:f616:: with SMTP id x22mr18138502lfe.291.1622548135157; Tue, 01 Jun 2021 04:48:55 -0700 (PDT) MIME-Version: 1.0 References: <02bbf73ea8a14119247f07a677993aad2f45b088.camel@svanheule.net> <84352c93f27d7c8b7afea54f3932020e9cd97d02.camel@svanheule.net> <401805ef27bb273d7aca4f3377b53b07@walle.cc> In-Reply-To: <401805ef27bb273d7aca4f3377b53b07@walle.cc> From: Linus Walleij Date: Tue, 1 Jun 2021 13:48:43 +0200 Message-ID: Subject: Re: [PATCH v3 0/6] RTL8231 GPIO expander support To: Michael Walle Cc: Andy Shevchenko , Hans de Goede , Sander Vanheule , Andrew Lunn , Pavel Machek , Rob Herring , Lee Jones , Mark Brown , Greg Kroah-Hartman , "Rafael J . Wysocki" , Bartosz Golaszewski , Linux LED Subsystem , devicetree , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 1, 2021 at 1:41 PM Michael Walle wrote: > Am 2021-06-01 12:51, schrieb Linus Walleij: > > On Tue, Jun 1, 2021 at 12:18 PM Michael Walle wrote: > >> Am 2021-06-01 11:59, schrieb Linus Walleij: > > > >> > Just regarding all registers/memory cells in a register page > >> > as default volatile (which is what we do a lot of the time) > >> > has its upsides: bugs like this doesn't happen. > >> > >> I don't think this is the bug here. If it is really a write-only > >> register > >> the problem is the read in RMW. Because reading the register will > >> return > >> the input value instead of the (previously written) output value. > > > > True that. Write and read semantics differ on the register. > > > > Volatile is used for this and some other things, > > like for example interrupts being cleared when a register > > is read so it is strictly read-once. > > Isn't that what precious is for? I never figured that one out. But I assume you are right. Proper regmap semantics documentation is forthcoming! ;) Yours, Linus Walleij