Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3612079pxp; Tue, 15 Mar 2022 02:28:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRXwNHyT3na54ZdFlfHIHlwoWafZNfL47KEBM8jzS74wJA87KT4Ph0b/gquz1Dk9LTJoNT X-Received: by 2002:a17:906:c10b:b0:6da:a190:edb0 with SMTP id do11-20020a170906c10b00b006daa190edb0mr21369453ejc.512.1647336533251; Tue, 15 Mar 2022 02:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647336533; cv=none; d=google.com; s=arc-20160816; b=ihBdhssO4K8js2HxvDgvH5n0U3ZC2yuIgyIN7mjH1iAYjp9x2c9ONqeZcd5eMBmDUU A8938kjpPgfkpBb4saAiCf/8srzkkMR2woM3IknKlPpAMZT37rz5Jy/G3mbSMbgsrmLq 89qalPN+dFmtrj/llbjp2+xJKE0uLJJw2WgDry5F+whbCuF2s8a941AUk8t00/2RlT3n EHBd4NoZcCkGmCNMtZ0NLNLXONzEqC6xTMluN9F9jUvagHL7bISaZIPxR7epLbMXZIba qjeigxqKoq68dlUaAsamVT96SeVjB0JgEdUGQosDfjXV25hlNBjrvOZnR1cGGpDeUT2v 5E1Q== 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=XBbovqXtrDwVinaC34NOA4Y+YEMIQTMpwb6EjH6xByU=; b=Bf/jKsk7Vq2HzwxdxqtHvYYu+jRsfkNOuxGQEba9N9pBLQMQHHAS5fjc0VfX/de1bG /4bK29WwsVhypWytn6SK2SWwCFUbCHTrCabrYbWBEpSU41dlMV3fSsYG/TW6leynGsHE oYPtFZLAxzF8Y8oervxCUEaJK75pbSgGZpjOpxf4fw1zggwwDxLVxejUsSYBnve1WQnC 4ytdfZsnjY3Qq1yq34vvyb1G87DcFjZOO0GoYiYI6zgv5r+KRgFu8y/IymxskthpCyvr aTWFPKCw/HF1Vvfl28RUrKFln3xL4pxd7nHzoGymPPI44FVCeQTqcFFYElr80Z8TBNJ2 wc1A== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bl25-20020a170906c25900b006ce79213861si9990493ejb.58.2022.03.15.02.28.27; Tue, 15 Mar 2022 02:28:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238718AbiCNMf4 (ORCPT + 99 others); Mon, 14 Mar 2022 08:35:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241031AbiCNMef (ORCPT ); Mon, 14 Mar 2022 08:34:35 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 077691D0C0; Mon, 14 Mar 2022 05:32:42 -0700 (PDT) Received: from mail-wr1-f47.google.com ([209.85.221.47]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MsZBb-1oHj3y0IhP-00txXw; Mon, 14 Mar 2022 13:32:41 +0100 Received: by mail-wr1-f47.google.com with SMTP id r10so23716488wrp.3; Mon, 14 Mar 2022 05:32:41 -0700 (PDT) X-Gm-Message-State: AOAM532iDPmTogaBAEXkFjYhD7HLQRjB7xg4y6unFo/KQgLZAx/yC4yI njwgWDcCQ92vKa3kFg2CMG+ypjwooRjFFPhLL8U= X-Received: by 2002:adf:d081:0:b0:1ef:9378:b7cc with SMTP id y1-20020adfd081000000b001ef9378b7ccmr17319150wrh.407.1647261160730; Mon, 14 Mar 2022 05:32:40 -0700 (PDT) MIME-Version: 1.0 References: <20220311093800.18778-1-singh.kuldeep87k@gmail.com> <20220311093800.18778-4-singh.kuldeep87k@gmail.com> <4aae560d-d266-d0d0-136f-32891b15bc01@mleia.com> <4f39f086-1932-1729-8761-d5c533356812@mleia.com> In-Reply-To: From: Arnd Bergmann Date: Mon, 14 Mar 2022 13:32:24 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 3/3] ARM: dts: lpc32xx: Update spi clock properties To: Robin Murphy Cc: Vladimir Zapolskiy , Arnd Bergmann , Kuldeep Singh , Olof Johansson , SoC Team , Rob Herring , DTML , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:BRidD3s+k4ddX6FhmA6r0KsG1DRPklEV0cUP5rL1bxizBW85MUG hAQEoY+ttglGkEf02F/7+FPXVxsS87loPbm3FiMgFVnrEgYLBn2gvMYg+HNuVL+ln6KZgyq P4bsBDfdfuun6O9a8qtG8+BESlBwJwD9sCsEshjjLWISbzswFed5NLB63lZy6iftvuQ6709 XUp8VTe4L9n59J7gaaFtw== X-UI-Out-Filterresults: notjunk:1;V03:K0:0WlnscOXg3k=:4A1f8uYndxT0vn2XHeEaBa 9M4qC1XjUpWZbu6aNwzKSWSKeGVGHwwGPR2E06lNNMmb7FdxgC2opO+LsARCmR/u1uDuHXToP IeM3yImU2CPisHkk+X2ie+GxuH/hyo+uXZrPVf0p+tI3g/GLsZP9NlMMB6S1i4O3hQqqUNxVi e3D7O6sWwvuK/iwvjWlZCWas0y2Zd++oEY7SKwf/9NtmFeuup+XtW/0JYIaubNRTr1X6vRG7B D5m7NK8BPB3LLSzYHsDCLyXQh8AP9DBGY7vXgoNOTi3knaRCZVQVJbsb4u4vu4nBdP0gEJJ+W ZwVFhygNRY3cXKiub2FPRdLoIS7Ba9Ljg64O6xj+oTU1ElKzHkYXybRfZo4pIHVbpI7aWfDOd xwAZbndtOl5IVnDaAGpFYESn1JYU8Jfomw1iVCTSKcez57SOY0SgG1qtZX2RptVxYbSZiEc+o O+Pi6o6NKTLr66NDIGSrrCd9GMG05rP/B+Hp3DKJ8RzzzVVRSl/b3LRz+QBUinhAMZJEK/Soy pIueCUi0GzY0D9OKn8OxQncoyA5v4+ECf9ZcnejZCvQeUvH6SrkspLwd8UdrmvYpgp6ArQ8SY 2kgiYIhLIAjDfPje3gO1nipB7QKLvb3Qbey/z+4hfNLztm1h9J7Qv1222P5GlPZvkuKDvypm7 0ywFODZLlsNvuqmPZQ04wqIcITtITCY/JJEp5CYEuAceCmorP48/e4Q8L+usHGoZVXv8= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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, Mar 14, 2022 at 1:20 PM Robin Murphy wrote: > On 2022-03-14 11:50, Vladimir Zapolskiy wrote: > > On 3/14/22 1:43 PM, Robin Murphy wrote: > > > > Thank you, it explains, why "apb_pclk" is required for all PrimeCell > > controllers on the SoC. Nevertheless, in commit 93898eb775e5 it was > > misidentified with the sspclk clock, the latter one is the only clock > > explicitly utilized by the driver in 2015 and till today. Fixes in dts > > files should be preceded by a fix in the driver. > > There's nothing to fix in the driver, though. In fact it can only be > working today because the Linux driver isn't very strict and simply > assumes that the first clock entry is SSPCLK *without* considering its > name (other consumers of the binding might be stricter; I don't know), > and because presumably the HCLK happens to be enabled already anyway. > Changing the driver behaviour would only stand to cause functional > regressions. We can change the driver to look for an sspclk by name first, and then fall back to the first clk if none is found. This would be backwards compatible and allow new dts files to have an arbitrary order, though we still need to be careful about changing the existing dts files after that, to avoid breaking older kernels. Arnd