Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3991246ybh; Tue, 6 Aug 2019 04:42:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwadr1ZUZQZ2iJKhO+w2UQl0q7/ITncWQ4jJOHhQjrXXypVo9SYeiuubgra+/Jtaxushp3p X-Received: by 2002:a17:90a:b903:: with SMTP id p3mr2729193pjr.79.1565091753082; Tue, 06 Aug 2019 04:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565091753; cv=none; d=google.com; s=arc-20160816; b=qvE2HexirF+oZ0LTJ9KSV6mFYIjMNxwzUJrRoc4yGw7Ne5tvp4yz79f6JSrb+1Nqrw 8P2V/uW/xXsutodeLwTylhO+GsFDmm2PUfzeElweC66zJRqKxmNPX/jl5kQ793bbp5lS DZdd9gMUNm6N9KyrNqBUqTguZKTiF87jXrcN30gFsf6+zZx5xGbivFD90do4gN38xNAP s4sZNba3mnqzUkyC430kMIu9YfzaMi2Igf/Y17+6DNNfuteNh3B4s3Ya2v1jnNxMduaa x+sPJXypn/a1p1gb2ffx2bOS0068RhJWbGOliswoIysIilh/6s66MFhYqEq+bNPas5Rx DzDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=WFt/R6WFqX+mhbbcYavq0f1Peb9W3tmJ+Z3bTV8pHjA=; b=wuv5L/N724CoWBJzmRku6hH4hLbmpBmJRb9gY/Yz0gJ4SLvl3KA+Ki4v5kJc6m7xCB afc0QY7l9Rzf45jspXpvbzdxAK1l8B8TtZu+umRD6iZ4UFRQXMZF6Tcx5itJWEL+34ZQ rMvgRdRh5kd55IqQ0iSfhTox838BSfcf9LKeuo+/Z3HyCpR0aiFNUc1eEscBpsoNOM8y ZJ7YmZuNhGvAXXr2BEreEsbF4bMFGqo6iU8uxTn8A2bQTmOkqBIGhHyPOiVP8bxgn+cX GLa+oyHcjeC+hYvZdgn7rV++QRYRR2xQnNrkEPRzv1prXjKI8ReWMArit1N9AgljYkT+ JQrQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si48546610pgv.135.2019.08.06.04.42.17; Tue, 06 Aug 2019 04:42:33 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730472AbfHFLln (ORCPT + 99 others); Tue, 6 Aug 2019 07:41:43 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:51559 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726713AbfHFLln (ORCPT ); Tue, 6 Aug 2019 07:41:43 -0400 X-UUID: 9ef266cfa1bb42fbbaeb731b843d0390-20190806 X-UUID: 9ef266cfa1bb42fbbaeb731b843d0390-20190806 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 415061747; Tue, 06 Aug 2019 19:41:32 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 6 Aug 2019 19:41:34 +0800 Received: from [10.17.3.153] (172.27.4.253) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 6 Aug 2019 19:41:32 +0800 Message-ID: <1565091692.24748.3.camel@mhfsdcap03> Subject: Re: [PATCH v4 10/10] rtc: Add support for the MediaTek MT6358 RTC From: Ran Bi To: Alexandre Belloni CC: Hsin-Hsiung Wang , Lee Jones , Rob Herring , Matthias Brugger , Mark Brown , Mark Rutland , Liam Girdwood , Eddie Huang , Sean Wang , "Alessandro Zummo" , Thomas Gleixner , "Richard Fontana" , Kate Stewart , Allison Randal , , , , , , Date: Tue, 6 Aug 2019 19:41:32 +0800 In-Reply-To: <20190805072338.GB3600@piout.net> References: <1564982518-32163-1-git-send-email-hsin-hsiung.wang@mediatek.com> <1564982518-32163-11-git-send-email-hsin-hsiung.wang@mediatek.com> <20190805072338.GB3600@piout.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Belloni, On Mon, 2019-08-05 at 09:23 +0200, Alexandre Belloni wrote: > Hi, > > The subject should be: > > "rtc: mt6397: Add support for the MediaTek MT6358 RTC" Will be changed at next patch. > > +struct mtk_rtc_compatible { > > I would name that struct mtk_rtc_data > > > + u32 wrtgr_addr; > > and this member should be wrtgr_offset or simply wrtgr. > Will be changed at next patch. > > > > + of_id = of_match_device(mt6397_rtc_of_match, &pdev->dev); > > + if (!of_id) { > > + dev_err(&pdev->dev, "Failed to probe of_node\n"); > > + return -EINVAL; > > This will never happen because probe would not be called if there is no > match. You could also use of_device_get_match_data to avoid having to > move the of_device_id table. > Will use of_device_get_match_data() function instead of of_match_device() function.