From patchwork Wed Jun 12 08:15:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 166527 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3381461ilk; Wed, 12 Jun 2019 01:15:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSq2opxr4hHl3C7D6CjXyp9efcrDbJeh+CYnQr3k5SMoMS6CTAoTuiBZz+w3Iz4BWjczjx X-Received: by 2002:a17:902:294a:: with SMTP id g68mr82107698plb.169.1560327353706; Wed, 12 Jun 2019 01:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560327353; cv=none; d=google.com; s=arc-20160816; b=mCqDS3/LGlrRcVRmvohdBS+FTcPIiTTA5HTKn44zw+VbFrbjkdp6LnG1sTl/8OXv/w Ua5Q1U0W5TF4rKglHk/yKuIC275LOfa8A4230JVqJkhCL9YAgKMiiI2j/oh94cl8P91j R9anVJpKuv4spavIqKtYH51c5pX7syU8SJeYU+AVJgW9/yik4hp8L8NPA5cQ1XqC2XLX WaDtx+g0KymqXG/obkBEJ5iHZKFUx0YYJEC+9jJjAf/cB/swW0Y1B9auqqlaea6gQIwF NQsZ9WwrVSa2oOwDheakk217y68+WCKVyw6paBgM49sO67YBOpzme4HKdFwGyM9uOy9T naVw== 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 u126si15319526pgu.117.2019.06.12.01.15.53; Wed, 12 Jun 2019 01:15:53 -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 S1730763AbfFLIPw (ORCPT + 30 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 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(-) -- 2.20.1 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