Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp980501pxp; Wed, 16 Mar 2022 23:20:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJSJNAYuyW/O1RpnjrkK/k1wx6/y/k3xLIkdHUMy8Mvw2q4+9svrL0pbPAWdiN5VTfWJrU X-Received: by 2002:a17:90a:7303:b0:1bf:a5e2:2c03 with SMTP id m3-20020a17090a730300b001bfa5e22c03mr14095863pjk.136.1647498052138; Wed, 16 Mar 2022 23:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647498052; cv=none; d=google.com; s=arc-20160816; b=Lfi6X7gc2GCnQ8rYOFz5meUQ7vUSbrztBl2yMM167kCpG9wKPaj8StVXa/hHS6raPw /aRkl6BAhEurVOq4KY19WwQJSQYFwo0vIwtfDI9btfnYBCDtAc3Lw/EystGXXKSvNvEl PDd+4kcLm01qM6+zEiMuxjq3LdvmdXdRMzFFcQVx7Z/P/fSdWWaPQBl9kgcs+cfgSY+t +1j2m0DyzsjHeJp+UyyYKJ04qwyoxtTmn1tS0omsxTK6dxCTPfHKT0qLE2nTEmYN95Xt R3/irx5UwWeYwwPO6//yfO+MSERjGyg894O5axcMX1QZWaVQeFZc02awETmnwZ1nGGZk mVfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3Ow+kGtiOY3oh5aaxxEMEYzkd7Bfkm111SMhgSjbTYc=; b=rkVeL3RjsrfoJHXtv/QjFJ+z42X34/dsN97P9MfFulehZg6PK8ri8Hc+M+IdIuegXT eTaM0yqz0AD7FTgBPChNMP1pd99mvQ43eVsGNQCc12Mg8Jxtgjis6fSft5zPeaLsMfHf 0RZGeEajkbjB38oPHc9UlzwjhFMmBPGY41SFgrY4+X9Vb5dU7hueV08tK9hL/uXFPcRf 8+wDo4TI+KbmPM/0feGpnN1a/Jt5aYATG/RBMENsMQIb/mglhvpP2twErBun+FBB/UQn W+XjdsAiKOb1RODf+W8wtucR9nT/C0xpT0DI4DqZfWy/MH5nubgZBbrUmR0i99paLeoK Z6eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NyKZ2dMQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o13-20020a170903300d00b00153bcef07dcsi2917460pla.258.2022.03.16.23.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 23:20:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NyKZ2dMQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A58F025C5B2; Wed, 16 Mar 2022 22:06:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357629AbiCPRma (ORCPT + 99 others); Wed, 16 Mar 2022 13:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244998AbiCPRm3 (ORCPT ); Wed, 16 Mar 2022 13:42:29 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6DE16BDE6; Wed, 16 Mar 2022 10:41:14 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id mr5-20020a17090b238500b001c67366ae93so824673pjb.4; Wed, 16 Mar 2022 10:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3Ow+kGtiOY3oh5aaxxEMEYzkd7Bfkm111SMhgSjbTYc=; b=NyKZ2dMQyhMPO9PAhi+GiL/xXA9vyF4L9XDAYzCXVbTfTSJlLWYJ3gax9kK3nXXDIJ 4k9CoGMlJ9U1vx9j065MJYu8hx+2+V0SBQMmuCsQlUGEcLO13IzM58ef4cZJzM7wuyX9 wsUThhe6UWlDwnWZ0VTblKmn41h5S83ZxWMqnVMDacTU8fpfcWQcbB0ukQPC36v0rv3D 1V2gx4iohIzUOb+0R/DR7xXC/+nHz3pAhHlPgbvKkAF8B7CVIkDWWFEd3kL1phGI8GDk E6+bklRHx4K4+ADhC+6Y01iHXlYCNdMMhlUOVIeSKXFohfaJ6xLKbit4vglL4shLUGvm 5Aag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3Ow+kGtiOY3oh5aaxxEMEYzkd7Bfkm111SMhgSjbTYc=; b=Sbf1A2yLjTJjvhPBCFgZc6t9UUkaQV6JQnNm1p3ENnGGrmlmad+K8SDBZuotSq+4V6 kab23XDPSW8nqaNtwwykeFt/aoIuC6WdcSRxsq7AkiRQyES2FImAI/Q3RGQSNqD5KdbA vSCzzdNwZ4CJRBH2G9e+vOHcmUkWV4pbiAPxW8GvgixP8j6nRsCRrA151E8MlrP7S317 UywrvUpi8XoTHgHfiwlHpxj0CkWV0OYeKEVYUhONX/JPXK5/x2jEaMq5kP/bZ3zD6nIi HPj/H7FBjoL1a/abx1rf1s/AMsRNT0trcjnrpVOPa5dpKzzBrf8sijjkYFsZoJlrKlN0 lWMw== X-Gm-Message-State: AOAM533LK1IsH0Nj5uOLwaWWuV7c1JpQok5lMd4r7k53QNk9bk/Zce6s IgsNN4j3jY8T9U4hLMKGReE= X-Received: by 2002:a17:90b:4f4e:b0:1bf:88f6:e5b5 with SMTP id pj14-20020a17090b4f4e00b001bf88f6e5b5mr11430312pjb.47.1647452474263; Wed, 16 Mar 2022 10:41:14 -0700 (PDT) Received: from 9a2d8922b8f1 ([122.161.51.18]) by smtp.gmail.com with ESMTPSA id y21-20020a056a00191500b004f78813b2d6sm4223887pfi.178.2022.03.16.10.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 10:41:14 -0700 (PDT) Date: Wed, 16 Mar 2022 23:11:08 +0530 From: Kuldeep Singh To: Krzysztof Kozlowski , Marc Zyngier Cc: Marc Zyngier , Mark Rutland , Marc Zyngier , Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH 3/3] clocksource: arch_timer: Add arm,cortex-a7/15-timer in of_match list Message-ID: <20220316174108.GB21737@9a2d8922b8f1> References: <20220316095433.20225-1-singh.kuldeep87k@gmail.com> <20220316095433.20225-4-singh.kuldeep87k@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Mar 16, 2022 at 05:30:26PM +0100, Krzysztof Kozlowski wrote: > On 16/03/2022 10:54, Kuldeep Singh wrote: > > Few platforms such as Renesas RZ/N1D, Calxeda, Alpine etc. are using > > arm,cortex-a15-timer and arm,cortex-a7-timer entries in conjugation with > > arm,armv7-timer which are not currently defined in driver file. Add > > these entries in arch_timer_of_match list to bring them in use. > > > > This looks wrong (also Marc pointed this out) and rationale is not > sufficient. Why do you need these compatibles in the driver? Hi Krzysztof and Marc, I find myself in trouble whenever dealing with compatible entries and had 2 options when I stumble this issue. 1. Remove unused compatible 2. Add required compatible to binding and driver My past experience and advise from other developer says not to remove an existing compatible. And also I found "arm,cortex-a15-timer" in binding which was again not documented and was present in DT. This prompted me to go for second option and make necessary additions in binding and driver following current entries. As per your perspective, current configuration isn't apt which means "arm,cortex-a15-timer" is a stub and is wrongly present in binding. I also observed many other DTs have compatibles which are not present in driver. What is an ideal idealogy behind such cases? - Kuldeep