Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2434118rdh; Sun, 29 Oct 2023 16:32:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH4NDbw60/vuxkGdVpIH5o/CEVtSKQs/FgagtI2IjDMzcQuRwNat+KWJMx1GRtr1qo4K33y X-Received: by 2002:a05:6a21:9997:b0:15a:3eaa:b7ea with SMTP id ve23-20020a056a21999700b0015a3eaab7eamr12282511pzb.5.1698622355941; Sun, 29 Oct 2023 16:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698622355; cv=none; d=google.com; s=arc-20160816; b=C3jrJ8uCIQr/PePRMw4bCZ2Zc88sQrKGL8yTdQMxf/TZGnKDT/D1qTep2yUf4QAeLr JNvz/gkDrL0XHvA8lfGwRkdKPgFAECcjMofRD61teaBX1DC6SzmE0vhtyXmpYqqiAxZP WrvK0mOtUqvapbCKUxsWJMKhr8Ua9WZVS2TBaetJiAQeL2sTLbySbkQhYLBZ6q2KaaEt GP2vnn5lq561RTrHXoPhGdaUEmZBzp4qKZxNB3y2UT41W79PCc6Psry4iJc/kADhvA1B HdzZJtWTeVNj3bqAVbRvbazfpXHc+R/gi7Cn7q8n2WyJUd7HiFVSlo7V/MsPyPa1+i+x 0N9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0EMRzKyeFfH+2aKlI40LnTFl6pjLyfz/kFJ/Ax1iCnE=; fh=KyO1VE26ekuAqR0Fh7XUii8ZG2EjC5YmsxE9x/TVRWA=; b=zmb+0yhGUDxX9tLBJcikbcbduiIgagp7KJ76mpFp1HN0ECcQ1KBYEFyC6mL/cXn5uf /QpnDkEczKn5MNIjPVxPm7p+SWvKhG1UERHyCScrzDYeXk1Pydvho9V9sPSPma61TQAO 633iOmHdWoR+vmHnYAL2xL37X5s45Tu7QAWl/rWthd1qlzC2JBwEFD4iw/18y6mowKpC 3HzIZXENE/7uog97JdsxvOYibfuy4EjMGa6E1shoqe37NA2nvvEyhxOq+ASjULWTdScy 83pxjiCjuFVM1Eaqm7pKV4B6alpooxVeUYzb+HVLpLeW/i6fcdPV3H970H8VKM60l72e 029Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=SKXSwHTa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id m123-20020a633f81000000b005b86119661esi4163795pga.86.2023.10.29.16.32.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 16:32:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=SKXSwHTa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1076480A44C6; Sun, 29 Oct 2023 16:32:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232770AbjJ2XcO (ORCPT + 99 others); Sun, 29 Oct 2023 19:32:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232645AbjJ2Xb6 (ORCPT ); Sun, 29 Oct 2023 19:31:58 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67FEF10CE; Sun, 29 Oct 2023 16:23:31 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3499383F; Mon, 30 Oct 2023 00:23:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1698621794; bh=b7fAlWnVHD8ub32pUv2JqeBryzHEQYH8d55fVsFUfVw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SKXSwHTavIpNoVy44Yhm+xz0ENUYRR9sRRNfaMB9/XEkKTzqAJeRoUAw0UvuTGZH8 11zwt9Rk+KOoHEegp0bMgiV3oygn7HTScqjMD+OCBqddojgX6rM/bEeMvU2zPNdIWa ose3b9FpRIX/bFPLgYojCnWIwV19gayyS2ccwdt8= Date: Mon, 30 Oct 2023 01:23:35 +0200 From: Laurent Pinchart To: Nancy Nyambura Cc: gagallo7+outreachy@gmail.com, nicydaniels@gmail.com, outreachy@lists.linux.dev, Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Media: omap4iss: Enable RSZB and update resizer control Message-ID: <20231029232335.GG12144@pendragon.ideasonboard.com> References: <20231029220710.47063-1-nicymimz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231029220710.47063-1-nicymimz@gmail.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 29 Oct 2023 16:32:33 -0700 (PDT) Hello Nancy, On Mon, Oct 30, 2023 at 01:07:09AM +0300, Nancy Nyambura wrote: > Enable RSZB functionality in the OMAP4 ISS driver. This change sets the RSZB system configuration register to enable the RSZB module. Additionally, it updates the resizer control by setting the RSZ_EN_EN flag as required. This change enhances the driver's capabilities and prepares it for future developments. You haven't run this through checkpatch, have you ? > Signed-off-by: Nancy Nyambura > --- > drivers/staging/media/omap4iss/iss_resizer.c | 34 +++++++++++--------- > 1 file changed, 19 insertions(+), 15 deletions(-) > > diff --git a/drivers/staging/media/omap4iss/iss_resizer.c b/drivers/staging/media/omap4iss/iss_resizer.c > index a5f8f9f1ab16..23089eeaf448 100644 > --- a/drivers/staging/media/omap4iss/iss_resizer.c > +++ b/drivers/staging/media/omap4iss/iss_resizer.c > @@ -7,17 +7,17 @@ > * Author: Sergio Aguirre > */ > > -#include > -#include > -#include > -#include > -#include > -#include > -#include > - > -#include "iss.h" > -#include "iss_regs.h" > -#include "iss_resizer.h" > + #include > + #include > + #include > + #include > + #include > + #include > + #include > + > + #include "iss.h" > + #include "iss_regs.h" > + #include "iss_resizer.h" Or even read the patch before sending it out ? > > static const unsigned int resizer_fmts[] = { > MEDIA_BUS_FMT_UYVY8_1X16, > @@ -30,11 +30,11 @@ static const unsigned int resizer_fmts[] = { > * > * Also prints other debug information stored in the RESIZER module. > */ > -#define RSZ_PRINT_REGISTER(iss, name)\ > + #define RSZ_PRINT_REGISTER(iss, name)\ > dev_dbg(iss->dev, "###RSZ " #name "=0x%08x\n", \ > iss_reg_read(iss, OMAP4_ISS_MEM_ISP_RESIZER, RSZ_##name)) > > -#define RZA_PRINT_REGISTER(iss, name)\ > + #define RZA_PRINT_REGISTER(iss, name)\ > dev_dbg(iss->dev, "###RZA " #name "=0x%08x\n", \ > iss_reg_read(iss, OMAP4_ISS_MEM_ISP_RESIZER, RZA_##name)) > > @@ -116,8 +116,12 @@ static void resizer_enable(struct iss_resizer_device *resizer, u8 enable) > RSZ_SRC_EN_SRC_EN, enable ? RSZ_SRC_EN_SRC_EN : 0); > > /* TODO: Enable RSZB */ > - iss_reg_update(iss, OMAP4_ISS_MEM_ISP_RESIZER, RZA_EN, RSZ_EN_EN, > - enable ? RSZ_EN_EN : 0); > + u32 reg_value = ioread32(iss->base_addr + OMAP4_ISS_MEM_ISP_RESIZER, > + + RZ_SYSCONFIG); > + reg_value |= RSZ_SYSCONFIG_RSZB_CLK_EN; > + iowrite32(reg_value, iss->base_addr + OMAP4_ISS_MEM_ISP_RESIZER, > + + RSZ_SYSCONFIG); > + This doesn't even compile. Has this all been generated by chatgpt by any chance ? It doesn't look like whoever wrote this understand what they were doing. > } > > /* ----------------------------------------------------------------------------- -- Regards, Laurent Pinchart