Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp602425rwi; Thu, 13 Oct 2022 02:39:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM76zxsmZ3dPD7TxYCNgQ538ZjHlhkAYokHt0iQ7uI/ie06iJYoeiSKb9QXpmGrJAHOhSugY X-Received: by 2002:a17:902:d50e:b0:178:2fe:9f60 with SMTP id b14-20020a170902d50e00b0017802fe9f60mr34487442plg.154.1665653939843; Thu, 13 Oct 2022 02:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665653939; cv=none; d=google.com; s=arc-20160816; b=pwQ3zGogfjDAQ/EtVl82U9hqivJrYafu/ypV0iI5//mzfEsslole08tS4JXUXtS3Tw Xm8YANkhnzmeXmxLSCwTVknHvWjn7zgoLQkZRRfwfEdmgjEbTwW82vF9kNMXfgNjOUfP NfdWR0yfKFve+2Ol5EDajefXFqkWaAnoHOErfBxugWNe/EDITsFlO/Tikw/Lobj0LoEV 1lZTn8VQNX8GY/ppMc+qT3XlkIeVrwa0JpGh/h8MvXU3C9OBCSNfoKBNfPhyf24LGKZK poHASa7h2IdZyOa+s1meOtNI9Xd/fZRVnhC8Cyun87hgQKsLfy4bFrNbb+Eoz61feoei xZzQ== 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=QfKF6P//aPtt3yXkddZGb8gQhNXBSYeBQmboxbZCJlU=; b=zBPe8gGAvnwJAZPTTIZeDIm3jqMuKsCdycANSl++8N2lH3W1AVaxAY9mNgvzYwAuvj VxoPQ6lpFVxseGrMZeQ/kntozDSf80fqLjRb8v8TqZ7w/XeswH9irJ9OFAFXKcJ0qnYD SiRPzUraIaHH+pLDL9Kv9bAGnl9NHjP3hdYUyo0P/hczUmhlXcfEH+BX15TQx4d6YNZe EQgSPc2vc+qqN981PmTItVA58mTV4BU6VAoXY/WM1Gc7f7HVW7laVR+X9J/09h2BVnVc vUyAOpacZzkZ2IdvWMVHwi8EP6UtkmIfY0LTdeYA3o33AAVT1efSgZOvpUkqlRSJ/qsf jzjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=Ip0NSVDD; 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 pm4-20020a17090b3c4400b0020319d3bb7bsi4755201pjb.18.2022.10.13.02.38.47; Thu, 13 Oct 2022 02:38:59 -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=Ip0NSVDD; 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 S229802AbiJMJRX (ORCPT + 99 others); Thu, 13 Oct 2022 05:17:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbiJMJRW (ORCPT ); Thu, 13 Oct 2022 05:17:22 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3E925FBC; Thu, 13 Oct 2022 02:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1665652637; 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=QfKF6P//aPtt3yXkddZGb8gQhNXBSYeBQmboxbZCJlU=; b=Ip0NSVDD1AM8ZgtvW/VD87fTHoRfAC5ZKR4g5vCDTryKzaGimlZJoh+FC5CRuxEyrYuyOV zFio5aFohd39Q+mWiqCJyJxM7qdFhkFObmPHLG9/o7LYmzxzlFG4La4/m47ImlJB8FwZ5u kKRpu9SSwogossEIyH7SeLGOjn8wS2U= Date: Thu, 13 Oct 2022 10:17:04 +0100 From: Paul Cercueil Subject: Re: [PATCH 7/8] serial: 8250/ingenic: Add support for the JZ4750/JZ4755 SoCs To: Siarhei Volkau Cc: Arnd Bergmann , kernel test robot , kbuild-all@lists.01.org, Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Vinod Koul , Greg Kroah-Hartman , Thomas Bogendoerfer , Linus Walleij , Jiri Slaby , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-serial@vger.kernel.org, linux-mips@vger.kernel.org, GPIO SUBSYSTEM Message-Id: In-Reply-To: References: <20221009181338.2896660-8-lis8215@gmail.com> <202210100607.YdxoR0tD-lkp@intel.com> 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 Hi, Le jeu., oct. 13 2022 at 08:46:39 +0200, Arnd Bergmann =20 a =C3=A9crit : > On Thu, Oct 13, 2022, at 8:37 AM, Siarhei Volkau wrote: >> =D0=BF=D0=BD, 10 =D0=BE=D0=BA=D1=82. 2022 =D0=B3. =D0=B2 01:29, kernel = test robot=20 >> : >>> config: ia64-allyesconfig >>> config: arm64-randconfig-r035-20221010 >>=20 >>> > 142 #define CGU_REG_CPCCR ((void *)CKSEG1ADDR(0x10000000)) >>=20 >>> 0-DAY CI Kernel Test Service >>=20 >> I know CKSEG1ADDR is MIPS specific, might be it needed to disable=20 >> COMPILE_TEST >> on the driver? >> Since early syscon isn't mainlined yet I don't see any other way at=20 >> the moment. >>=20 >> Any suggestions on that, folks? >=20 > This looks like some setup that belongs into the bootloader. If you=20 > are > handing over the console from bootloader to kernel, the hardware=20 > should > already be in a working state, with no need to touch it during early > boot. >=20 > If you are dealing with broken bootloaders that are not under your=20 > control, > having this code in the architecture specific early boot as a fixup > would be better than putting it into the driver. Agreed. I am not fond of having a driver poking into an unrelated=20 subsystem's memory area. Just disable the divider in ingenic_fixup_fdt() in=20 arch/mips/generic/board-ingenic.c. Cheers, -Paul