From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.167.242.64 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796111826; b=ZYyLSwggmRB3PdWkXjsTBXnUa1KLoVaaENo8oMWnM1axiSeIf+ZYLLFCMy1RkbidaqYH RwFOx3cgNQGHGEMtFIZsXz8aKgYYX0t/XzJyKPZjwvayuvpr0pImPIJK1CdrtmUDSe4ph 8k8WuPLMUlHyKjqTahQVHnuEw0733hYuObh9FskJRY61P5NcFpimVifeCrGPUVuqT4mpB BsMwPuDW5gYMyU0o71LTmgTzeIXldSX0fescWUhZibNxwifJYPYJy5XcrwBIxJaw77EUw rMVR4ec+Ra+JIqeE5y1lEFsIkBKedmgjUNG8NltzlqMfV++6pnGjvPOAV1YWF3l7eWg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796111826; h=DMARC-Filter:Received:DKIM-Signature:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=1192PBb1EupdbTQSNrjj3f7psTDAz00u+Dn92XZiWsE=; b=5VOlZUgaPNMN3pkS70yN+ilVpAZVkNgU7WrsPABh4uZ98d5n3fRuUlFNJxJ2HDDGy8Ff tiScncseFaNFjBIUzljDtaFfoq1DKwZvg1o+Vr21ARfZkc7liwOU8jCI3ih5tiMHGwIfo NDwXA/O7aZfVl7NMeZTpnD06oLcEko0wobsB8Mcgfkxtl8KGhLTycrtjzY6Zg8ktyQ/tF L15nt4XZiX8YjKAee45ZewrmRbnN/ZwWnxVaNm737DaHLxEwvep9B9LkS/wkHWeeEGW8+ sjqKrW69uzu/NdLc6AoMQ66TF7MrkWAohCEnyQup8JpSZ7FVrKr2GJ+0UG8YVfn/4Rg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass header.d=ideasonboard.com header.i=@ideasonboard.com header.a=rsa-sha256 header.s=mail header.b="G/cQCnCG"; arc=none smtp.remote-ip=213.167.242.64 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84E1A606A31A for ; Tue, 1 Dec 2026 07:57:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 84E1A606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.a=rsa-sha256 header.s=mail header.b=G/cQCnCG Received: from killaraus.ideasonboard.com (fp7965754b.ap.nuro.jp [121.101.117.75]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id EEAD3230; Tue, 1 Dec 2026 08:54:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1796111665; bh=AekjUNt0PhzUpUVQ3B/nRele0odT4oyXrH9LV+ypjfc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G/cQCnCGJkKJLwuE7Ih7Wyg12dO8zg049lwR+DWqYvY/zHyN+62l2tY1VIdbDYnwj x7j7R7zwnDVzpxwpD/PZKceHd4UaWLXqtiLNCPvviXhDhCYObAxwoGYWk7ukU+iePF ekmRQ/eByMyHMmMW8l0+s24nUVKZRB5NiEJs0fuc= Date: Tue, 1 Dec 2026 16:56:58 +0900 From: Laurent Pinchart To: David Heidelberg Cc: Sakari Ailus , Mauro Carvalho Chehab , Hans Verkuil , linux-media@vger.kernel.org Subject: Re: [PATCH 0/4] Various CCS fixes Message-ID: <20261201075658.GX24781@killaraus.ideasonboard.com> References: <20261123-ccs-clanked-fixes-v1-0-fb2bcc87a517@ixit.cz> <20261123165549.GE2959742@killaraus.ideasonboard.com> <20261123180203.GC3050935@killaraus.ideasonboard.com> <775a6f72-d138-4ff2-9328-1c0c9c865d07@ixit.cz> <20261123183525.GF2959742@killaraus.ideasonboard.com> <10c0d068-be46-4702-a6a4-f0b0dbd6e388@ixit.cz> X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <10c0d068-be46-4702-a6a4-f0b0dbd6e388@ixit.cz> On Mon, Nov 23, 2026 at 07:59:30PM +0100, David Heidelberg wrote: > On 23/11/2026 19:35, Laurent Pinchart wrote: > > On Mon, Nov 23, 2026 at 07:27:10PM +0100, David Heidelberg wrote: > >> On 23/11/2026 19:02, Laurent Pinchart wrote: > >>> On Mon, Nov 23, 2026 at 06:55:53PM +0100, David Heidelberg wrote: > >>>> On 23/11/2026 17:55, Laurent Pinchart wrote: > >>>>> On Mon, Nov 23, 2026 at 01:02:38PM +0100, David Heidelberg via B4 Relay wrote: > >>>>>> First two seems to be no-brainers. Next two seems to be correct too. > >>>>> > >>>>> What exactly do you mean by "seems to be correct" ? Are you sending > >>>>> LLM-generated patches that you're not even sure about ? That's a > >>>>> complete no-go. > >>>> > >>>> Hello Laurent. > >>>> > >>>> While I'm aware of your antipathy against LLM models, current situations doesn't > >>>> look like there are lining people to fix it and make sensors work with the MIPI > >>>> CCS drivers (introduced 2012). > >>>> This leads to endless forks of imxXXX sensors across hundreds of trees + people > >>>> clanking this stuff over and over. Let's establish that first. > >>>> > >>>> When I see opportunity to improve the generic driver, I'm taking it. > >>>> > >>>> change-id: 20261123-ccs-clanked-fixes-609bb0754028 > >>>> > >>>> As you can see the change-id, I didn't make it somehow hidden. I reviewed the > >>>> changes which LLM found when helping me figuring out why I have black/white > >>>> output from the sensor which sequences seemed to be correct to me. > >>>> > >>>> My logical thinking would be evaluate quality and review the code, which leads > >>>> to my brain marked: > >>>> > >>>> patch 1 + 2 as pretty confident it's correct and > >>>> patch 3 + 4 as looking reasonable to me. > >>>> patch 5 + 6 I haven't send because of unnecessary complexity and likely wrong > >>>> approach (still in the backlog to analyze) > >>>> > >>>> I would believe it's better to at least report in this form, thus my comment > >>>> inside the cover, that last two patches may be useful. And yes, I understand > >>>> there is infinite amount of randomly clanked patches coming in your direction > >>>> and I understand it's huge time-waster and pain. > >>>> > >>>> For v2 I'll drop patch 3 and 4. Hopefully that makes more sense to you, because > >>>> as I'm working on getting Linux mobile phones in a good shape, I have not > >>>> ability to split myself into developer highly specialized in every field > >>>> (subsystem). > >>> > >>> Sakari maintains the CCS driver, so it's his call. > >>> > >>> I find it very rude to throw LLM-generated patches to reviewers and > >> > >> Take generated slop and just throw it maintainer - definitely rude. > >> > >> Do a review myself with non-maintainer level of skills and partial > >> understanding? Hard to say. > >> > >> It's rude to send patch when I'm fixing something in the kernel, but maybe my > >> understanding isn't that brilliant as the maintainer one? > >> > >>> maintainers if you can't have full confidence yourself that they're > >>> correct. If you don't want to invest *your* time and energy into > >>> properly understanding what a series does, > >> > >> That's fair argument. Again not B/W, I invest my time. I have partial knowledge > >> of media subsystem, sent fixes before (even without LLMs). > > > > The social contract is that maintainers get something in return for help > > contributors. They expect contributors to learn, improve their > > contributions over time, and occasionally some of those contributors > > will help with development and maintenance in the long term. > > I'm well aware of that :) > > > LLM-generated contributions break that contract completely when they're > > just thrown over the fence with nothing more than a cursory glance. > > Sadly, yes. > > > There's no learning any more, no improvements, just increased maintainer > > burden. > > I would disagree here. There is learning, maybe for 1 person from 10. LLM is > great at explaining code, reviews - recently surprised by the quality of it. > > Yes, there is maintenance burden, I agree. If we omit the slop, I would say it's > also because it's easier to upstream code, e.g. the barrier is lower. That's exactly where the problem lies. We'll get 10 times more contributions, without 10 times more reviewers and maintainers, and with the majority of the contributions taking more time to review. For the project to scale, contributors need to invest their time, not their tokens. > > Nobody expects you, or any other contributor, to be an expert, but if > > you decide not to spend time learning and improving, I won't want to > > spend my time reviewing your patches. > > You still writing in absolutes. How much time needs to be spend? > > I cam answer the original question thou: > > | why should maintainers spend > | any time helping you for free > > I would say because > a) it's obviously correct code on first sight (easy, fixes almost for free) That's not my experience, and based on what I've read a large number of kernel maintainers would also disagree. The code appears correct at first sight, but is often wrong in different ways. Any particularly nasty problem is that LLM-generated code, even when functionally correct, tends to be more verbose, more difficult to review, and more difficult to maintain. > b) maintainer may assume the amount of time person invested into writing patch > (LLM irrelevant here) was reasonable and after receiving feedback the person > follow in similar pace (long-term cooperation) That also doesn't match my experience. > c) maintainer may see the short-term value of the contribution regardless of the > effort spent on the code. If a particular patch addresses an issue that I have a very high personal incentive to fix, I may spend time rewriting the patch to make it match the expected quality standards. That's high effort though, so it's not something I will do on a regular basis. > >>> why should maintainers spend > >>> any time helping you for free ? > >> > >> That's good point. I could ask myself too - why am I sending fixes for free (not > >> paid by contract or company - community work)? > >> > >> Maybe you're right. Maybe I should just patch the local imxXXX.c file in few > >> minutes and ignore it for year until it breaks again. > >> > >>>>>> Signed-off-by: David Heidelberg > >>>>>> --- > >>>>>> David Heidelberg (4): > >>>>>> media: ccs: Use dev_dbg() instead of dev_err() in ccs_enum_mbus_code() > >>>>>> media: ccs: Fix sub-device index in ccs_cleanup() > >>>>>> media: ccs: Update PLL and blanking limits when pixel_array crop changes > >>>>>> media: ccs: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flip controls > >>>>>> > >>>>>> drivers/media/i2c/ccs/ccs-core.c | 14 +++++++++++--- > >>>>>> 1 file changed, 11 insertions(+), 3 deletions(-) > >>>>>> --- > >>>>>> base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726 > >>>>>> change-id: 20261123-ccs-clanked-fixes-609bb0754028 -- Regards, Laurent Pinchart