Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp915953pxb; Fri, 13 Aug 2021 09:06:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjY4s/1Y2udwfHm6rfsfIR86S7zMU8qrbky72W8PdfeWOFnPLoUB0lkltcON8e48JEwC9U X-Received: by 2002:a05:6402:70c:: with SMTP id w12mr3962073edx.288.1628870796654; Fri, 13 Aug 2021 09:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628870796; cv=none; d=google.com; s=arc-20160816; b=w3XuwN4JjY0YnYZ+E6ONuk4Xs7feLoLGuSbHL5b6wVgC0/GU36j6cnMDVEkckt0Ec4 lrE+R2Ow2LSn6/2YhS9bChbVCzSkTORtZqdAjqm+2k6sA64QAMwu9CdnG+iftK35p4hw Xrs6mC5Mg5GO4qdsRML7spvy/IcM8iuDD+4Zph1nEvXXD9jlThiEdzj7pXc7qECkpteM qfOq558Ne3Fl8LV1SHfcUkpXSDbyWVo35uwEBX/bu9JOOTflbON1fiQ6FQHTQyThGsmn MrJqsA28FHn5+KJ7BZBbInafZfejlJe49ubeNzMRrpk+OO4p/TwcthBS3Y6PVe3xRDit v4cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=x0xWLTk86tzzRjkpfY1Nei5soG6C/jHVAXTF3VFx8as=; b=qiZ1C+FZ2054s0Xnd3y3i7Uct0dVkEVZ1N5/So+GHZaPHr9aRlkNf4C45pN7TZ42bZ UKCWvK2r4ttk28ZQEL7KRafgZl+qnl4wKVUdYxhEmuNDSew1qK2we1oXF0q67j/g2pnY w9DwKsHMhpX6Y0obe9gIJaejxxy1G+1jWR4EGmrtvbYOXmkWbpbiuY3J58CP/n0iLcEJ u/oG7S7bR5s2aQNotE0GEVRF6ioKbdq8fT8X4qwX9VORcW/0rcmLY+7FEh2jMrpoRQ+P uTyjDzexzUSJYFIoOhkTle/wPHBvLVHGpNUIHYNMDsn08MYF1FuvBNd7cXdT7tuYVPtV wUzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oid8lx5r; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yc3si1912596ejb.629.2021.08.13.09.06.09; Fri, 13 Aug 2021 09:06:36 -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; dkim=pass header.i=@linaro.org header.s=google header.b=oid8lx5r; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241522AbhHMQDw (ORCPT + 99 others); Fri, 13 Aug 2021 12:03:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241209AbhHMQDw (ORCPT ); Fri, 13 Aug 2021 12:03:52 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21924C0617AD for ; Fri, 13 Aug 2021 09:03:25 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id f9-20020a05600c1549b029025b0f5d8c6cso9995793wmg.4 for ; Fri, 13 Aug 2021 09:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=x0xWLTk86tzzRjkpfY1Nei5soG6C/jHVAXTF3VFx8as=; b=oid8lx5rMiXxBC7FhshiK5zRVwBoupwa7etIGRHYqQP5Ghxv3EasyGjtRUp/q5Z46g dPi4hgDi6lfE5M69WkGUYoB4UpHQjdbW7/b5w+LQt9p0RZAURATPXapoGxPpFNZGjzQ2 Va9LQd+pJxCIAWHKes5nlRutYkbGgOx43p5fIFbu9CspxwKZ0CrPNYFzCNlRiL+FJ93W TklrGcoUss7pCNoyZU9yjb2EHpT0pnIOHwJ3YWr6JRwQpdEjkHA7IduQ3ogIp5ZS3EEF TY52xmFQkxtmdRAbmlYH2KZXBZWX0m8UvuZV3/wRxjMEJMwUP5V9hqpzXnySsIbfOhVF 3TFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=x0xWLTk86tzzRjkpfY1Nei5soG6C/jHVAXTF3VFx8as=; b=o14u+Ek0fdWHk4at/93oA+q1y5R81Ww0LTKovULMIhPooZrZDoWbPajINYeEFiLP66 nvYlqcOpvPtuH8IInO2Lo75G5z6+4uQeJm+4oLA6fs0y6Z3wAmRI6P4SheHCT3rp0aEj NuPK7S1snwpQC1xod3j+erBmvfxm58KECOyH52TPgV081SqwXFJe60s/cTG4uhtZYeb8 YOd41VIOlSnGu1WaAVdbskAANkYHvXGO6KLZo1n4Ro+SQvZEw9XCeiptNTtwDebA92Uh eSE9JofrJQIuI7RpDXL5GKBvR5M3SuHQPt+0cKsP8LvGhBuNsJTV275Kx06NJye/oE6i Br4A== X-Gm-Message-State: AOAM5303gTOF1Rwvtx3gNE+q2qhAM3TcnGF2I+s282UVwb6gkgFDC5KL hSBDT9me2QjnEGD96AZr0tAsmg== X-Received: by 2002:a05:600c:2290:: with SMTP id 16mr3333448wmf.26.1628870603592; Fri, 13 Aug 2021 09:03:23 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:5df3:d0eb:3945:640d? ([2a01:e34:ed2f:f020:5df3:d0eb:3945:640d]) by smtp.googlemail.com with ESMTPSA id i9sm2470529wre.36.2021.08.13.09.03.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Aug 2021 09:03:23 -0700 (PDT) Subject: Re: [PATCH v4 4/9] clocksource/drivers/pistachio: Make it selectable for MIPS To: Jiaxun Yang , linux-mips@vger.kernel.org Cc: tsbogend@alpha.franken.de, mturquette@baylibre.com, linus.walleij@linaro.org, vkoul@kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org References: <20210723022543.4095-1-jiaxun.yang@flygoat.com> <20210723022543.4095-5-jiaxun.yang@flygoat.com> From: Daniel Lezcano Message-ID: <9db45153-d4d6-aab9-8cf8-12fdb76be249@linaro.org> Date: Fri, 13 Aug 2021 18:03:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210723022543.4095-5-jiaxun.yang@flygoat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/07/2021 04:25, Jiaxun Yang wrote: > So it will be avilable for generic MIPS kernel. > > Signed-off-by: Jiaxun Yang > --- > drivers/clocksource/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig > index 39aa21d01e05..58ad7af8c673 100644 > --- a/drivers/clocksource/Kconfig > +++ b/drivers/clocksource/Kconfig > @@ -234,8 +234,9 @@ config CLKSRC_LPC32XX > Support for the LPC32XX clocksource. > > config CLKSRC_PISTACHIO > - bool "Clocksource for Pistachio SoC" if COMPILE_TEST > + bool "Clocksource for Pistachio SoC" > depends on HAS_IOMEM > + depends on MIPS || COMPILE_TEST The dependency on the platform is only required if the COMPILE_TEST fails on other platforms. The selection is done from arch/mips/Kconfig directly otherwise. > select TIMER_OF > help > Enables the clocksource for the Pistachio SoC. > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog