Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12672035rwd; Fri, 23 Jun 2023 09:05:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5x8iW2sVElt/3rNsnA9Po0cgWj348jtvzdYdUFCAd67z/rtkray4XR73hRMqEYUtBVxxCA X-Received: by 2002:a17:902:db0e:b0:1b6:9b29:bb1a with SMTP id m14-20020a170902db0e00b001b69b29bb1amr5861031plx.9.1687536310137; Fri, 23 Jun 2023 09:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687536310; cv=none; d=google.com; s=arc-20160816; b=Sf4pYi+dWUUCDPoiOS3O6pINUr7pjKUP1rqDtHtSQgoCK6N8F0GcpPEF8/LgiPKuBo GOnOnHthwTRAskLVM3QAWql3EVM7Dr82tkFZArJ4FH0Ia7zi/u0KFB9059gLxZqducEg S/Wy49MF62JBfgRIovHtn3mGkDIFZqo6ASGGoU6o9IbOnl2WBP0gC4nkzYxc8y87M1So phv/5P6+2azIQaJ4AFtKAHI3lU/+VbpFWzBtJX2a/09EvUWgcFRb6MV8Tab46K/PmWZ4 hE4BWKCeVGR6i1wopukMVcER/cTwQTatJ72ey38DwuE09eLq3ewuZuTzO1chrhDxMFd7 GWsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=D3YB4CsDlXuA4PRImFuYGLZmBzGr99z1kfbmtM5oM3c=; b=F6OMv4WmOWeGa9Cmfza5wzsyHNYuvJg9YzA36IP80o8SGrXCHhhlgEWpxrz8X1b5Pl 9t/t1XEbCzyWkjeDQrukfpGO9d0cXNODS+Fr/g+/6x1mViMRJR28I/Bjtr+VCj9HoCLW b+ebZMaKGOo9b/Adtd6rX0CY/zBfGNkqGrxNq/RPh9CxfMoQ87qTdwste7/hN0OBczaB mOlBTkCmEyN07RkxTw81lZeaJrC0IaxMexUtg0jRh0cbCWDviGE+7cRfiHMhbxXewcNn IPybDHq/fuDEReaUWEfxdy7CxVSZeCMUVvTKfbqZFQ5fwYw83/n9ZkHtDMuVuQjPya88 fALQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a170902d54a00b001b074fbdce3si9417234plf.478.2023.06.23.09.04.55; Fri, 23 Jun 2023 09:05:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232626AbjFWPld (ORCPT + 99 others); Fri, 23 Jun 2023 11:41:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232648AbjFWPla (ORCPT ); Fri, 23 Jun 2023 11:41:30 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 963B02120 for ; Fri, 23 Jun 2023 08:41:26 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qCiuF-0005nd-N4; Fri, 23 Jun 2023 17:41:03 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1qCiuE-0007FL-Eg; Fri, 23 Jun 2023 17:41:02 +0200 Date: Fri, 23 Jun 2023 17:41:02 +0200 From: Marco Felsch To: Arnd Bergmann Cc: Mauro Carvalho Chehab , Arnd Bergmann , Vinod Koul , Kishon Vijay Abraham I , Sakari Ailus , Laurent Pinchart , Hans Verkuil , Gerald Loacker , Bingbu Cao , Mikhail Rudenko , Linus Walleij , Vincent Shih , Mark Brown , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: Re: [PATCH] media: tc358746: select CONFIG_GENERIC_PHY Message-ID: <20230623154102.gjyorfxpzvbnfa4y@pengutronix.de> References: <20230623152318.2276816-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230623152318.2276816-1-arnd@kernel.org> User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Arnd, thanks for the patch. On 23-06-23, Arnd Bergmann wrote: > From: Arnd Bergmann > > The tc358746 driver selects CONFIG_GENERIC_PHY_MIPI_DPHY and links to > that, but this fails when CONFIG_GENERIC_PHY is disabled, because Kbuild > then never enters the drivers/phy directory for building object files: > > ERROR: modpost: "phy_mipi_dphy_get_default_config_for_hsclk" [drivers/media/i2c/tc358746.ko] undefined! > > Add an explicit 'select GENERIC_PHY' here to ensure that the directory > is entered, and add another dependency on that symbol so make it > more obvious what is going on if another driver has the same problem, > as this will produce a Kconfig warning. > > Fixes: 80a21da360516 ("media: tc358746: add Toshiba TC358746 Parallel to CSI-2 bridge driver") > Signed-off-by: Arnd Bergmann Reviewed-by: Marco Felsch > --- > drivers/media/i2c/Kconfig | 1 + > drivers/phy/Kconfig | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig > index cf675ac4b1326..226454b6a90dd 100644 > --- a/drivers/media/i2c/Kconfig > +++ b/drivers/media/i2c/Kconfig > @@ -1305,6 +1305,7 @@ config VIDEO_TC358746 > select VIDEO_V4L2_SUBDEV_API > select MEDIA_CONTROLLER > select V4L2_FWNODE > + select GENERIC_PHY > select GENERIC_PHY_MIPI_DPHY > select REGMAP_I2C > help > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index f46e3148d286d..8dba9596408f2 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -18,6 +18,7 @@ config GENERIC_PHY > > config GENERIC_PHY_MIPI_DPHY > bool > + depends on GENERIC_PHY > help > Generic MIPI D-PHY support. > > -- > 2.39.2 > >