Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2355331pxk; Sat, 3 Oct 2020 18:20:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDW53YQ8a7G+K7tqMmOdS2V/fPVj2lBzsjrJMB3nSpCU5k5x0ogcb6kUsIG5A8DJQYKI2D X-Received: by 2002:a17:906:b097:: with SMTP id x23mr8448238ejy.21.1601774437969; Sat, 03 Oct 2020 18:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601774437; cv=none; d=google.com; s=arc-20160816; b=Ol5i4BBNVqnJ5dJ8J/Jy+tiPoxIhT4c7ygCDNKlkbJbF1FECXo68zWupCzvWzazUoL l87eTs4EB6J5Xit8N3jV6WRsqBwkc65uj/pW2M7s7BPcvY6Ns9TOeoBdiL7FYs5ulEFv X7Tt1GFnUAwMSPPa9MG/2zBpYEreF1WJTjUOE0VG2H4y6uC1pKjnUUSajvWehUu07R9O od9J9xJxnFBjITe7AWIrphUFOUR6lg1/XD5quAJ5kfPO6FjtIL824RYr6itiZ4A4/3at 3HqYrRTVwZyG8Y4ODl5GSJsbKcd30ejkMrQZ9zySMG1poYpFTTiLld05y2WtvpXcZd2n g/lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature:ai-spam-status:dkim-signature; bh=D1SXu/hmwPZqsHfd9Ka68/eTXLzFZ6nL3R4Pk10av1s=; b=qrPOvL70Q74tVQMMP45Gz4bmWuTh2tVPEy5H9Ns9iehkNDJHFxwM+6D2EetaM9didF 8Bu4mpEdJMjBxbszjGkxt3ZR5HXioc5g0TW7XWgbpJEKLh9i62AWkPyEnDl5Wqabt6/8 Bc0HSoTvEmfGUwTBrlZDFfY+p6+nEdxdY47OgMC+BKOOLtH7WpSfZOKClno2c1XV5+AW xgb+3u5sfblyPGgWU8q79KzGYtGdADh9enGhmBXUaKszauLgH/3LaLCUKj+RgSmlw71L iav3w/1uu3QqtN5kMLQeWonzk7EEGcOChXkSzUhKDdE9JtKRodT39a2vQIZt4dQb/CXy BS3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mymailcheap.com header.s=default header.b=Uypc8fsx; dkim=fail header.i=@flygoat.com header.s=default header.b=EQdCy5pM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si4130770ejc.229.2020.10.03.18.19.45; Sat, 03 Oct 2020 18:20:37 -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=fail header.i=@mymailcheap.com header.s=default header.b=Uypc8fsx; dkim=fail header.i=@flygoat.com header.s=default header.b=EQdCy5pM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726240AbgJDBRU (ORCPT + 99 others); Sat, 3 Oct 2020 21:17:20 -0400 Received: from relay2.mymailcheap.com ([217.182.66.162]:52687 "EHLO relay2.mymailcheap.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726225AbgJDBRU (ORCPT ); Sat, 3 Oct 2020 21:17:20 -0400 Received: from filter1.mymailcheap.com (filter1.mymailcheap.com [149.56.130.247]) by relay2.mymailcheap.com (Postfix) with ESMTPS id BA9C23ECDA; Sun, 4 Oct 2020 03:17:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by filter1.mymailcheap.com (Postfix) with ESMTP id E51C02A0FC; Sat, 3 Oct 2020 21:17:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mymailcheap.com; s=default; t=1601774236; bh=VpNMNzNhPvGmh9lm2Wahvlf6X8ISFXLwDCrgseSglWY=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=Uypc8fsxSwoHaVfw+r29RzKfwkn2DhhGm4yTEIICGCJWe/KGc4mGkVZeWfakYXmg8 i5uafZMomjgORp+zGaztOH0KwH5+VusPmxpNEBWn8mDHoaHvUFmsVSve4rHYP4MU+K kSXR311VRWizk6150l9OO3ji4RLnVUeM1fJYd250= X-Virus-Scanned: Debian amavisd-new at filter1.mymailcheap.com Received: from filter1.mymailcheap.com ([127.0.0.1]) by localhost (filter1.mymailcheap.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZB5GRAQkPbZ2; Sat, 3 Oct 2020 21:17:15 -0400 (EDT) Received: from mail20.mymailcheap.com (mail20.mymailcheap.com [51.83.111.147]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by filter1.mymailcheap.com (Postfix) with ESMTPS; Sat, 3 Oct 2020 21:17:15 -0400 (EDT) Received: from [148.251.23.173] (ml.mymailcheap.com [148.251.23.173]) by mail20.mymailcheap.com (Postfix) with ESMTP id 5D13E4085B; Sun, 4 Oct 2020 01:17:13 +0000 (UTC) Authentication-Results: mail20.mymailcheap.com; dkim=pass (1024-bit key; unprotected) header.d=flygoat.com header.i=@flygoat.com header.b="EQdCy5pM"; dkim-atps=neutral AI-Spam-Status: Not processed Received: from [127.0.0.1] (unknown [36.18.114.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail20.mymailcheap.com (Postfix) with ESMTPSA id 2BC664085B; Sun, 4 Oct 2020 01:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=default; t=1601774228; bh=VpNMNzNhPvGmh9lm2Wahvlf6X8ISFXLwDCrgseSglWY=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=EQdCy5pM+KJ4Pd40DhZyIm3WdCi7cqRPoPZsn3fhGWlWYjr1h7CXDhbKTf4jtgEEw R8Jbf2LUuFzOzO5J9KzuRZ1j1fKwa7GdwydoWDXFdPhSF8vfGN888LEDVfFVURXqHL H6n54TCE8fIM/PG/d2d2pTy9yz+R9vJJeXKRSYEg= Date: Sat, 03 Oct 2020 14:25:42 +0800 From: Jiaxun Yang To: Thomas Bogendoerfer CC: linux-mips@vger.kernel.org, Huacai Chen , Serge Semin , Alexey Malahov , WANG Xuerui , Paul Burton , =?UTF-8?B?5ZGo55Cw5p2wIChaaG91IFlhbmppZSk=?= , afzal mohammed , Paul Cercueil , Liangliang Huang , linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: cevt-r4k: Enable intimer for Loongson64 CPUs with extimer User-Agent: K-9 Mail for Android In-Reply-To: <20201002132721.GA12295@alpha.franken.de> References: <20200923110301.58125-1-jiaxun.yang@flygoat.com> <20201002132721.GA12295@alpha.franken.de> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 5D13E4085B X-Spamd-Result: default: False [1.40 / 10.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(0.00)[flygoat.com:s=default]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_SOFTFAIL(0.00)[~all]; HFILTER_HELO_BAREIP(3.00)[148.251.23.173,1]; ML_SERVERS(-3.10)[148.251.23.173]; DKIM_TRACE(0.00)[flygoat.com:+]; DMARC_POLICY_ALLOW(0.00)[flygoat.com,none]; RCPT_COUNT_TWELVE(0.00)[12]; RECEIVED_SPAMHAUS_PBL(0.00)[36.18.114.162:received]; DMARC_POLICY_ALLOW_WITH_FAILURES(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:148.251.0.0/16, country:DE]; FREEMAIL_CC(0.00)[vger.kernel.org,lemote.com,baikalelectronics.ru,xen0n.name,kernel.org,wanyeetech.com,gmail.com,crapouillou.net]; SUSPICIOUS_RECIPS(1.50)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mail20.mymailcheap.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E4=BA=8E 2020=E5=B9=B410=E6=9C=882=E6=97=A5 GMT+08:00 =E4=B8=8B=E5=8D=889= :27:21, Thomas Bogendoerfer =E5=86=99=E5=88= =B0: >On Wed, Sep 23, 2020 at 07:02:54PM +0800, Jiaxun Yang wrote: >> =20 >> +#ifdef CONFIG_CPU_LOONGSON64 >> +static int c0_compare_int_enable(struct clock_event_device *cd) >> +{ >> + if (cpu_has_extimer) >> + set_c0_config6(LOONGSON_CONF6_INTIMER); > >why are you not simply do this in loognson64 board setup code and avoid >the whole cluttering of #ifdef CONFIG_CPU_LOONGSON64 over common code ? Because I'm going to add extimer support later that require dynamic switch= of cevt-r4k=2E This callback is required=2E Thanks=2E - Jiaxun > >Thomas=2E >