Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp666614pxb; Fri, 16 Apr 2021 15:18:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHG9tmnyHe6ssSshwK86ftzJ4uz2PjVGC2GGvOfeThnr+Vq+jv3qrVbjEmNkJciwz75WZ8 X-Received: by 2002:aa7:da01:: with SMTP id r1mr4058568eds.197.1618611483317; Fri, 16 Apr 2021 15:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618611483; cv=none; d=google.com; s=arc-20160816; b=OUBEtEKRW9JN9/zSPMM0EdTojI0K2YUWyqLIbGPGKUdh0YcG1pmoJ8fFRIDBIbwSf2 JTIP42oL+sYEgDM/WAzUsCO5LFwU5ZTmUPMYCUwIRwfytFGQahE9lRCTEvICs4j39SXK vsxCjkQdJMkE5nGAcZz6nB4m5DfRDG3sgn05wBkdg6RKt1gz2VDabE0+46gTuYsjd3jJ 0GIaEBYY6kYFKgoWwOBdB6IBSAvGWBE66P4M9sQRU8T1MLzNRxtIcYlIqajNW62Qtft8 7zbIJZIKZ43NobeGexphiZif27gk4wGAP8SOn3OVHOv/3NF6PLyXaXq/PlBfzyXBAaZU IpEw== 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=OnUH0SNQ98gzb8SiK1CR7wEO14VT/hfKgQTvo9nCniw=; b=iRuC4IlE8F4RlVK9uwx7KE/3Ce2pB5G3ZPx85vVJcWfjrlTA7F+lAOTQwgHM+PrG72 xI+JRjPY1r3/hZ06pHtYK2LUSlSjjUhDYXgm6kopCBlbJFlGi94xuNPRkFujqC7fjGj4 v3no109IUI1Og64Y9amnGRkmJ2jwOL4cN6sHt7Vc5qPIMzaEh1OMivlOra4rg/Yfy3ps 8a+3hIg0bHkQ8S0UmZguZO/dj8e9+ueCDQelLN6may4VFCpd26alV/DG2MpVHHiEtnAE fTdwG5gD7JbdeyefVSGTkRBQ9Civ9w2mjy+LdmlgObonQshoB9vhH5taLTu9K+AF1kNx K5kg== 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 e1si1657871eds.309.2021.04.16.15.17.40; Fri, 16 Apr 2021 15:18:03 -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 S235563AbhDPWRN (ORCPT + 99 others); Fri, 16 Apr 2021 18:17:13 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:37121 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235192AbhDPWRJ (ORCPT ); Fri, 16 Apr 2021 18:17:09 -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 relay6-d.mail.gandi.net (Postfix) with ESMTPSA id EE667C0002; Fri, 16 Apr 2021 22:16:40 +0000 (UTC) From: Alexandre Belloni To: Francois Gervais , linux-rtc@vger.kernel.org Cc: Alexandre Belloni , Michael McCormick , Alessandro Zummo , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] rtc: pcf85063: fallback to parent of_node Date: Sat, 17 Apr 2021 00:16:40 +0200 Message-Id: <161861118020.865088.6364463756780633947.b4-ty@bootlin.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310211026.27299-1-fgervais@distech-controls.com> References: <20210310211026.27299-1-fgervais@distech-controls.com> 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 Wed, 10 Mar 2021 16:10:26 -0500, Francois Gervais wrote: > The rtc device node is always or at the very least can possibly be NULL. > > Since v5.12-rc1-dontuse/3c9ea42802a1fbf7ef29660ff8c6e526c58114f6 this > will lead to a NULL pointer dereference. > > To fix this we fallback to using the parent node which is the i2c client > node as set by devm_rtc_allocate_device(). > > [...] Applied, thanks! [1/1] rtc: pcf85063: fallback to parent of_node commit: 03531606ef4cda25b629f500d1ffb6173b805c05 I made the fallback unconditionnal because this should have been that way from the beginning as you point out. Best regards, -- Alexandre Belloni