Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2547619rdh; Sun, 29 Oct 2023 23:32:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGyRUe7RI7tGJOyZpymP/aqVCvXc80YpO0leU0pshVI0FZLqb1BPSup0E0uSLL1yHcDA4rz X-Received: by 2002:a05:6808:f8e:b0:3af:9fc4:26c6 with SMTP id o14-20020a0568080f8e00b003af9fc426c6mr10325156oiw.20.1698647532536; Sun, 29 Oct 2023 23:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698647532; cv=none; d=google.com; s=arc-20160816; b=hUbA8UgsUFT6o7dM2/PVUBrCb1HP4/pyV6Tg1+IdKLCseadRSbImjc2xeabYsm+5ic BS5zBk5yJn76zvVG51+ZMbu0WxeplkYIke8Ykt6IOx/RMNZN2hTeD/CMVR2pRKWudbTA UMmb6cmy1xPxfV0xJIyrxgnYdgiA+W2C/HJZ5oLyPzEACfY6wBp2oWqPdLvOffmm+ig4 7K5+JHj/rm1yI2RMuaY6qgaEKYYSblmODvwXCaIb61Su1tH7TNzUqfyYcUxrKYQLFNZ9 jYAroNSf52Jny8PqSkz+ktG52T7o9Fra93WRymglJkN/p4IbtOkiHA+Ag1BxHeL7q/Qj x+3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=UpRT4osgu/w1c0pk9YIMsIv1/UH/MkmAUIraL9fcJ3E=; fh=hpPHxOU8p+WH8li021xZ6SCBrFU2UeO89hZ6622T5zM=; b=ixPmSNEOVXKFedkbOcb2kEha+JVGnBMtMhS20YZ9rHoPNEaET3w6igdrDHiZ6EaNva JoA3SHYwVmLdSrYnmX7DG3/stAD/CHnQFnyxlMJcPwt9L5f8ILTQycVFH0+3V7p/B9PS 45X2/fCdPfkTZgxfxpn33Wv0wXnr/i+GAcm6Dr1bw14EnyLH92SgYST0sDHpiQMwE6vP WIRfv7ZMl/3ks2sn6eOVa9bFHlGOmrQG3Yy+MBNAo31Po2ZjSOVTD1nLZJTykpsDFZsa jaoM9pm0nj+TU+20TK/1e0FoT7O10Ldesxh3rIFsQsfTUGGZmMOkWgBHenWLLeNBU6zH MxDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=N0UCLpBG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s190-20020a6377c7000000b00584aa817597si4494612pgc.101.2023.10.29.23.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 23:32:12 -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 header.i=@inria.fr header.s=dc header.b=N0UCLpBG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A1FA58054BFC; Sun, 29 Oct 2023 23:32:05 -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 S229514AbjJ3Gbw (ORCPT + 99 others); Mon, 30 Oct 2023 02:31:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231438AbjJ3Gbu (ORCPT ); Mon, 30 Oct 2023 02:31:50 -0400 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CADDF5 for ; Sun, 29 Oct 2023 23:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=UpRT4osgu/w1c0pk9YIMsIv1/UH/MkmAUIraL9fcJ3E=; b=N0UCLpBG4yBdHx6p/bTJTBiyPD5+iZzFNeMi2jqhtoFvhKM8oSc390k9 KpkQdLuiy50QLs10ZWEUQlvEJcENuIDnFrNBxaBn+yq15va0X4m8gLdcQ Zcsv8cMgajkEG56q8MPig/bSYePLLP+RyKOHDGvvhKVltDZY54qLc94Y1 o=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.03,262,1694728800"; d="scan'208";a="133818454" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 07:31:21 +0100 Date: Mon, 30 Oct 2023 07:31:21 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Nancy Nyambura cc: gagallo7+outreachy@gmail.com, nicydaniels@gmail.com, outreachy@lists.linux.dev, Laurent Pinchart , 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 In-Reply-To: <20231029220710.47063-1-nicymimz@gmail.com> Message-ID: References: <20231029220710.47063-1-nicymimz@gmail.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 23:32:05 -0700 (PDT) On Mon, 30 Oct 2023, 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. Could you explain more about your changes? What information led you to make these changes. The current messages says what is done, but not so much about why. Also, the log message should be limited to around 70 characters per line, so that it looks nice in the git history after it has been indented. julia > > 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" > > 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); > + > } > > /* ----------------------------------------------------------------------------- > -- > 2.40.1 > > >