Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp780978rwb; Wed, 26 Jul 2023 02:47:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlGtAGEQE0S1fTs6mUY9jPvgGKcbreUHXudAxvsAjKiJReHzhN+mFbVJ+72DLo2380dQHf9f X-Received: by 2002:a17:906:f15:b0:997:e8b8:8d6 with SMTP id z21-20020a1709060f1500b00997e8b808d6mr1078605eji.28.1690364869182; Wed, 26 Jul 2023 02:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690364869; cv=none; d=google.com; s=arc-20160816; b=z1NZqGGP8SrnVxAfbDOBYAKQ0RcvndUp9kR0Yszp94xRlIRquAIL4H6zJZxNc0px99 +bUV99k3weo0vlJRWKqWCdktETHDtV9vqbL18NJDH7lpb5seAfv5lgTZ0y/xIaa63ntS 42TeApnrzEG47hEL+zoER6LwPA8v9JopuA18ga4HvZDBjdYPxuy9CocPjh1RYlc/bojx ooBcidekdGjNgENu0HfB5o0x8m+TTVmvHUZZ5CXaumZ9F67t6yy7KotqjClpYmT0tplo CRSLePLrTCDOmmUtnWhAOODTkk5xJKtpA2eFNQnu01pUOuhhk8ObqoZ5Y3y7VAYKagQY QG9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=xlsmSXUk8m06Popobl+mXC8WYBsNL0+UJYa+Wb9u5LE=; fh=L4O55LpA42zFjvHo9LQg490mI5C4KWUCqEMDwruVXk8=; b=USQ0nyxv+cCK/+o2MIdd2T4s3Gl4z1nEM/nHrZ+e9wz00kOK7gInppEm8oLmfD/yQU SYe99G0vAX/F8kicvXWozLicWXh5C7xBwNyLRJ2YMfjI/vfLPesxROEqotmdMKREnlC8 FMRORxUUM5LhfZD+BURXYHymXSwv+fJ12OPXAQEA1ELRx2nJ6SqO8R9ZOIOkjnIrNFMd k6pbJRNIjC2UF4vv+SNo7lRBFtqWSM4Kg4dYmImsT05E7o4BNFSfsq2O46OQwQc7fl/5 Uj7hLijXw3Uj3KBrMBP7Kk+nVASSb1h75JLVOMVTxVFQhrMM7eY+Sq/3TsP7EBgl27no NBfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a170906288500b00992cd72e0b1si8792213ejd.667.2023.07.26.02.47.23; Wed, 26 Jul 2023 02:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233647AbjGZJS0 (ORCPT + 99 others); Wed, 26 Jul 2023 05:18:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233761AbjGZJSC (ORCPT ); Wed, 26 Jul 2023 05:18:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1169546A0; Wed, 26 Jul 2023 02:14:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2F20D619EE; Wed, 26 Jul 2023 09:14:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DF72C433C7; Wed, 26 Jul 2023 09:14:24 +0000 (UTC) Message-ID: Date: Wed, 26 Jul 2023 11:14:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v8 1/2] Added Digiteq Automotive MGB4 driver Content-Language: en-US To: tumic@gpxsee.org, Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Martin_T=c5=afma?= References: <20230704131339.2177-1-tumic@gpxsee.org> <20230704131339.2177-2-tumic@gpxsee.org> From: Hans Verkuil In-Reply-To: <20230704131339.2177-2-tumic@gpxsee.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-kernel@vger.kernel.org Hi Martin, On 04/07/2023 15:13, tumic@gpxsee.org wrote: > From: Martin Tůma > > Digiteq Automotive MGB4 is a modular frame grabber PCIe card for automotive > video interfaces. As for now, two modules - FPD-Link and GMSL - are > available and supported by the driver. The card has two inputs and two > outputs (FPD-Link only). > > In addition to the video interfaces it also provides a trigger signal > interface and a MTD interface for FPGA firmware upload. > > Signed-off-by: Martin Tůma > --- > MAINTAINERS | 7 + > drivers/media/pci/Kconfig | 1 + > drivers/media/pci/Makefile | 1 + > drivers/media/pci/mgb4/Kconfig | 17 + > drivers/media/pci/mgb4/Makefile | 6 + > drivers/media/pci/mgb4/mgb4_cmt.c | 244 +++++++ > drivers/media/pci/mgb4/mgb4_cmt.h | 17 + > drivers/media/pci/mgb4/mgb4_core.c | 711 ++++++++++++++++++ > drivers/media/pci/mgb4/mgb4_core.h | 72 ++ > drivers/media/pci/mgb4/mgb4_dma.c | 123 ++++ > drivers/media/pci/mgb4/mgb4_dma.h | 18 + > drivers/media/pci/mgb4/mgb4_i2c.c | 140 ++++ > drivers/media/pci/mgb4/mgb4_i2c.h | 35 + > drivers/media/pci/mgb4/mgb4_io.h | 33 + > drivers/media/pci/mgb4/mgb4_regs.c | 30 + > drivers/media/pci/mgb4/mgb4_regs.h | 35 + > drivers/media/pci/mgb4/mgb4_sysfs.h | 18 + > drivers/media/pci/mgb4/mgb4_sysfs_in.c | 757 +++++++++++++++++++ > drivers/media/pci/mgb4/mgb4_sysfs_out.c | 700 ++++++++++++++++++ > drivers/media/pci/mgb4/mgb4_sysfs_pci.c | 71 ++ > drivers/media/pci/mgb4/mgb4_trigger.c | 208 ++++++ > drivers/media/pci/mgb4/mgb4_trigger.h | 8 + > drivers/media/pci/mgb4/mgb4_vin.c | 930 ++++++++++++++++++++++++ > drivers/media/pci/mgb4/mgb4_vin.h | 69 ++ > drivers/media/pci/mgb4/mgb4_vout.c | 594 +++++++++++++++ > drivers/media/pci/mgb4/mgb4_vout.h | 65 ++ > 26 files changed, 4910 insertions(+) > create mode 100644 drivers/media/pci/mgb4/Kconfig > create mode 100644 drivers/media/pci/mgb4/Makefile > create mode 100644 drivers/media/pci/mgb4/mgb4_cmt.c > create mode 100644 drivers/media/pci/mgb4/mgb4_cmt.h > create mode 100644 drivers/media/pci/mgb4/mgb4_core.c > create mode 100644 drivers/media/pci/mgb4/mgb4_core.h > create mode 100644 drivers/media/pci/mgb4/mgb4_dma.c > create mode 100644 drivers/media/pci/mgb4/mgb4_dma.h > create mode 100644 drivers/media/pci/mgb4/mgb4_i2c.c > create mode 100644 drivers/media/pci/mgb4/mgb4_i2c.h > create mode 100644 drivers/media/pci/mgb4/mgb4_io.h > create mode 100644 drivers/media/pci/mgb4/mgb4_regs.c > create mode 100644 drivers/media/pci/mgb4/mgb4_regs.h > create mode 100644 drivers/media/pci/mgb4/mgb4_sysfs.h > create mode 100644 drivers/media/pci/mgb4/mgb4_sysfs_in.c > create mode 100644 drivers/media/pci/mgb4/mgb4_sysfs_out.c > create mode 100644 drivers/media/pci/mgb4/mgb4_sysfs_pci.c > create mode 100644 drivers/media/pci/mgb4/mgb4_trigger.c > create mode 100644 drivers/media/pci/mgb4/mgb4_trigger.h > create mode 100644 drivers/media/pci/mgb4/mgb4_vin.c > create mode 100644 drivers/media/pci/mgb4/mgb4_vin.h > create mode 100644 drivers/media/pci/mgb4/mgb4_vout.c > create mode 100644 drivers/media/pci/mgb4/mgb4_vout.h > When I build with: make W=1 KCFLAGS=-Wmaybe-uninitialized I get this warning: drivers/media/pci/mgb4/mgb4_vout.c: In function 'mgb4_vout_create': drivers/media/pci/mgb4/mgb4_vout.c:473:27: warning: variable 'video' set but not used [-Wunused-but-set-variable] 473 | struct mgb4_regs *video; | ^~~~~ Regards, Hans