Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1103409pxb; Tue, 9 Feb 2021 23:24:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqdpTprOvOv+IL606GBxeKk40fwJc56zKJBEiU8JLBE+C/Q3y0lu/mMSqepIB1c/KKMsyh X-Received: by 2002:a17:906:d935:: with SMTP id rn21mr1633861ejb.443.1612941872628; Tue, 09 Feb 2021 23:24:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612941872; cv=none; d=google.com; s=arc-20160816; b=WOsDs2xYBdNAaKhtBFZ/sKS45AqWRuZ3qxlVb7lJPKHJtuLWOn3zhlbzbFXBM2ZKpY z7gVuhIdjDJc9eUoq8yvMU40hZ/qAx6kEmcjOAAdC+pI2IJyGD1QcG/XyQ66cdF1cBTE McZCLBIVvH+zUZAkH3p5VN0cZF/y2JH9unj4mFWifTz+A2q0QMWZRaNTSqS9Os2CXhFt LtHGWlYdsLZNHCgbdta3VVHHdjMjTswb1QgO3/JFHg38jkl954LlOLaI/8Th2fGPF9T7 z4mEpFQ6mShQHkoWQN8bBsWnJlD8UK7g2rvL55M5xSTjzFT2RXgKosFvMAhIENK+zdCQ YUrg== 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:dkim-signature; bh=9Rdpbmor649DMFQRF1gFro8a1ifRBNXudIflsDbPsTA=; b=XBV8VoMo6T3ChC2ym34h7OddzbvQAQp0yJZsKLXYlAo4YO8QF1mQ3GI30XxpAFX+KP /RiE3d3n7JrouYoQ5c4bpeFon6UpWF+T3QCX6o1lB89NbX4Z2IzSltNBoinfNcY6Qxk3 orqj9Qj7BspFmVxENOqdJiIksPohxDtBTSkIV6cFXtmEWqg4AMU99uMnFKS6p3IaOPYJ RX4txfdKY8tE8ersA1QIiqqlmrY8zRhhEvqzaxeJV/baoLdtqEvo9VnXguuKyFxsXdm0 WlubilhnjjUJPEC2u9Xuou/1WstUa9s/M+PZfaYKP/JnuS98IJTZImFHWzHeWnuAYqof 1zPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P0r43uVr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si809833edq.605.2021.02.09.23.23.59; Tue, 09 Feb 2021 23:24:32 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P0r43uVr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232488AbhBIQDw (ORCPT + 99 others); Tue, 9 Feb 2021 11:03:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:60582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232277AbhBIQDw (ORCPT ); Tue, 9 Feb 2021 11:03:52 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 20AEA64EBA; Tue, 9 Feb 2021 16:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612886591; bh=31fwe8tyXvKWTQevWbPBBTwlhtYmuyUtZ+dct39LYEw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=P0r43uVrvy8K/w8L1+t7fMG40NdszoK+vuOzvjFYS9Y564y3R+G35zSjjZjFerG1K PcTjjj0PIkqm0y9zdiStHR7ylrPbkDbJqmhNjRb8rd3Q90rvwoNRTzgaEfHKQf+/G9 HDKi/jHGn+mJVl+3e2RooLlSWZaY4lC6jJVuUAIZ/d4R0vf6Pa4g733IJFa+/lF5zz 9V7xNtyHrLFuUPolZuxEHHgd4CX6QWUC5VoXqE/lDrwdrgpURZErxNOLCurP6VVfWu L43sioV2QdY0TYj1Lz7idjZRtJOXskFAzqiF9nSuXJus3LOgX56RDBiHOPypFs2MTu TzrHIrlVVCSdA== Received: by mail-lj1-f172.google.com with SMTP id e18so22968103lja.12; Tue, 09 Feb 2021 08:03:11 -0800 (PST) X-Gm-Message-State: AOAM5331LJjEtPsmsb6V+veF93grdL7cLf2DKivr8uh68Lu+OnqBsZSC PeksFjDMr8D9HUmf+RVTzR6ClhPdZKoPeaII6OI= X-Received: by 2002:a2e:531d:: with SMTP id h29mr14780670ljb.115.1612886589220; Tue, 09 Feb 2021 08:03:09 -0800 (PST) MIME-Version: 1.0 References: <20210204074609.3553018-1-guoren@kernel.org> <20210204074609.3553018-2-guoren@kernel.org> <973602b9-83d1-8e22-60bf-cd77d606a126@linaro.org> In-Reply-To: <973602b9-83d1-8e22-60bf-cd77d606a126@linaro.org> From: Guo Ren Date: Wed, 10 Feb 2021 00:02:57 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/2] drivers/clocksource: Fixup csky,mptimer compile error with CPU_CK610 To: Daniel Lezcano Cc: Linux Kernel Mailing List , linux-csky@vger.kernel.org, Guo Ren , Thomas Gleixner , Marc Zyngier Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On Sun, Feb 7, 2021 at 5:29 PM Daniel Lezcano wrote: > > On 07/02/2021 04:31, Guo Ren wrote: > > Hi Daniel, > > > > On Thu, Feb 4, 2021 at 4:48 PM Daniel Lezcano wrote: > >> > >> On 04/02/2021 08:46, guoren@kernel.org wrote: > >>> From: Guo Ren > >>> > >>> The timer-mp-csky.c only could support CPU_CK860 and it will > >>> compile error with CPU_CK610. > >>> > >>> It has been selected in arch/csky/Kconfig. > >> > >> It would be better if you fix the root cause of the compilation error. > > The timer-mp-csky.c has used specific instructions which only > > supported by CK860 and timer-mp-csky.c is only design for CK860. > > I guess you are referring to mfcr() ? > > > In arch/csky/Konfig we only select it with CK860. > > select CSKY_MPINTC if CPU_CK860 > > select CSKY_MP_TIMER if CPU_CK860 > > > > So here let's select timer-mp-csky.c in arch/csky/Kconfig, not in > > drivers/clocksource/Kconfig. > > The COMPILE_TEST option is there to let other architecture to compile > drivers and increase the compilation test coverage. > > The proposed change just removes the driver from this coverage. When we compile the csky arch with C860, it will be selected. > > Ideally, it would be better to keep it with the COMPILE_TEST option, so > changes impacting all the drivers can be caught before submitting the > patches. > > By just adding > > #ifndef mfcr > #define mfcr(a) 0 > #endif 610 couldn't support CSKY_MP_TIMER and it's only for 860. So it's not a coding skill issue. -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/