From patchwork Wed Nov 24 17:59:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 12637281 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F630C4332F for ; Wed, 24 Nov 2021 17:57:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350048AbhKXSAl (ORCPT ); Wed, 24 Nov 2021 13:00:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350026AbhKXSAk (ORCPT ); Wed, 24 Nov 2021 13:00:40 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9083AC061574 for ; Wed, 24 Nov 2021 09:57:28 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id 137so3253005wma.1 for ; Wed, 24 Nov 2021 09:57:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=buYviz0EsUgobZTb1+UWjhyi7czeVNwVeTqZcQGLq9E=; b=om9pPKapcEc98HyXuYtg7ce2jRCXQPfnTfzGCPeUJ6R4ze+Cok6kn5Vbs17jY6rhfc WU0LDMZcDbI46qAl3FtxundYfl0hk8bMvhGWPZ6wXvierA9RCM1uj/B2LAGy5o84+iGB 3dZRd44btHWlV+OipEKZyvj2N8kAXcN7Aon/faSsx4BECnZC9aV5MRLRJwbLEAEV4Jgh 4wrhjFZOu6A8sirBkqzjpsNad5uwXMyNdUulBzqv/5FWt5cRgmqQyT0aeXR6RwqMDGkV 4Tq0yVxJbQ1O2O0ZQ8H7zjmF6lqGooPBwSCr5g8UqML2WhH7GHTgTMO2L9lLY0RyOqRy Pk1A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=buYviz0EsUgobZTb1+UWjhyi7czeVNwVeTqZcQGLq9E=; b=ccP2NP26rxL0YRvFkZ22EGXM6E6cMuQc0N6kswkIVua5GF0GtOFmdETX+dB+4UluHr m7PdWCQXnzbvdzuLuu2dHbfwcxYOsK/EhXoz8BAMKlGyx453Ut5PInrdi9wKg1SOfqzu I7U2KrQDi+SW5DBUbFo14AbTawGDQk9Ycg3sHJ2K7i/JTEUx9pTq5Luu/SxHOHl/5gkh ypisWQ7jY1LPjXz/MA5Goc3yVj8DDHHvSj+iLHXuSeSewL0f0SXi++X34rAsKtBZsy9a 5dyZilGmH74jAhanciC8htnI5RO3f8coW7+WHx90VjVHf58Zx/7EVD+xFdK1pZ1vL1bG QVVw== X-Gm-Message-State: AOAM5325Z7k1DtxaDqqjLGt4Rbo0aH9+xSf9oKWmuYfcu9LIWck2OrbH 2D/T054tOzl3myaIiiG9YFKa5g== X-Google-Smtp-Source: ABdhPJzUWWh1rY/vGhf6D+Xs+DG/2hKxSdPAOniWGRr6UDQMnE8/xWx+DAqX6UgrVPMoWJ6vaXDweA== X-Received: by 2002:a05:600c:6016:: with SMTP id az22mr17964279wmb.11.1637776647206; Wed, 24 Nov 2021 09:57:27 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id s24sm380576wmj.26.2021.11.24.09.57.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 09:57:26 -0800 (PST) From: Bryan O'Donoghue To: linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, robert.foss@linaro.org, jonathan@marek.ca Cc: andrey.konovalov@linaro.org, todor.too@gmail.com, agross@kernel.org, bjorn.andersson@linaro.org, mchehab@kernel.org, jgrahsl@snap.com, hfink@snap.com, bryan.odonoghue@linaro.org Subject: [PATCH v2 08/19] media: camss: csid-170: support more than one lite vfe Date: Wed, 24 Nov 2021 17:59:10 +0000 Message-Id: <20211124175921.1048375-9-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211124175921.1048375-1-bryan.odonoghue@linaro.org> References: <20211124175921.1048375-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Jonathan Marek Change the IS_LITE condition so that it returns true for the second lite vfe found on titan 480 hardware (8250), which will have id == 3. Signed-off-by: Jonathan Marek Reviewed-by: Robert Foss Tested-by: Julian Grahsl Tested-by: Bryan O'Donoghue Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/camss/camss-csid-170.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/camss/camss-csid-170.c b/drivers/media/platform/qcom/camss/camss-csid-170.c index f0c6a72592f9..2c84d40fe3e0 100644 --- a/drivers/media/platform/qcom/camss/camss-csid-170.c +++ b/drivers/media/platform/qcom/camss/camss-csid-170.c @@ -21,7 +21,7 @@ * interface support. As a result of that it has an * alternate register layout. */ -#define IS_LITE (csid->id == 2 ? 1 : 0) +#define IS_LITE (csid->id >= 2 ? 1 : 0) #define CSID_HW_VERSION 0x0 #define HW_VERSION_STEPPING 0