From patchwork Wed Jun 8 17:44:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 83767 Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1nyzkd-00CSwb-JX; Wed, 08 Jun 2022 17:45:52 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232849AbiFHRps (ORCPT + 1 other); Wed, 8 Jun 2022 13:45:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232797AbiFHRpr (ORCPT ); Wed, 8 Jun 2022 13:45:47 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE2E2182B8C for ; Wed, 8 Jun 2022 10:45:44 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id s12so35684283ejx.3 for ; Wed, 08 Jun 2022 10:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HRZfT94ACJ/ZflqdJTZPyeewUEefd9u2TxCqAzB+We4=; b=0qvEqaRFCp9bGX+rR3Aei4WUOjpKK7JLzGAMSp6lcRA1usnTCK1sq5Xr/8V55qwx83 PHl2O7yVgwUMRHtENwLS1ZtG/LMfg/qHaIsz9UxPKntaWDKd5qjfcOj1jYwUV6GEwIeS DAPsJt1j0V6HB6Cd1l0P8L/RKd5EtKnvK4GlCdRHQV9dR2opbJ4/S7CKyrC5a4KUtiZP zP8LBw6SXQfysJ4USKSZY92fWl8x7Lw3yieMwXyc8OJhPCDanVZy3Zv/NmTTkgHwfbSx E3BNqt2u6umqqdWSjNKGubo+elVvEmfGHWvUdGYTDH/ueeNj833M9fkj6NND2FHZ23ZP 7dKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HRZfT94ACJ/ZflqdJTZPyeewUEefd9u2TxCqAzB+We4=; b=LvL51KqErJmizYBeM3CAwtnXH5adKbgCxKldP5lDHQfXguwF8eCpT6RwyMPndzfg5b Y0cIrA7GKzhwH3aXkvsLIq7eQeDcdtHLyfAILreXxaYbEE9J4yw2L5Nuv81LUgsi3Bdu cTsQOI8LuQsq3ol8CMfx4nxQ0IK5jvjulzMLoQrrE16sU3p5CY7aTdREftEp5HYhpyrj mGuDYh5MhM7SM3+RfKLQk7VOtrSgXX2D2LgrC/OZoBEteNa9IGSUnaznQBPv6ZuRypPj MrvQdXo3Cw1f7k7qrq0h3BDaUPvS9PSoyjf000RRPLS2nvev22qEw4HHjHJc1W8X08oe 7aWA== X-Gm-Message-State: AOAM530V5pNA2en+es5YbBvqSsx85b5pZSjLdOkpcLBIB2Kf9EaGgiMZ inT+1AYBSULVr8uF226Mraxp7T6X9/OKS4QA X-Google-Smtp-Source: ABdhPJxZrDv9P9wvMv3NiaJqpKlWSAGH1JqH1nAo2JYFdxRuhcrMtIt3QAj6+f9RG5fT5WXnai8tlA== X-Received: by 2002:a17:906:72de:b0:711:f8c8:ba00 with SMTP id m30-20020a17090672de00b00711f8c8ba00mr3113312ejl.586.1654710343431; Wed, 08 Jun 2022 10:45:43 -0700 (PDT) Received: from bismarck.berto.se (p4fca22cf.dip0.t-ipconnect.de. [79.202.34.207]) by smtp.googlemail.com with ESMTPSA id j6-20020a170906254600b0070c1c494f73sm8152905ejb.90.2022.06.08.10.45.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 10:45:43 -0700 (PDT) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Hans Verkuil , linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Geert Uytterhoeven Subject: [PATCH] media: rcar-vin: Fix channel routing for Ebisu Date: Wed, 8 Jun 2022 19:44:46 +0200 Message-Id: <20220608174446.994823-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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-media@vger.kernel.org X-LSpam-Score: -2.4 (--) X-LSpam-Report: No, score=-2.4 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no When converting to full Virtual Channel routing an error crept into the routing table for Ebisu (r8a77990). The routing information is used at probe time preventing rcar-vin from probing correctly on this SoC, solve by correcting the routing table. Fixes: 3e52419ec04f9769 ("media: rcar-{csi2,vin}: Move to full Virtual Channel routing per CSI-2 IP") Reported-by: Geert Uytterhoeven Signed-off-by: Niklas Söderlund Reported-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven --- drivers/media/platform/renesas/rcar-vin/rcar-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/renesas/rcar-vin/rcar-core.c b/drivers/media/platform/renesas/rcar-vin/rcar-core.c index 49bdcfba010b2c8a..4b7a9743554af6c3 100644 --- a/drivers/media/platform/renesas/rcar-vin/rcar-core.c +++ b/drivers/media/platform/renesas/rcar-vin/rcar-core.c @@ -1261,7 +1261,7 @@ static const struct rvin_info rcar_info_r8a77980 = { }; static const struct rvin_group_route rcar_info_r8a77990_routes[] = { - { .master = 0, .csi = RVIN_CSI40, .chsel = 0x03 }, + { .master = 4, .csi = RVIN_CSI40, .chsel = 0x03 }, { /* Sentinel */ } };