Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1778259pxy; Thu, 29 Apr 2021 14:31:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjGUWfOkn8WzBeKsXhjlp+MPy3Ci+kPW9/ahwlP+EGEOgHD+ncqfHELzOpfBcKbJo+3bfZ X-Received: by 2002:a05:6402:31ac:: with SMTP id dj12mr1948494edb.267.1619731883417; Thu, 29 Apr 2021 14:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619731883; cv=none; d=google.com; s=arc-20160816; b=B+vqTOX3hFGLFef+B96Tle9ERf7CYf7vm6sm3+bIsOAxknh2qFMCWdxgnxuUpmIelO 577Zv+nBgbBJ0Zx1GQW/VwmskGnrAmJZz23VbQwytP0JSc7XoAHtW6QzsSrArih0z9xM H5Zq4t1FDXI7kbvmr69tg2dhyBBNUOchI1dVo85yjLiBpjqoNUluuq9/xDYANvBugG3I nFIi5gIifTzmOs94UjJjJvddJEjxwUanKTTgfB4uf3ZltOcgDIjKcZUDE5qa9EZ51hc/ +VsFmXTGz1MUOPJo5qRS5Dl91QIXVDxbX++Erw67taoXACDxoGQ6F9O5SfWpCPvPyd9j oNKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=z5ZagssjMA+fYkV6nipM5AvdwmiSu3Z7YoN/kaHq1Xo=; b=vceWeuB7PWLKAaX15jQkm/nAx3GhFstxgG+bq7el5bBwRKY33+y+r3RGJ1CRVn32j7 XXIfhTUkuCu8utjk8IVj+0/fprB9klDODwTuR0Ix+gT4kYuuJ2kZzS3UwD1MOO+kJxok WGq8QvEMd5oG0gOiOx7JeVf1KDo6h/Z6lVpDEtChScL3AXW1ww78IOw3977hmKTmlJT3 jGy+GcndKs6OS9PR57BOtngdbKtXeLXztq/BYhhgLASaa+MgRjQrOTEJPdePf4C4PZCn 5Zlb/xqiZ1e05FJwu4TeHE1bhUnM3qlE2QjkMqKauvkuuBE939GXKO5LKGICKlqCT45t bzlQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk25si1103821ejb.754.2021.04.29.14.30.58; Thu, 29 Apr 2021 14:31:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236695AbhD2Val (ORCPT + 99 others); Thu, 29 Apr 2021 17:30:41 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:44119 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233284AbhD2Vak (ORCPT ); Thu, 29 Apr 2021 17:30:40 -0400 X-Originating-IP: 90.65.108.55 Received: from localhost (lfbn-lyo-1-1676-55.w90-65.abo.wanadoo.fr [90.65.108.55]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 06E391BF204; Thu, 29 Apr 2021 21:29:51 +0000 (UTC) From: Alexandre Belloni To: Dario Binacchi , linux-kernel@vger.kernel.org Cc: Alexandre Belloni , Alessandro Zummo , linux-rtc@vger.kernel.org Subject: Re: [PATCH] rtc: omap: use rtc_write to access OMAP_RTC_OSC_REG Date: Thu, 29 Apr 2021 23:29:49 +0200 Message-Id: <161973168395.2582973.9374098143035295509.b4-ty@bootlin.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210425145924.23353-1-dariobin@libero.it> References: <20210425145924.23353-1-dariobin@libero.it> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 25 Apr 2021 16:59:23 +0200, Dario Binacchi wrote: > The RTC_OSC_REG register is 32-bit, but the useful information is found > in the 7 least significant bits (bits 7-31 are reserved). And in fact, > as you can see from the code, all read accesses are 8-bit, as well as > some writes. Let's make sure all writes are 8-bit. Moreover, in contexts > where consecutive reads / writes after the busy check must take place > within 15 us, it is better not to waste time on useless accesses. I really doubt writeb versus writel actually make a difference as the bus will probably still do a 32bit access. Applied, thanks! [1/1] rtc: omap: use rtc_write to access OMAP_RTC_OSC_REG commit: 50f2cc7f758cdbc7c8f928edc25b1c7bc09ef3e2 Best regards, -- Alexandre Belloni