Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5746686ioo; Wed, 1 Jun 2022 11:40:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTZ5psq18Fnk3nBgyN5sXxTcEuSTz8s1R7DMh6/WfNWU1wk/XJ3qAc32rVUDoZ2A0Qrj0L X-Received: by 2002:a17:90b:33d0:b0:1e0:4953:d848 with SMTP id lk16-20020a17090b33d000b001e04953d848mr803264pjb.64.1654108834301; Wed, 01 Jun 2022 11:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654108834; cv=none; d=google.com; s=arc-20160816; b=NQFN3VYwtyOwj1lJ1n8X/Iz8UqXfJizSOuj29s55DsXUpI9B7m7uMmTwtAg+MOlkRn fVgs8MhYCXr+4gfn3LUFbHJlTmWSmUb7/3h05QbHATnUq97nsDN80QrTNk4FSF5r1JN6 4ectwkCRcL5KvPDOPBgecuTp/90VMxbGoFp38imT7esB7+fo4tq+7rIC6zdLRS9u6oPo NfI9uxGCE9utA2wysDRmFfzUyeAD3Dkd5hl1p++qthlmJwJrFr0nixtjafItnNhFQtTH /fUYdW6OL3MoiUiCXV34wg30AfdZOIQQs2FQ0GC1/MwMuxuD6Lih79XhPQ5RnRNLcpJZ i83A== 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; bh=IyIq4MJDoOSuGHbW7bd8iNZEOuT5QrF+0/APsVCRE6c=; b=caITdfB1UAptNq0vpkK2dRBeNs+nuwWfGvbRyxcMqy3AVdiWlmVACfGLbujTz8rp0z JDGsop/Y0QNGmKTpy7FYWnhCrAvmLOpRslZJO90KSttbnKM5Xc1IC1N27Bidzwt+qKzq ie+8UZtW7HwKN2opg3uE2SQCGqivfEGOUw0eozVA4H7bReo+wzdFpIYREFiTsWM+SndN eF8u2tIX7/sbGMXCSY7lEbT5Gk+tDTlZKtboh2Ga+W9M35xwKjrxzo+1UWiPm9MG6zM2 5v2Ax18a0z7K/LxLBr8sCKaEfrU9AnLhuEKeq4wiMnavst8pcoFl81b1otmKsVXdXj+E qeAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i193-20020a636dca000000b003fc137079c2si3435756pgc.60.2022.06.01.11.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 11:40:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8055B6CF7F; Wed, 1 Jun 2022 11:37:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237149AbiE3NeR (ORCPT + 99 others); Mon, 30 May 2022 09:34:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237134AbiE3Ncu (ORCPT ); Mon, 30 May 2022 09:32:50 -0400 Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60C6490CED; Mon, 30 May 2022 06:27:52 -0700 (PDT) Received: by mail-qt1-f173.google.com with SMTP id x7so11460417qta.6; Mon, 30 May 2022 06:27:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IyIq4MJDoOSuGHbW7bd8iNZEOuT5QrF+0/APsVCRE6c=; b=2F52u8+Kf1NRs6Sr8h05EYFWDM1RqUm1hgAKREjCwpvjQCKnEVsOwnRKYv4jw6K5+d HaTVfPuAhPYAyvU2lBzAcLX2IBy+0AbuOkt6HZREt9XRnVJMKaN2InlwPae8gtTr92z6 DKORr6jOpTAuJmLe/dA0Dojl4Sc8dn4IR4UXQq1n572sagXlwPigDQ+/xHeAVTZFPDUg P8SDiCOq79XkfxINSgwGJq29qmsWBw+Dipz4w0sb77IYHWpXaQxbcpc6IRCsVcaM47Qo p3NIMikz/pSq/onNP48P0uQWIPNPgBrtHK38kXHDmWSh2EI8YYQ6smmBY2qNmsfMD5S5 iXfA== X-Gm-Message-State: AOAM533inCRG7i2oEUh5liqZIqDL3FU/P2NHqhmJvgP16JpRzhZiC5vw zDC9p1bPrIchasbtnDM5bYNBck5vA6q7mg== X-Received: by 2002:ac8:5cd5:0:b0:302:9b2:dab0 with SMTP id s21-20020ac85cd5000000b0030209b2dab0mr6693103qta.432.1653917271066; Mon, 30 May 2022 06:27:51 -0700 (PDT) Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com. [209.85.219.182]) by smtp.gmail.com with ESMTPSA id d13-20020a05622a15cd00b002fb673aa50asm7520770qty.89.2022.05.30.06.27.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 May 2022 06:27:49 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id z7so19019055ybf.7; Mon, 30 May 2022 06:27:48 -0700 (PDT) X-Received: by 2002:a05:6902:905:b0:64a:2089:f487 with SMTP id bu5-20020a056902090500b0064a2089f487mr54381340ybb.202.1653917268188; Mon, 30 May 2022 06:27:48 -0700 (PDT) MIME-Version: 1.0 References: <20220516082838.3717982-1-conor.dooley@microchip.com> <20220516082838.3717982-2-conor.dooley@microchip.com> <20220530070728.GH1363@bug> In-Reply-To: <20220530070728.GH1363@bug> From: Geert Uytterhoeven Date: Mon, 30 May 2022 15:27:35 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] rtc: Add driver for Microchip PolarFire SoC To: Pavel Machek Cc: Conor Dooley , Alessandro Zummo , Alexandre Belloni , daire.mcnamara@microchip.com, Lewis Hanly , Linux Kernel Mailing List , linux-rtc@vger.kernel.org, linux-riscv Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 30, 2022 at 9:13 AM Pavel Machek wrote: > Add support for the built-in RTC on Microchip PolarFire SoC > > + do { > > + prog = readl(rtcdev->base + CONTROL_REG); > > + prog &= CONTROL_UPLOAD_BIT; > > + } while (prog); > > Limit to XY iterations? Perhaps read_poll_timeout()? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds