From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80BF33976A1; Fri, 3 Apr 2026 09:54:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775210042; cv=none; b=I1+0yOI5Dfqklt2kVCy6ZksOCTTF1ZfLGU4viCJT1e407PtqTFU1ZxyxG1LcI235gk1w2Z8EmbDnDFcre4IdPiwb2CG1otdCuJ1SB36N1FXMo/W7gQ9UdreDI4U6nl+SERx9T1scijWLuqyuqLcg3xBZY8yQAK/0jpejar0TYiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775210042; c=relaxed/simple; bh=GBcDq6MRBH4htcoFVRvdauYSrCB8xFIEyUTV87RwPr8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MUsoqEkTVw4U814SQG55jEcNgKfdlos3Ax56SF2146TUAvfUzgHXQclgMkGMpUF9A0T+v/gDO6Qi+lBFOYUiEC/LR5Q2+ZJPwtm/PYB5+OUtA/pNwMDjiguGQD8NW/Gaee830VMD+8ga+Jka/vaSKDs7WMiSv1QiWpyZ+U91r3A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gO5Dh0Hx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="gO5Dh0Hx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F1DDC4CEF7; Fri, 3 Apr 2026 09:54:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775210042; bh=GBcDq6MRBH4htcoFVRvdauYSrCB8xFIEyUTV87RwPr8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gO5Dh0HxLMNjBBGzLjVaGMbdKOgseqwUADar/JQlhd7sXbREWZB/05FEPlx2acUZS MQMBDpRBf6q2lOk715ptYVjUkTCulDw+pQLTUe+hvx2wwodp2vjWEUd+ZHQSd7UIa8 JnWFrGFGoWdEoTOj8JGzchhX8NkQ9LpKPEYU9ZII= Date: Fri, 3 Apr 2026 11:53:59 +0200 From: Greg Kroah-Hartman To: "Jose A. Perez de Azpillaga" Cc: linux-staging@lists.linux.dev, Andy Shevchenko , Hans de Goede , Mauro Carvalho Chehab , Sakari Ailus , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH v3 2/2] media: atomisp: remove redundant call to ia_css_output0_configure() Message-ID: <2026040327-evacuee-bonfire-a922@gregkh> References: <20260402183402.444630-1-azpijr@gmail.com> <20260402183402.444630-3-azpijr@gmail.com> <2026040336-humvee-throwback-72cf@gregkh> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Apr 03, 2026 at 11:02:17AM +0200, Jose A. Perez de Azpillaga wrote: > On Fri, Apr 03, 2026 at 08:42:11AM +0200, Greg Kroah-Hartman wrote: > > On Thu, Apr 02, 2026 at 08:33:45PM +0200, Jose A. Perez de Azpillaga wrote: > > > The function configure_isp_from_args() contained a duplicate call to > > > ia_css_output0_configure() using the same output frame index. Remove the > > > redundant call to simplify the configuration path. > > > > Are you sure the hardware doesn't actually need this called twice? Lots > > of devices need to be told multiple times what to do in order for it to > > "stick", hardware is "fun" that way :( > > > > The concern is valid in general, but ia_css_output0_configure() does not > write to a hardware register. > > ia_css_configure_output0() writes into binary->mem_params.params[], a > software-side DMEM parameter buffer in kernel memory. the ISP firmware > receives these parameters later as a batch, not at the time of the call. > calling a pure memory write twice with the same pointer and same value > simply overwrites the same location with identical data, there is no > hardware interaction that could require repetition. Ok, great, perhaps put that in the changelog text? > > Have you tested this? > > > > as noted in the cover letter, I don't have the hardware to test this. That's going to make doing code logic changes a bit hard for this driver, you might want to rethink this :) thanks, greg k-h