From patchwork Tue Oct 1 14:55:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 174871 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp8662738ill; Tue, 1 Oct 2019 07:55:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqytKP/G+C/0kP55qklgybYw1YYoBr9Wx8a8NehW8k2qgtWNTVvK9FUMRoeA76TJ6Id93/hj X-Received: by 2002:a50:9e65:: with SMTP id z92mr26160698ede.49.1569941727794; Tue, 01 Oct 2019 07:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569941727; cv=none; d=google.com; s=arc-20160816; b=aInDU5/dqZ1dc1kHnSuk9z6rUbVTJN/fG2ZI2XrHxwYOLaEAeRlnYHJ3+PeZqcY8A0 MYK3BddwJbDAdCf/YQ1sMFih937Tq1VNRP2uU/VWpSoskvdmo5UUlutq5+4QKCRzGp+a w2jzihrO9AIwiU9uqKsOcPxykLOhh1QpOJ6Ineu7SLs8vmoIWaJxqlnDFQ9ZaP0B0/gT EZ3yhMzn0WHFly1328ueplLlBSvdQ6vY/WAtnYpYIhy8I/B2l6Qa/6RnZZnYw588svK6 N7+5sWcqZGSwG4de3WdDBq/91Egc0n8hIwE1cMW9zEOT2BJzGOwHtsSKQG6yW5lq771u jmnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Sn9Zfn+XhULxHVCD81RfCVoZrivT06JVI9E5/FBOWiM=; b=0FDYkgqp/XMxVLWwDY7DTeLFr8XgqVMA9d/teTY68z7Jz6FIrahFp5m9oWU6ONeZ9J 9zZddZIhqAGtuIu1MUgNW8WR8DN9iQr1O3mxAVeXH5dEhy2hX0WknYUy5lL71NMGIpKh fwKj9BPWQ09sAZAxvp0tFqwuur8o+/lPaj9znJ9PgTLIbAQA7rjYl14uItMqq8Lsazug zSZRTQkEdOl0OMETz9Dnm0epLxsn0ZeWMQbzv3nXxxicjX2Zy1772Ay0+HThNps6ngha nCoQY9E+qPrr7WnRU80wP/pV85xuPdqCLWyr5wR0z7vTAsWqs6Psz34ECUxzyfUWoyPU vUnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j4yDI2nT; 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 gh16si9129617ejb.150.2019.10.01.07.55.27; Tue, 01 Oct 2019 07:55:27 -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=j4yDI2nT; 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 S2389323AbfJAOz0 (ORCPT + 27 others); Tue, 1 Oct 2019 10:55:26 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33999 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726987AbfJAOz0 (ORCPT ); Tue, 1 Oct 2019 10:55:26 -0400 Received: by mail-pf1-f195.google.com with SMTP id b128so8200368pfa.1 for ; Tue, 01 Oct 2019 07:55:24 -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; bh=Sn9Zfn+XhULxHVCD81RfCVoZrivT06JVI9E5/FBOWiM=; b=j4yDI2nTwT2Cgc79IjkCT0/2mH4FjvELE85s/xf0MfVHY3aisg4o85vfihFmdM4e10 zb6aKwrfsrEpu3HFEJ/AfK2R2Qp24gh432aljuykgZbcLHX0vINWSW/CfPx2JXLV34BC MK2Tm93cZxSNwwKu2+i9nMXoF+i8NvjwYtLYHOhnrFxzIbKuFuAMOdPm9qZlCyLrT08v tAip/I4DUATMO6N0p1IoF2WpYHX2RTZNffK0cGF82KlC3ElUe21UdGu+ylop2XiqSe4B 268oFTLJREkZUaEc6eBxzYcKsWpt9cU/c74x4c3h0ETfKn+bl5QtMOaIwPR32ZQT0307 PbiA== 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; bh=Sn9Zfn+XhULxHVCD81RfCVoZrivT06JVI9E5/FBOWiM=; b=s0QgBpDutEjQp79lLf0BwLLAjFTNfjLzxWS0qC3qXuvDhufIfjbtx39jKMwUDxszNh n1UwLDsYzJfaBhWjk411KUqcLvRuxeTi60fpGxy2t7OCHNAjJHJ6IMF/YlnZTAzVbs+x VgNxhApgIKzEPugOZhBrC7tq4Q6LvO47brpIbJJzBpKn3tc/uXP0qymabbgN0EdvtK16 7PIAZ4gS6jo0dyzv1Zzf3OApA7fZ4sLCg3r3dMnKiYCZquLtqmst4llMLshA6kcR3oA+ XQ7z8wK7jPoOV2vomPxH9L6B/IBg3HeCAjymtA/BwvgcibJRFjHQGioxJmrN0JLmqjXn 2OGg== X-Gm-Message-State: APjAAAW5LTkEWnV3JLQ0GnvMa9ObC2I6pjNHRiB2tunbsp/6jzBn+Lvh l1YPrfeJzkFnwrKq8YSiMi7G X-Received: by 2002:a63:8c52:: with SMTP id q18mr4520549pgn.284.1569941723896; Tue, 01 Oct 2019 07:55:23 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:631a:1d56:6a:8714:31a4:1f8]) by smtp.gmail.com with ESMTPSA id k93sm3333433pjh.3.2019.10.01.07.55.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2019 07:55:22 -0700 (PDT) From: Manivannan Sadhasivam To: jacopo+renesas@jmondi.org, kieran.bingham+renesas@ideasonboard.com, laurent.pinchart+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH] media: i2c: max9286: Pass default bus type when parsing fwnode endpoint Date: Tue, 1 Oct 2019 20:25:03 +0530 Message-Id: <20191001145503.5170-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The caller of v4l2_fwnode_endpoint_alloc_parse() is expected to pass a valid bus_type parameter for proper working of this API. Hence, pass V4L2_MBUS_CSI2_DPHY as the bus_type parameter as this driver only supports MIPI CSI2 for now. Without this commit, the API fails on 96Boards Dragonboard410c connected to MAX9286 deserializer. Signed-off-by: Manivannan Sadhasivam --- This patch depends on the latest "MAX9286 GMSL Support" series posted by Kieran Bingham. drivers/media/i2c/max9286.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c index 9390edf5ad9c..6e1299f15493 100644 --- a/drivers/media/i2c/max9286.c +++ b/drivers/media/i2c/max9286.c @@ -976,7 +976,9 @@ static int max9286_parse_dt(struct max9286_device *max9286) /* For the source endpoint just parse the bus configuration. */ if (ep.port == MAX9286_SRC_PAD) { - struct v4l2_fwnode_endpoint vep; + struct v4l2_fwnode_endpoint vep = { + .bus_type = V4L2_MBUS_CSI2_DPHY + }; int ret; ret = v4l2_fwnode_endpoint_alloc_parse(