Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp292681pxb; Fri, 15 Oct 2021 05:47:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuf8HcjmDLeJNFP8QwXed2/k5xnS2o+gXpbLg5NWv8zr+dRFBYDgyR+lzhRjEbQgDS1nI7 X-Received: by 2002:a50:cd97:: with SMTP id p23mr17815208edi.206.1634302051913; Fri, 15 Oct 2021 05:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634302051; cv=none; d=google.com; s=arc-20160816; b=lj21soTX1G99syA8VETgEWTzCViLG3kWHx3HjYVSzbk9uuyQLy1acQjDd2ea3TDLmX HSU07U8Febdq9DA2Ao15Zgui2sqe9hCLMfavK5UCGyzT+kBufPG7J0g4LP02+h2N+Ja/ aCw9gHxkIFPA04p5nbaXKJohVsB1sTPGAczAeJUqBtcLrhSizDLmrwGxl40MbPGwYZ4j 3jNWMsgcBiOfMRYJIQvuMLqqnnuVzOtfalxnj3Qkdt5HcZUweA5Gn6tLnf4BWwSdiUhV cgmNL/8lV27jwnq7v4/vK3QqAlYv5ii189i0bN9kKFaFgQQuP1u+lBqbcfJrWoFKZl8e /u7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=EeqGcsm7RTKlniuoQ/dGkOIPSSc1dZROADBLZSH8YyY=; b=HKqGRLvbZyz124/TGvdRqzqYALfoOPGdWT31AN8/mgEf8aK6glfcfKB3b5qWORsmxr 60IEoIcfW03kaMagm+ElHV0DQSC20CG7gVYxsEp+disLIsBSCjAJlpTOmRP3xlriD/Fr eF4hVrGVMJsNtiOdgt8aheIGJiP0rmrDsJT+8Dmzc3zBQBVtWjbACmyufiZOADaKam3o 4fwXeDhcouvARuo9/Kv3CLs2qqQBZIHCy62rKgSqXeOmG8y83sL+hVUA/MbnYRDslGD9 QQ/HZd8pgHLjL1IfHY1O4CbmgVsvzt1mjzJUjG75dNJyrrHtYIImxWe6k+RHn7+NyE9m P4nA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x88si8290416ede.207.2021.10.15.05.47.04; Fri, 15 Oct 2021 05:47:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233276AbhJOGWx (ORCPT + 99 others); Fri, 15 Oct 2021 02:22:53 -0400 Received: from mail-ua1-f41.google.com ([209.85.222.41]:39917 "EHLO mail-ua1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbhJOGWw (ORCPT ); Fri, 15 Oct 2021 02:22:52 -0400 Received: by mail-ua1-f41.google.com with SMTP id f3so15949380uap.6; Thu, 14 Oct 2021 23:20:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EeqGcsm7RTKlniuoQ/dGkOIPSSc1dZROADBLZSH8YyY=; b=euqc3fFdWnDkRL37JrUkyB3Vh1RazcT6QLxJb0MGlnRDtupYB5dmhtiVcn9QgrlPzj bqNC4hBcjchzeTgWCzKXAQZehhShanYyWE6ex0Qh+2VwT1xJH9V80h7QCPTLfJ7/wCRJ /X9m0ATZvMIMJiQsbVt7rIOePV6A8A+cOMyAxdEwEYJswbyFbqIaMO12m9GUWCWlekxP ENw4wQgLGCJTH2vAXzv8B1ka55O01RljAZunCzmudTIb8czzb/uT380d9+ffAfX3hnCf sNXx8WfwQJ9TWOrpQ9LmiqsJ+NwOluMhDj0b3Q21k1IJwxDomQjQT639gUSF2qAKpHx9 /k5w== X-Gm-Message-State: AOAM5307iJFbEn62u1mviKA64qkJZROuKxZnU4aY8VPrEnk0ntddPdZD C1+hFpSXs7+DT6IadIjfj+2Vu8inbVK2NA== X-Received: by 2002:a67:d38e:: with SMTP id b14mr12472403vsj.34.1634278845566; Thu, 14 Oct 2021 23:20:45 -0700 (PDT) Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com. [209.85.222.48]) by smtp.gmail.com with ESMTPSA id v184sm3133975vka.34.2021.10.14.23.20.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Oct 2021 23:20:44 -0700 (PDT) Received: by mail-ua1-f48.google.com with SMTP id i15so16076956uap.0; Thu, 14 Oct 2021 23:20:43 -0700 (PDT) X-Received: by 2002:ab0:538a:: with SMTP id k10mr11690117uaa.14.1634278843480; Thu, 14 Oct 2021 23:20:43 -0700 (PDT) MIME-Version: 1.0 References: <20211013144308.2248978-1-arnd@kernel.org> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 15 Oct 2021 08:20:31 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm: msm: fix building without CONFIG_COMMON_CLK To: Dmitry Baryshkov Cc: Arnd Bergmann , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Arnd Bergmann , Randy Dunlap , Alex Elder , =?UTF-8?Q?Christian_K=C3=B6nig?= , Akhil P Oommen , Rajeev Nandan , Abhinav Kumar , linux-arm-msm , DRI Development , freedreno@lists.freedesktop.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, On Fri, Oct 15, 2021 at 2:26 AM Dmitry Baryshkov wrote: > On 13/10/2021 17:42, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > When CONFIG_COMMON_CLOCK is disabled, the 8996 specific > > phy code is left out, which results in a link failure: > > > > ld: drivers/gpu/drm/msm/hdmi/hdmi_phy.o:(.rodata+0x3f0): undefined reference to `msm_hdmi_phy_8996_cfg' > > > > This was only exposed after it became possible to build > > test the driver without the clock interfaces. > > > > Make COMMON_CLK a hard dependency for compile testing, > > and simplify it a little based on that. > > > > Fixes: b3ed524f84f5 ("drm/msm: allow compile_test on !ARM") > > Reported-by: Randy Dunlap > > Suggested-by: Geert Uytterhoeven > > Signed-off-by: Arnd Bergmann > > This drops dependency on CONFIG_OF. While ARM64 selects OF, pure ARM > does not. But SOC_IMX5 depends on ARCH_MULTI_V7, which depends on ARCH_MULTIPLATFORM, which selects USE_OF, which selects OF. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds