Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5401941ybi; Wed, 12 Jun 2019 01:47:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqw84k70H5ZdHvbL3PJ6L+vV0U+ZFQPPw9Ui0NkjBZBm59hBActihUpEBY1HBfYqsHrdRFvR X-Received: by 2002:a17:902:6b03:: with SMTP id o3mr80232256plk.85.1560329275621; Wed, 12 Jun 2019 01:47:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560329275; cv=none; d=google.com; s=arc-20160816; b=GqvhkqJ/Ntv20+EoVW8VCrNidIu0ci68gJx4+DAd2es1PcOY5v60Ki6PUfz7hJcXdU /yRWN5ekfVO2rqkli4b1RD1QYQqYGCTM4HS8ovXzmJU1IaNF9O7snZk+Jj7HuVKVYNqy WtJ0gIPkRpKHOjBtVRSBXiHo8LBO0IEXVzQfErSF11LuTerKdbrPLBwPjBI6KneAcwO8 BzlP3baUtJQ8h8CObOiE9x8NQC68Il/n+QgByXSs9gpWmWMCSoMUtjIon5P1ApafeWwU ec+daIBD7gXgyQiNyLTiAdSiwN1AO4ukQ+9gnUbfkO2McbvtNaKT5CY0uU0KXcCV5Q+F +hDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YqGT5WThCZMYA26dhJESzrde7q0JaRkvOxBfpGhYiSg=; b=v+htMxescaw/h7ChceMsYsORNzij7uCWHMAyz0SUiScJcbmoywDEIkvei4uH3fCmr8 qGxnQem/dURSFA5E2XHHBt/eGhtYcmwiu2lKA+g/4CxrtFPopc/GPfxHzqLNK/R+zPVK Sn5BVjEYVxeiyjjPGmONCbCppmumg0Ze/RgvyBECg8eB9E+xQDDOIdQpJiGYUSrEDXdA EsqVu9Pkdpp6BM9axq7fkaT+sYBoHGG1OMj4+0tKvN7ZoGkfqKgxYWYu0DpSC0zxYOYS HXqlgsp5UPTBOyMAmtToIm87rT6gcYCdTqXkjceCFl9EOuKPHxoGuAjQx7CwGMYczQgr zPgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SBRcAI8Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s18si15314348pfm.279.2019.06.12.01.47.39; Wed, 12 Jun 2019 01:47:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SBRcAI8Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730743AbfFLIPw (ORCPT + 99 others); Wed, 12 Jun 2019 04:15:52 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:46707 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730638AbfFLIPw (ORCPT ); Wed, 12 Jun 2019 04:15:52 -0400 Received: by mail-lj1-f194.google.com with SMTP id v24so9925106ljg.13 for ; Wed, 12 Jun 2019 01:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YqGT5WThCZMYA26dhJESzrde7q0JaRkvOxBfpGhYiSg=; b=SBRcAI8Z6fAG9UCaaNYTY7J5flOEau3Q95n3B+63Ji14jC7ffereQ1kDgrEzrGQVAy qqk1BBt5epoNMk9KCmMaqWO1oOQt0E33BjEbPYJHrIhKA2K9B7A1vb0zVO5kitd7grCq YGqPNL7y8c5KwAciDFdRIfHrGDrDnp2O64sT3b2VCwJJY6OAmZ2YK8WFgplqADdfvqVU HnNBzkYpCdO2iyA50XY/+wjHoa9mVNnFfXhkGjeMyqSpElXZ1YnHtAU5iaxG6uSng4ZX 7XAX2ZxseontlFnq3QrJV3yh5iPDu1eGKTuDb23rk5gfmitlfViLvxsMt+35D9fng3TB GEHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YqGT5WThCZMYA26dhJESzrde7q0JaRkvOxBfpGhYiSg=; b=X9wo5pZCxBd6RmHqtMHEqOuJeggL00Np02TmkXZ7NQ8/kaL9FzqxOlMRlHS26U4tvM DVD7RaJcy4t+ZLEUTydQE1D3mnmwVFvBE5jV0QgBP9CFdLnI9eNWyTMG474by2PmwauE FYVjZWDMfvg4v1tbBX8+kSzkXxpIgc/jrw2QCwseZ7VXtQMnpKRKmhDhH62PGn/mRNIp qXChMt88XS44sqB2oBImkVMFMHmED2XjK7VD/Io/AjNzwG2ksDz1bjJiktdGgJCQNND6 FfKEXhWecUBHHVUPPaw1FQfWKZoFX2Fq3FaL1yRz/tOuC9j2kFKiWO+4BqR2xGQeMq0n mf4A== X-Gm-Message-State: APjAAAW8G1eACijIH7+WOWo94GfYsoBEer7ltgKtSwFgEaePvt74Q7zt gSR3bLDK5YcglLjgjWVtTbpMFg== X-Received: by 2002:a2e:4a1a:: with SMTP id x26mr28290659lja.207.1560327349966; Wed, 12 Jun 2019 01:15:49 -0700 (PDT) Received: from localhost (c-1c3670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.28]) by smtp.gmail.com with ESMTPSA id z26sm3003303ljz.64.2019.06.12.01.15.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 01:15:49 -0700 (PDT) From: Anders Roxell To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell , Hans Verkuil Subject: [PATCH v2 2/3] drivers: media: i2c: don't enable if CONFIG_DRM_I2C_ADV7511=n Date: Wed, 12 Jun 2019 10:15:43 +0200 Message-Id: <20190612081543.2203-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CONFIG_DRM_I2C_ADV7511 and CONFIG_VIDEO_ADV7511 bind to the same platform device, so whichever driver gets loaded first will be used on the device. So they shouldn't be enabled at the same time. Rework so that VIDEO_ADV7511 and VIDEO_COBALT depends on DRM_I2C_ADV7511=n or COMPILE_TEST. Sugested-by: Hans Verkuil Signed-off-by: Anders Roxell --- drivers/media/i2c/Kconfig | 1 + drivers/media/pci/cobalt/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig index 95d42730745c..79ce9ec6fc1b 100644 --- a/drivers/media/i2c/Kconfig +++ b/drivers/media/i2c/Kconfig @@ -511,6 +511,7 @@ config VIDEO_ADV7393 config VIDEO_ADV7511 tristate "Analog Devices ADV7511 encoder" depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API + depends on DRM_I2C_ADV7511=n || COMPILE_TEST select HDMI help Support for the Analog Devices ADV7511 video encoder. diff --git a/drivers/media/pci/cobalt/Kconfig b/drivers/media/pci/cobalt/Kconfig index 6c6c60abe9b1..e0e7df460a92 100644 --- a/drivers/media/pci/cobalt/Kconfig +++ b/drivers/media/pci/cobalt/Kconfig @@ -3,7 +3,7 @@ config VIDEO_COBALT tristate "Cisco Cobalt support" depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API depends on PCI_MSI && MTD_COMPLEX_MAPPINGS - depends on GPIOLIB || COMPILE_TEST + depends on (GPIOLIB && DRM_I2C_ADV7511=n) || COMPILE_TEST depends on SND depends on MTD select I2C_ALGOBIT -- 2.20.1