Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3004895ybt; Mon, 29 Jun 2020 12:40:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbf9YH4h/KfSsCsNClCiXYTdYRKvRZY0Ia9NIZcYPQUgjbRlXqtgKrStILCFlF5xggNA/M X-Received: by 2002:aa7:d297:: with SMTP id w23mr18524987edq.49.1593459651470; Mon, 29 Jun 2020 12:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593459651; cv=none; d=google.com; s=arc-20160816; b=G8kal6sbTOn1bFmN960Flfi55BepDiKHVHBlWeUSS/wrIHo/zSn6ajO7VNwtX6cEO6 ZavJbC8WeiUtf1l4PBletzGRuCPDqcN4BMhF1n2X4nWlV1XmZ3NAHerLXjyAgb/lX3RB R0jovZDXhz7zq9T0vywyj5xH0tzDk/7tqEFdu06/ex6Fwp+qGiJzhcrWylEJhQ38O0AX xslviJ3DECocBUy6+MVov/1BYYmPvBHzpIe44HbAfJwBjKHM2N0N9Tm6CfZOwh3iBzSR CxK7+0fXs3/Ghh5Gwv70UCy6aH3x0RxG6nfP/Ti3rMZhBdocgeNL1/xtLChb/ofXIaxg ApMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=e2yPHKowUi96Vn2b3DOoicWlqu6R072c9j8HQHzbwdU=; b=dxMzJOilYSvzucZ0tEitvJE9+G2k1WXzGWVQyFA6y8mdVfU8tGyUaKUo0o2kYbbnN2 8QWIYdITQVaU0RgSdiXObWECihqrMDTNNf9a18XIzbjNvZzpvp0BGaSqGqizckFB8YTX NGcgsYNYNo8znVSQy0WXmBPQLldLWktWrLfZJz0Bn6HWIK4TheHRby75YskGF19vYtD7 huZHowZFtDDbIAadEruhxv7pOt0NrEyZ4A8fwy6kg0jqqLsgHDsLkEH9pcMlI4RzB7uD 33wYSEmpkHwxNsTtWAu5KySO6ggKnAr/HiBwd55d9QalTk1gpULi69/ANEq0UvP7GLtg onhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qJOEMzB7; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf28si268203edb.312.2020.06.29.12.40.28; Mon, 29 Jun 2020 12:40:51 -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=@gmail.com header.s=20161025 header.b=qJOEMzB7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733128AbgF2Tia (ORCPT + 99 others); Mon, 29 Jun 2020 15:38:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387450AbgF2Tho (ORCPT ); Mon, 29 Jun 2020 15:37:44 -0400 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DE9AC02A573 for ; Mon, 29 Jun 2020 06:40:51 -0700 (PDT) Received: by mail-ot1-x342.google.com with SMTP id n6so15541065otl.0 for ; Mon, 29 Jun 2020 06:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e2yPHKowUi96Vn2b3DOoicWlqu6R072c9j8HQHzbwdU=; b=qJOEMzB7xbxdQjpO+XL5H0gKfxvjsVXEi6ZaHyfxCFOI5uO9ZlyJzc3O6PJoV2fkmv loacqs6nDBuoGABmSYSH7aZL4osJDtZbvQzHSUGu1mmO/EEXyyV3RGKTlb+LYOiNz6eK qjEkdk1p9Z2GTjVS7xRdj1ocEXJL9XX/jBQ03tgMrwLsf1aDakKhjRRtrqfRSryeO0K+ o+Hv92Tx+nGSK1WzW7EvZjrBFhJc8infvGvOVcLjEJ3Q9BgyTayq9rWYD5nsP2BYmsiw 55XmrnGd/w3ufr6QwTCIFKgnkXF+y94EJDQL1UEM8MxNA17C2VJYFjNrmrx5QdB7q/6q zWgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e2yPHKowUi96Vn2b3DOoicWlqu6R072c9j8HQHzbwdU=; b=MPetrr2mB0/dLnabLs/wOWYBlkN06B/BeVn8BO5D50+4kEUAgHSB6LsnX6kbCo0Ial VF1y0mi7X+KpNK3b8wrQhx7BbcEXU8+hqKsrwv0GVbcC11x90BZotHombcM6nAJrUAxr QlBwvULLnqSm1KCZUhV6/Tw4JmTVONM4geoibqOHH6lkW7S0OkCoGYlUIk4x7XEInckM yZyGOuihrJDVhwxwRZXZSXU550q+It3FGkyh8opUExYlZqGQkc9HQCLu3pqSRVDpmJki ZArBb6/SLZpNYKmWD99qQ9J5VKHne09XoCXGrAxH5PNSG0NCzmT8Zr/KQR2bKnk5225r M+Hw== X-Gm-Message-State: AOAM530C5utNzzm3OQN7LxtDsFaYJ1IcNW47P4NG0SV5vIS4YZWZvevK Lrlm4fpfNbpQOU5HMNuq0ktcZLAcsMCyakopJnw= X-Received: by 2002:a9d:2c26:: with SMTP id f35mr13978875otb.232.1593438050647; Mon, 29 Jun 2020 06:40:50 -0700 (PDT) MIME-Version: 1.0 References: <20200625140105.14999-1-TheSven73@gmail.com> <20200625140105.14999-2-TheSven73@gmail.com> In-Reply-To: From: Sven Van Asbroeck Date: Mon, 29 Jun 2020 09:40:38 -0400 Message-ID: Subject: Re: [PATCH v4 2/2] ARM: imx6plus: enable internal routing of clk_enet_ref where possible To: Fabio Estevam Cc: Shawn Guo , Fugang Duan , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabio, On Mon, Jun 29, 2020 at 9:10 AM Fabio Estevam wrote: > > I have tested this series on an imx6qp sabresd and unfortunately, it > breaks Ethernet as I can no longer get an IP address from the DHCP > server. Thank you for testing this out on a different platform ! I had a look at how things are done in the Freescale fork of the kernel (5.4.24_2.1.0) and I noticed that this kernel has almost the same behaviour as this proposed patch: the GPR5 bit is _always_ set on a plus. The code does not check how the enet clock is generated. https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/mach-imx/mach-imx6q.c?h=rel_imx_5.4.24_2.1.0&id=babac008e5cf168abca1a85bda2e8071ca27a5c0#n269 Now, I'm assuming that the sabresd-plus can run on the Freescale kernel fork. The GPR5 bit will always be set there. So why won't mainline work with this patch? What have I overlooked? I'm sure you've checked that sabresd ethernet works ok on mainline even without this patch?