Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3888751rdh; Tue, 28 Nov 2023 06:34:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFGz5jj1a9RRjoTv7xKyMBtI6HE9ofalD6vJsHMGUGUVxY7KAKNcJAAOuBnCCB6zcMX6Rg X-Received: by 2002:a17:903:228a:b0:1cf:ad1a:60c3 with SMTP id b10-20020a170903228a00b001cfad1a60c3mr16071265plh.53.1701182085965; Tue, 28 Nov 2023 06:34:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701182085; cv=none; d=google.com; s=arc-20160816; b=NBRW3qM1x6VT5YuHZplOtIG3RLwHXYXnyJJRFgzlNq7x4M8qAlPlPpWgBkVon7A+LS fVpkv7dewpOBlEKI6ccok/Zo6hQP5OQ5DTSRNn8hVC2+OKLYl0067xZGnIqPCVIuvLQD JtHyrGTHJNPzcBoYfQEA/obltYhhP9x47IYjjFjjV38ltvUtxiWfXtDlTk4E09OOxWkx 86lVYsjas0fFEKa0Hom6cYHIyd8j26Ol56FvoOvMkm1QVqvBlxRS/aBc+4BikbVQrZki uUUgK74LKODr+gqFBytB/C6NmrnMMo1bqLcxW0rsFPIBYuepkEmLDJWi6uTkTk0qbAsV RxDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bMG48SwBK5UHsAZmvVGge+eO1O9aG82zKUQLg7KuJ3A=; fh=7RyEOiT7rKunBK8J6dgkCMYV8DIaq3dgJVIFOPkcvLA=; b=MYlSg29UZXwY5/BanmZzEbKFnmyRdUQ8ITnUi2SvnTsEz3PEnh0MUo2mBeg0gg/fqQ 0cSvVJqkHKmCHMsfVxGDyVqKlQz8OmA3dLxtzlJf2LL3qCIGniSR5sFX+hNTCqzikZ7J gD38Gi01rWdkEYqV2S2AI+b1sbQMkpFOY34oAAflnDoFfiWmHFaWJyakSqqEop/Qq9oQ +BPMhYwKkokp7PNkfB/yuGuGC5qOo4HWGamnUsqauw90qsjMFGmVs5oVAM78Ri+y/CgD Od2dIefeavWZ0mgvoSXuXY8Tx7SaTKtcmG1kg9LP+/J/hxr+hb7CY9GF50v/6n1iOJY+ wRpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TrAkaISa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u8-20020a170902e80800b001cc76bea514si12927859plg.442.2023.11.28.06.34.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 06:34:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TrAkaISa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1C0FA804139D; Tue, 28 Nov 2023 06:34:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345744AbjK1Oe3 (ORCPT + 99 others); Tue, 28 Nov 2023 09:34:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344927AbjK1Oe2 (ORCPT ); Tue, 28 Nov 2023 09:34:28 -0500 Received: from mail-oo1-xc2e.google.com (mail-oo1-xc2e.google.com [IPv6:2607:f8b0:4864:20::c2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6704E18D; Tue, 28 Nov 2023 06:34:34 -0800 (PST) Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-58d98188dc0so944735eaf.3; Tue, 28 Nov 2023 06:34:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701182073; x=1701786873; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bMG48SwBK5UHsAZmvVGge+eO1O9aG82zKUQLg7KuJ3A=; b=TrAkaISaDFsf9QTCF4R7EN8cSm7eMOAYjOFBXxrz9YTAtDFlnukVJoXLhlcFqGX8xQ BzkToS8U/L0ZpYEuu6MTd9Gs+U1bM5iW3wbSpz6mjov3p+gnXvNSXViHO3XoJ2uhU3Cq wDhzVr2/essS5hMZXW8vcV8m4lpT8ToH9Uz8aZ+hqAMPQfyvJgoFoqoFYOJIdAea4Uvl CcAjhdgfB9DBCSuvBzqOiLscbKOoEd2SYjpuDbHHvmahW+90TA4iYpbZuSAf+PQnTFUx Jx0mVwBTVRR/dbNWaKX2MbrW66BH9T3H6eaXqdiA1xJ3hZ5leWikInFNdFMH6HXcm5ce Ul0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701182073; x=1701786873; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bMG48SwBK5UHsAZmvVGge+eO1O9aG82zKUQLg7KuJ3A=; b=ERQnmb23A4yC8DDE8TxrUdGVe8jdyTYaVn954Edu+/98fzdBEmKEeoVeZysvJb+1B3 wv+6RNfG24F61f39iptATcPRO4Q1MBhPe/c6sAIK4qgQtojVLma/EotJGE892SzuXAYn 6/DZzq2tuzmPPrE7zAW0n2m/JQaIpmSCJDTErkoMkrHAj12u+qmN/opFzbDGHj7ItL2X XpaTVB3Vce2oQeogC7MKq3tOsth27daj8Py0dFEh4ETTR/XTmlPODoxiVKK8UXxibzcj rOgho+B52JGR2Kf6Z/TobJfSR80b87+2eAmx+uVu0ZC8EQM8xyWAgc7i59lQsI/rpDxJ 1eGw== X-Gm-Message-State: AOJu0YxVOfGinY7WQis2wQTX4gx0/fmUGGsfdP6kSEUYSDr9jUPVH1/H 8R757AGbw8FI8GUgSbd+sSeWkyDF63crMZE8qSs= X-Received: by 2002:a4a:e559:0:b0:58d:bfab:f5f with SMTP id s25-20020a4ae559000000b0058dbfab0f5fmr454326oot.1.1701182073588; Tue, 28 Nov 2023 06:34:33 -0800 (PST) MIME-Version: 1.0 References: <20231121094642.2973795-1-qiujingbao.dlmu@gmail.com> <20231121094642.2973795-3-qiujingbao.dlmu@gmail.com> <09b29f1f-a42b-49f7-afca-f82357acd4c8@linaro.org> <438768a3-c50c-46f1-8a4e-2233c7545453@linaro.org> In-Reply-To: <438768a3-c50c-46f1-8a4e-2233c7545453@linaro.org> From: jingbao qiu Date: Tue, 28 Nov 2023 22:34:22 +0800 Message-ID: Subject: Re: [PATCH 2/3] rtc: add rtc controller support for Sophgo CV1800B SoC To: Krzysztof Kozlowski Cc: a.zummo@towertech.it, alexandre.belloni@bootlin.com, krzysztof.kozlowski+dt@linaro.org, chao.wei@sophgo.com, unicorn_wang@outlook.com, conor+dt@kernel.org, robh+dt@kernel.org, conor@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 28 Nov 2023 06:34:43 -0800 (PST) On Tue, Nov 28, 2023 at 9:59=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 28/11/2023 14:22, jingbao qiu wrote: > >>> + if (ret) > >>> + goto err; > >>> + > >>> + rtc->clk =3D devm_clk_get(&pdev->dev, NULL); > >>> + if (IS_ERR(rtc->clk)) { > >>> + dev_err(&pdev->dev, "no clock"); > >> > >> This code is not ready for upstream. There are multiple things wrong h= ere. > >> > >> First, syntax is return dev_err_probe. > >> > >> Second, you do not have clocks and you do not allow them! Just open yo= ur > >> binding. > > > > I'm not fully understanding here, can you elaborate more? > > That the syntax is dev_err_probe() or that you do not have clocks? > > > > as there is clocks info like this in the dt-bindings: > > clocks =3D <&osc>; > > Really? > > Point me to the line in your patch: > > +properties: > + compatible: > + enum: > + - sophgo,cv1800b-rtc > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > > Where are the clocks? I will fix properties. > > > Best regards, > Krzysztof > Best regards, Jingbao Qiu