From nobody Sat Feb 7 05:57:34 2026 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1EE5D388876 for ; Mon, 2 Feb 2026 17:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770054639; cv=none; b=G7KrkubSgezedOG4O71P6JXjVZHjeKpuafTqutWLAHfNgrYuE8TvMSizXntokZNTUA5ly0a9qG+dGKqqnP+tFKHA3oliwL1pZP328lwcYy7ajf+7zyjkn4IVMcUQhBy933TvleZcdQRR92Q5D1hUmkuHgMXJyWhXgZl7HnoRAKg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770054639; c=relaxed/simple; bh=67FGknsMfng/MTFvpicG64FoyMmv+280N/yN3heul6c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=f4PtmvYtNmsBbBDMaIgyZbSzm3VdX/PJeaT0Usqrma2uWxnFbo+6CuSbN2Lci3etRz3UMjopYAZMITaw2WvKTJ+ckfCxE1oIC3k5I83954Hx1XS205kNl7dgQ+3vRCGNaDIrWQEI5SMLjcRqxCFyPqaZrcl85Pnvq5tBeJtxtA4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Wy3URoxH; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Wy3URoxH" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-4359a302794so3257004f8f.1 for ; Mon, 02 Feb 2026 09:50:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770054636; x=1770659436; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6NgEps2wOELAEwlp8ckdt6gcYIwzRG7NzifNjPq19H0=; b=Wy3URoxHJ4+E9b8uumjhWaA4DoJMkmRIKLz0r+28m+mPTIRM/kaSfSoV36LF/ftpbf sid1KjDtAohelafya5gjK8DIvSiWedOOf+/6HV/92vximUI/oX2CVnMQeTY4suOCB+qr 2Y7SWM9b55bgIUnqisEiHq2uDwuyQPiyIstq9cv39AtC5hLN9yjjzhA0bbbZFCg8lTTF acmFRuGzEGW2FejmwnGiswkRg+tEA7aLaIgXOjk/V0ySrqX/4SDDuJ0iJhH5Oh7zBOTN sfumBTq51w717aTdnpYVQueStI1x+lxo9mcV4ZNML6eT0oZz6f6WC2nky/rQl/Wy7unE ricg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770054636; x=1770659436; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6NgEps2wOELAEwlp8ckdt6gcYIwzRG7NzifNjPq19H0=; b=n4oPUPWl1zlcjvcf03cL6kInTWGxCSS+HzcQN8G8SDX3ai8Rduz1vkQOJFpveJ+JgA OybvLC1Q9aBXrx8u52VgR29/lVBpVZUVTBvap7INmvfrx9tNHQqljmk5GIhnUonwTRt/ 1ppO6v+Wmpr9A8kX50ewQYXXcIymDFvlnx65OaUJtnJ9oW0Zw292dQR5FW95xq7Wa+iG iYhNMAHTaMLNWj6cou0eAq9ROZiCMoQ8Q8H4L9lE7I6qV76OUJO7pZsHIBLBypfEIy90 ExkQ/8iHyymy0Nx4HekRUYXbFJMDZi7y5ka9i7E0gBNCoEys1to6DwFbQtkwehfXY9fd GZCw== X-Forwarded-Encrypted: i=1; AJvYcCVKPsEf7Qg7wULWQwgywE3StOROLSNhBl3t/5LfjdP8tZbLTL9kWESk+qmcLqbgjm/VmTRFpnzcub/TcEs=@vger.kernel.org X-Gm-Message-State: AOJu0YwrrwIcD1/v4g6FhZ5zzmtpL8xGpVtTxPrEbXyB5mPMQZz3ZwU3 rS2cvAt6FywGws/J5Zvy4/GitsO/hv9vCdZyGE7xOHEWkx85iSkNuc7C X-Gm-Gg: AZuq6aIfyj8Y8rVSh+TuyGMmZ+ma5XZCYIz3E2zmwN4jcGdHlpEkvd4u8TGiykRw2jH yvKj4DxMy0swW3J5vk00QsyzVrjIJGpSOp6iWVm6aMW9vEkDyTaIueUZLqeCas6gqmFBYKz8gwa W3d9eAEZE6pWa/7TjqGFfRWO+L6LBJGuQMnJKMtfjiVL2IZKiQ1u6j/OLJU+yX2nyysfzvLUazZ ljoRP2b2Zvs8t/rT0g7GFpxXkezpF9+pAz12bt2MF/ZQaQ3EhhPn/5nNViW8lTC/4lYOlH6SCS4 +rxGgs/3JZ5PiLwmxWlyStPQPHr85+RNzVktRMtV/vM7fc1EHGIC26PwbHGxvJff5ESwpwRvj7p qwaHrC6W2bP/KFCuTGMSQu1XoGaCiarNmCqvihSWams1+9+m7Sw53NJ8wwuI79/TzjFTOUHhGht 2sItxw+sIj4vCtIy/vEiqM8m5esq09xaKoZe52dgFsQ6NEZmz6 X-Received: by 2002:a05:6000:400e:b0:435:e3fe:7409 with SMTP id ffacd0b85a97d-435f3ab5239mr19103841f8f.44.1770054636222; Mon, 02 Feb 2026 09:50:36 -0800 (PST) Received: from DESKTOP-VOVUFNJ.localdomain ([5.14.81.135]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435e131ce70sm47011359f8f.27.2026.02.02.09.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 09:50:35 -0800 (PST) From: Bogdan Sandu To: gregkh@linuxfoundation.org Cc: bingbu.cao@intel.com, bogdanelsandu2011@gmail.com, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, mchehab@kernel.org, sakari.ailus@linux.intel.com, tian.shu.qiu@intel.com Subject: [PATCH v2 1/4] media: ipu3: fix alignment Date: Mon, 2 Feb 2026 19:50:30 +0200 Message-ID: <20260202175033.8640-2-bogdanelsandu2011@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260202175033.8640-1-bogdanelsandu2011@gmail.com> References: <2026020258-very-numbly-b36b@gregkh> <20260202175033.8640-1-bogdanelsandu2011@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix alignment with parentheses. Signed-off-by: Bogdan Sandu --- drivers/staging/media/ipu3/ipu3-css.c | 22 +++++++++++----------- drivers/staging/media/ipu3/ipu3-v4l2.c | 11 +++++------ drivers/staging/media/ipu3/ipu3.c | 4 ++-- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/drivers/staging/media/ipu3/ipu3-css.c b/drivers/staging/media/= ipu3/ipu3-css.c index 777cac1c2..145501e90 100644 --- a/drivers/staging/media/ipu3/ipu3-css.c +++ b/drivers/staging/media/ipu3/ipu3-css.c @@ -118,7 +118,8 @@ static const struct { =20 /* Initialize queue based on given format, adjust format as needed */ static int imgu_css_queue_init(struct imgu_css_queue *queue, - struct v4l2_pix_format_mplane *fmt, u32 flags) + struct v4l2_pix_format_mplane *fmt, + u32 flags) { struct v4l2_pix_format_mplane *const f =3D &queue->fmt.mpix; unsigned int i; @@ -1241,6 +1242,7 @@ static int imgu_css_binary_setup(struct imgu_css *css= , unsigned int pipe) css_pipe->aux_frames[IPU3_CSS_AUX_FRAME_REF].height =3D ALIGN(css_pipe->rect[IPU3_CSS_RECT_BDS].height, IMGU_DVS_BLOCK_H) + 2 * IMGU_GDC_BUF_Y; + h =3D css_pipe->aux_frames[IPU3_CSS_AUX_FRAME_REF].height; w =3D ALIGN(css_pipe->rect[IPU3_CSS_RECT_BDS].width, 2 * IPU3_UAPI_ISP_VEC_ELEMS) + 2 * IMGU_GDC_BUF_X; @@ -1248,10 +1250,9 @@ static int imgu_css_binary_setup(struct imgu_css *cs= s, unsigned int pipe) css_pipe->aux_frames[IPU3_CSS_AUX_FRAME_REF].bytesperpixel * w; size =3D w * h * BYPC + (w / 2) * (h / 2) * BYPC * 2; for (i =3D 0; i < IPU3_CSS_AUX_FRAMES; i++) - if (imgu_css_dma_buffer_resize( - imgu, - &css_pipe->aux_frames[IPU3_CSS_AUX_FRAME_REF].mem[i], - size)) + if (imgu_css_dma_buffer_resize(imgu, + &css_pipe->aux_frames[IPU3_CSS_AUX_FRAME_REF].mem[i], + size)) goto out_of_memory; =20 /* TNR frames for temporal noise reduction, FRAME_FORMAT_YUV_LINE */ @@ -1269,10 +1270,9 @@ static int imgu_css_binary_setup(struct imgu_css *cs= s, unsigned int pipe) h =3D css_pipe->aux_frames[IPU3_CSS_AUX_FRAME_TNR].height; size =3D w * ALIGN(h * 3 / 2 + 3, 2); /* +3 for vf_pp prefetch */ for (i =3D 0; i < IPU3_CSS_AUX_FRAMES; i++) - if (imgu_css_dma_buffer_resize( - imgu, - &css_pipe->aux_frames[IPU3_CSS_AUX_FRAME_TNR].mem[i], - size)) + if (imgu_css_dma_buffer_resize(imgu, + &css_pipe->aux_frames[IPU3_CSS_AUX_FRAME_TNR].mem[i], + size)) goto out_of_memory; =20 return 0; @@ -2036,7 +2036,7 @@ struct imgu_css_buffer *imgu_css_buf_dequeue(struct i= mgu_css *css) struct imgu_css_buffer, list); if (queue !=3D b->queue || daddr !=3D css_pipe->abi_buffers - [b->queue][b->queue_pos].daddr) { + [b->queue][b->queue_pos].daddr) { spin_unlock(&css_pipe->qlock); dev_err(css->dev, "dequeued bad buffer 0x%x\n", daddr); return ERR_PTR(-EIO); @@ -2169,7 +2169,7 @@ int imgu_css_set_parameters(struct imgu_css *css, uns= igned int pipe, map =3D imgu_css_pool_last(&css_pipe->pool.acc, 1); /* user acc */ r =3D imgu_css_cfg_acc(css, pipe, use, acc, map->vaddr, - set_params ? &set_params->acc_param : NULL); + set_params ? &set_params->acc_param : NULL); if (r < 0) goto fail; } diff --git a/drivers/staging/media/ipu3/ipu3-v4l2.c b/drivers/staging/media= /ipu3/ipu3-v4l2.c index 2f6041d34..8ebfcddab 100644 --- a/drivers/staging/media/ipu3/ipu3-v4l2.c +++ b/drivers/staging/media/ipu3/ipu3-v4l2.c @@ -245,9 +245,9 @@ static int imgu_subdev_set_selection(struct v4l2_subdev= *sd, struct v4l2_rect *rect; =20 dev_dbg(&imgu->pci_dev->dev, - "set subdev %u sel which %u target 0x%4x rect [%ux%u]", - imgu_sd->pipe, sel->which, sel->target, - sel->r.width, sel->r.height); + "set subdev %u sel which %u target 0x%4x rect [%ux%u]", + imgu_sd->pipe, sel->which, sel->target, + sel->r.width, sel->r.height); =20 if (sel->pad !=3D IMGU_NODE_IN) return -EINVAL; @@ -288,7 +288,7 @@ static int imgu_link_setup(struct media_entity *entity, WARN_ON(pad >=3D IMGU_NODE_NUM); =20 dev_dbg(&imgu->pci_dev->dev, "pipe %u pad %u is %s", pipe, pad, - str_enabled_disabled(flags & MEDIA_LNK_FL_ENABLED)); + str_enabled_disabled(flags & MEDIA_LNK_FL_ENABLED)); =20 imgu_pipe =3D &imgu->imgu_pipe[pipe]; imgu_pipe->nodes[pad].enabled =3D flags & MEDIA_LNK_FL_ENABLED; @@ -303,7 +303,7 @@ static int imgu_link_setup(struct media_entity *entity, __clear_bit(pipe, imgu->css.enabled_pipes); =20 dev_dbg(&imgu->pci_dev->dev, "pipe %u is %s", pipe, - str_enabled_disabled(flags & MEDIA_LNK_FL_ENABLED)); + str_enabled_disabled(flags & MEDIA_LNK_FL_ENABLED)); =20 return 0; } @@ -750,7 +750,6 @@ static int imgu_fmt(struct imgu_device *imgu, unsigned = int pipe, int node, } else { fmts[i] =3D &imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp; } - } =20 if (!try) { diff --git a/drivers/staging/media/ipu3/ipu3.c b/drivers/staging/media/ipu3= /ipu3.c index bdf5a4577..c33186208 100644 --- a/drivers/staging/media/ipu3/ipu3.c +++ b/drivers/staging/media/ipu3/ipu3.c @@ -151,7 +151,7 @@ static int imgu_dummybufs_init(struct imgu_device *imgu= , unsigned int pipe) =20 /* May be called from atomic context */ static struct imgu_css_buffer *imgu_dummybufs_get(struct imgu_device *imgu, - int queue, unsigned int pipe) + int queue, unsigned int pipe) { unsigned int i; struct imgu_media_pipe *imgu_pipe =3D &imgu->imgu_pipe[pipe]; @@ -774,7 +774,7 @@ static int __maybe_unused imgu_suspend(struct device *d= ev) synchronize_irq(pci_dev->irq); /* Wait until all buffers in CSS are done. */ if (!wait_event_timeout(imgu->buf_drain_wq, - imgu_css_queue_empty(&imgu->css), msecs_to_jiffies(1000))) + imgu_css_queue_empty(&imgu->css), msecs_to_jiffies(1000))) dev_err(dev, "wait buffer drain timeout.\n"); =20 imgu_css_stop_streaming(&imgu->css); --=20 2.51.0