Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12657065rwd; Fri, 23 Jun 2023 08:55:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wGSlMUpo5QxcU03xulN9BObHXxDSoMiMhtyvIEHtEU7Hey8IXCgXNPrY8g4ytL3C0JFoW X-Received: by 2002:a17:90a:19ca:b0:261:3202:3c4e with SMTP id 10-20020a17090a19ca00b0026132023c4emr2435750pjj.25.1687535735127; Fri, 23 Jun 2023 08:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687535735; cv=none; d=google.com; s=arc-20160816; b=XqSfs+jrt7Famy4rDxzHsRcj1D3HiM/aETD8i54v6qbDiKDuCYc366lqId9Ql7caTw CgwBz9XErKrp8TorR922ppvj8JGww+xmn9PfwFwz+A1yl1JUKR6a5rflfFb0omtLjo8E bk4gpRmjIkMKkyHZr5JKZRJdqiZGgg8rihNT53jCfKHchDfrRjdSWP5vVw90ymieBLdT IqlALbuadKCw4fFrVBAGy0BgPSKk9/TkRhiHkzJ/aMZAgP0w913gnRPcPnauqhmmonq5 o+0oKFL2MYH6ATvwrqdL4pEWaLb/zRrEOkg75BdcqewWKJ6I5lVPZMw86Ajf+aWRbC48 FJVg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Z4QrnsrXEQGqtIechqcY/lSbMW6NMjpfCaR67f7+sl0=; fh=t/p31r2zRIBo5nQQfIsHxHr1YwqRBP/b/zlv9+I0Fbw=; b=ep4TQGyT5apPOpbGc8C8tomce93mlRKzTSQloZ7VIFAsaictfi4GCRA/qaL0Nobm1E 6BDvCtHBeN/jyBXfy7TtGd7WlOXjo19CmsJ6dO4bAJCqy4/l6vlGQbzBGv3ukavHMQge zI04uSysBhOV7rKQNygRE3i7pf5JLkiDOClZo1JS2ftCl3cywgn95IrnZy1xCajM9UVz doFFIqelNEQ+vONfhtGieMhbwL+RPdL+1WxSUo0N/1TgLIWCo9bxhrql2CfjMwXZ2NjO 1ZoCGG05kbMdy2DH3PQHomJUNl2lxJqGup3m9TZ4C4rVgRxNNSFStaILanfqhfQuaCGg u8jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mDEZWbDg; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw3-20020a17090b180300b0025672fbdad5si2237418pjb.178.2023.06.23.08.55.23; Fri, 23 Jun 2023 08:55:35 -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=@kernel.org header.s=k20201202 header.b=mDEZWbDg; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232161AbjFWPXb (ORCPT + 99 others); Fri, 23 Jun 2023 11:23:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232211AbjFWPX2 (ORCPT ); Fri, 23 Jun 2023 11:23:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2444319B; Fri, 23 Jun 2023 08:23:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A775761A87; Fri, 23 Jun 2023 15:23:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CD60C433C0; Fri, 23 Jun 2023 15:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687533806; bh=6tFbzhaBjmMoKkG1CNrCXK+CWNwGbleX71IfZSZAiRQ=; h=From:To:Cc:Subject:Date:From; b=mDEZWbDgdq4hMs2Z9jt15TcgjRbUQiak6kDW7/sDpz1hUykHwK4yFRVHb8XXp6T2U ce3AcuUDeo4JGbomgkEqmbOvufUqNXyZxgNQNbTdQI5cpffJae8QEhZ7Hzx0m+w4uj eunRKNh3i1N+O/ugxP03zzduODf/mgqaf2/jbpakUccSSKzbEtaECmCdKmI1rYNKOq 3ZctNYWyNmGJj3Xb4+5ZvTvknnYPl8OG4O0yQ9q284fsyMio13ObzjE5InpVP0uyFQ QR4zMlZpyRjNvTocgOiyBcGvw1YZ84AOnn7cm5RkbGbbJVdWzok9eEPN4xhmWOVxO8 C15PaBm99di3Q== From: Arnd Bergmann To: Mauro Carvalho Chehab Cc: Arnd Bergmann , Vinod Koul , Kishon Vijay Abraham I , Sakari Ailus , Laurent Pinchart , Hans Verkuil , Marco Felsch , 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: [PATCH] media: tc358746: select CONFIG_GENERIC_PHY Date: Fri, 23 Jun 2023 17:23:09 +0200 Message-Id: <20230623152318.2276816-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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 --- 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