Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1144962ybk; Thu, 14 May 2020 01:22:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdzyt5m7PjZ8/a52SoLsC6DBbI1HilKtXCV1EGHyrsF7XASvBKnctsdktl9zMs7GVfAckm X-Received: by 2002:a17:906:d7ab:: with SMTP id pk11mr2898238ejb.280.1589444532090; Thu, 14 May 2020 01:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589444532; cv=none; d=google.com; s=arc-20160816; b=qXszfXbm3PbdDzZ4tT0E77ZyhBD70DIrvSfJ8BNn8sHhkNlLsLTMm1qEXOFIg3AgeM yqWrzCnb6YK06iL1a7eVTZRa4F8BePQQiVJaNirDUaaKI613aMbVIToSU+241D0Xj/FV NZx2GOwyo/th4Cfei5y8lOxdxT2AuiLVJdv2QWmS2eK2yPagQ6q+6wj6ArYjgtP62YAw ANhfezNfl4uTXlnkPFaoLtszd+RO5N05/JJNcZKpVCMjm40e09vnhDv5xoO7nH4L4+/c SWn0oflxHYMfsZ22/opO8JBmndkZfw4fiY+wQWeTrn833cFohyTpX00vEBS4VPB5WXr/ 2iBg== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=4wYzZXumDUZhfzd+G7UbUHYSmoWAJ2APH+72vR7RMBM=; b=LrPSfjV94NBCUV6BFdvwM+3wlR0u62OJFSof4pa5iHh6JyLqSV3b5PJCd7V+wFOdZI JisUH4fOQmAxvI6FgafY50eepj3fKRFlz3xa3mhcvvTugw1Vm9cDCvsF3dVphq1lQAMm oZ/8O0DfTyQb06Eeyp89kM/GdmMB5qkiVl+Av1Xv1efuoFMEuMXYOLfgnBaTzrm3mTlp QpKr+b6tnNDeX63L7mnCJUElOq1Vw1PRiGQDZ31jvd+FYLNq//rlUOtePOhm0+1NfQdv 54zFKq2tnDK/kSvfOLP9YDTk0Q7Utqaht57uDd7HZizAyk2La7vBbZJ4Wwo1VxbsyUGn Xo5Q== 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 t20si1214364edy.543.2020.05.14.01.21.48; Thu, 14 May 2020 01:22:12 -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 S1725972AbgENISL (ORCPT + 99 others); Thu, 14 May 2020 04:18:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725886AbgENISL (ORCPT ); Thu, 14 May 2020 04:18:11 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBB68C061A0C for ; Thu, 14 May 2020 01:18:10 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=localhost) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZ947-0001v2-MZ; Thu, 14 May 2020 10:18:03 +0200 Message-ID: <1e15be39906034a95b86c026e060ed9866586d94.camel@pengutronix.de> Subject: Re: [PATCH 2/3] drm/etnaviv: Don't ignore errors on getting clocks From: Lucas Stach To: Fabio Estevam , Lubomir Rintel Cc: linux-kernel , DRI mailing list , The etnaviv authors , Christian Gmeiner , Russell King Date: Thu, 14 May 2020 10:18:02 +0200 In-Reply-To: References: <20200513150007.1315395-1-lkundrak@v3.sk> <20200513150007.1315395-3-lkundrak@v3.sk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.1 (3.36.1-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, den 13.05.2020, 23:41 -0300 schrieb Fabio Estevam: > On Wed, May 13, 2020 at 2:09 PM Fabio Estevam wrote: > > > The binding doc Documentation/devicetree/bindings/gpu/vivante,gc.yaml > > says that only the 'reg' clock could be optional, the others are > > required. > > arch/arm/boot/dts/dove.dtsi only uses the 'core' clock. > arch/arm/boot/dts/stm32mp157.dtsi uses 'bus' and 'core' > > Maybe the binding needs to be updated and it seems that using > devm_clk_get_optional() like you propose is safe. The binding is correct as-is. We want to require those clocks to be present, but the dove DT was added before the binding was finalized, so the driver still treats the clocks as optional to not break compatibility with old DTs. Maybe this warrants a comment in the code... Regards, Lucas