Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5607110rwi; Sun, 23 Oct 2022 08:48:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7GljWOmsoe1SbsNPe5hAZ11nC9sqP/WnvP4Hl20YH7AJsdb6xiwi6fD6N7ch9r9ZLHeMod X-Received: by 2002:a17:907:971e:b0:78d:e7ed:7585 with SMTP id jg30-20020a170907971e00b0078de7ed7585mr23135740ejc.258.1666540099900; Sun, 23 Oct 2022 08:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666540099; cv=none; d=google.com; s=arc-20160816; b=emd2ACdaiDzyVfMgQ6cVvrLPpbU4kpedO+h7WI1OODgLw9LvqisBogEfW+2kuQsUx0 GgIZ6Z38faSIUgnfvcM8TWTzBAW0O3fQ9/Tdmg1e/qTNnjaKuSVdhf53IhFSPq3K0MZF sVPY/mtRZX2FYmbc1meW55wUUIijb2RD/yWS/bECy086H8OUMtGi3btI69m5iMvWyKlL otLXDOUv3KRPnkyr08L29Pgzy4OUoJIIzqBouNhAVZFvGJI6nxGJegmdJwwEyFL7eMss AxUGCjiholkQ29tiTXc6KteKnIjFA+f+H8K8yOnWHxhI+EV9/chGAjVrr6GzOBNpEXAb dFxw== 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 :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=76gz1YSbuUIA+tLdwL/4i5a5zfRt4Nv9mdTm/uPed3w=; b=TZ3GfarFZsnyzzwON+REtHHMJ3lFZy9R5oqMXXC3iOtbLvx17HnnyuzgsYHSzNIJ5j R2Xaycjz1vvqZt1JfLBJUJP0iEN+Ou0lqfEA5vAabPWixuSL2TltdS3gYJDDTkJ8ZAFE cNSgXe6wYR+ut+NJxmirQtvLuSQjpmqv9EGx6eu2EsUBKFRDLZ4k/4rxYZnEh8oyZSwp aYrEIduIjL/s1HPdO+tw+WFJaTXLm4SAvaqUsnanUleUiW/CEpzWehtOWfnY6y1VwFTJ rtnCWI6jS86TI/0pMp8svb5l5mlfAvnr5yhMWKXfX4dRbTAu6LQN2DyHpeJmF+OpmWct FKPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=UlzyMNfv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d24-20020a056402079800b004570e4887desi22517851edy.437.2022.10.23.08.47.54; Sun, 23 Oct 2022 08:48:19 -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; dkim=pass header.i=@crapouillou.net header.s=mail header.b=UlzyMNfv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230166AbiJWPQR (ORCPT + 99 others); Sun, 23 Oct 2022 11:16:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbiJWPQP (ORCPT ); Sun, 23 Oct 2022 11:16:15 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF2416556C; Sun, 23 Oct 2022 08:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1666538169; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=76gz1YSbuUIA+tLdwL/4i5a5zfRt4Nv9mdTm/uPed3w=; b=UlzyMNfvxSOmsLFTbpmCgLzlm2t9lt6VDAnPrCvAKxKuPoUcNOKhtEwnaboUeHB4d5tTfe C9xIxNS1OEVeLBs8lNjsFdpeW0L+Zd1F04C8HQinUJl2Fl0S/RoInmia/68XJaTXapOIXb tinDxuX0iCncdtoF63UIOpSF9qTqA30= Date: Sun, 23 Oct 2022 16:15:58 +0100 From: Paul Cercueil Subject: Re: [PATCH v3 2/2] serial: 8250/ingenic: Add support for the JZ4750/JZ4755 To: Siarhei Volkau Cc: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Jiri Slaby , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Message-Id: In-Reply-To: References: <20221022165047.4020785-1-lis8215@gmail.com> <20221022165047.4020785-3-lis8215@gmail.com> <9W76KR.NVDSVG4IWZ3A3@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 Le dim. 23 oct. 2022 =C3=A0 17:04:49 +0300, Siarhei Volkau=20 a =C3=A9crit : > =D0=B2=D1=81, 23 =D0=BE=D0=BA=D1=82. 2022 =D0=B3. =D0=B2 12:16, Paul Cerc= ueil=20 > : >> Do you have such hardware? >=20 > No >=20 >> Don't add support for cases you can't test. >=20 > It's just a side effect of that approach. >=20 >> For what we know - all JZ475x use a 24 MHz crystal and all JZ4760(B) >> use a 12 MHz crystal, until proven otherwise. >=20 > Ouf course it just confirms the rule but I found one exception:=20 > JZ4750 & 12MHz > Link:=20 > https://github.com/carlos-wong/uboot_jz4755/blob/master/include/configs/l= ib4750.h Then when this board is upstreamed it will declare a 12 MHz oscillator=20 in its DT, and the ingenic init code won't have to enable the /2=20 divider for that particular board. > Regarding your proposal: > In my opinion enabling the divisor unconditionally is a bad practice, > as it's already enabled (or not) by the bootloader, with respect to=20 > the > hardware capabilities.I think it's better to keep the driver as it is=20 > than > adding such things. Well, I disagree. Linux should not depend on whatever the bootloader=20 configures. -Paul