Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp384279lqs; Thu, 13 Jun 2024 12:52:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVukWJNc+5lWKB3oVUBPCjzy/P+ltqhkyJBo0Ube57v3j0cMR5yFPlx5YA6Moo6L/r5EhX6SCuCRUbMSNyYwHJBpKmECw28NjzGsg/QDQ== X-Google-Smtp-Source: AGHT+IEADNAre+tPI/AuskmA30bP1kw8GlkUGTL31xEp9Sy+gY03tNeflW3e1keymm/GnCbkmNgL X-Received: by 2002:a05:6a20:6a21:b0:1b7:406c:1089 with SMTP id adf61e73a8af0-1bae7f6595dmr995752637.6.1718308334066; Thu, 13 Jun 2024 12:52:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718308334; cv=pass; d=google.com; s=arc-20160816; b=BXFnjeP5TOaPHnOC3gSVj+corFU709GZxq7z5VlTdv462AQXwPBppiQV4SMpr+SAXv 7pY7kroLiFRy+8dQBsi7nh5p+sRNaTqENkM3ovdJ42VLGCeQfCKGkd3NcA8TD2xQLqt+ HyeOQl00DxDgr1kvTWyKY5T7fZwbXAjqqOByvvzIrQl2G+eRm1bjSt+wdyNNjya/i9ke s1MfAza1J/G7lR854lgTbOyQ73Jnru6qWXtzAur2HUhDCEIX/HQwWcK8F8hJPfDBMNpk OfKHMK3xzfKXC+JKnQiGvGR6txpIMgtGGP2aiELr5gjqr5SiN7O//CKeyYnEVYK5KSB9 js7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=wd49EutyMLwKOtVYeW3XG9F3kbsUtYIJI3CsIowTYE4=; fh=xLYe3rxkKMsfWR7CAeCZcctMkeZ/Tg1vSOHBtZQP8H8=; b=oTbCKpB3CaqpI7KVE4nVGvpg0LSk/KylrxIZXDnBcPZHCqRTvUFswvTfM2dFwYGcSH nlTGE8wOFanMsrO0viwvuy1IXyvVPUTlyP54Hgo5vBuryFjlL7+0IxI3dwVSmLH6Snay aruvsP2+Y1Ivz8RyHHzzowgbLmUy1LAig9deSxukVDGLKfhNxnEm1PBmfRshSP+gKyD/ 0qf8KLdReD98EAswvBkUOWsIELjIWSaS12FZQcw4lKDxodvoR/Sp+CqraGyfKWji4VJ2 LgNK3AGov13Z5QpMc7kBPm542XEqMTqtmZatxHt/7nQJrVq7EVlEQHD9y02tm2ECWYW1 Zggw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a7QG8eqQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-213952-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccb72a17si2012499b3a.267.2024.06.13.12.52.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 12:52:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213952-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a7QG8eqQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-213952-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D80DE2824F5 for ; Thu, 13 Jun 2024 19:51:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF3B87F492; Thu, 13 Jun 2024 19:51:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a7QG8eqQ" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 2482F6F073; Thu, 13 Jun 2024 19:51:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718308303; cv=none; b=S/1CL+71eOiUkvBx6ILNc5wLXkJFj+Q6iiQei/umNpAW8eunxz3oeaXBprPzSo/mW9lLlue4F0dbAzwxXKWiEVg6aMqwk1M+TZIXoObmZ4X+rXmnYRTzx3EAGBi6RsIIabh/zPlUPNiCfCCo6wOJYgE6lx+YJnPsdIdIbR1hoAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718308303; c=relaxed/simple; bh=2FR65H6oQRmxvXkcwUoWkYMkK7DPPvgBTT5D29nbwpU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=XlDf+uH7DzQ23k/IT/h6FDj/G7Sh5Pt8Sua0D0VaSyYPz0cK9RQhL4P/3it+YZMUqNCO7WJXVzO7ZUQu3AnMK4I2Ue+aSkdSKqS1/Eas5R1AF8eIU+wR3o92NQJv+pOyrT8KkC/GV2zQQFCLVSDY844X3I5obQy5RfnAvIfuQxU= 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=a7QG8eqQ; arc=none smtp.client-ip=209.85.218.46 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 Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a6f1cf00b3aso230421066b.0; Thu, 13 Jun 2024 12:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718308299; x=1718913099; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wd49EutyMLwKOtVYeW3XG9F3kbsUtYIJI3CsIowTYE4=; b=a7QG8eqQl2v8SbteBTK4ct/C5pVfvek6y+L/QYaEoNc1QMvr/UbyYVA8Nj8/p7Qjfx u1AxwmEIyF8jVuG221mDrrrBAaSJ+OXOOdTc7KbDwpRDGdWkUcLr1AY9ZLU4y1rTDTmc BOkZ/WLp5ON35EXgZTYY+B8lkYmYG5UzcQAldEUmDlSAD1ysdC+m1F1tORw2yqnR+DrJ 79Yk6TBzr5INsPbQ78ZO6+A4cD7Myvmvpjm4jGZH5eopaG5/slW+AKKi/vkROKvm/Kra fWtd2lhq61eYlHScJgF8bgql3lWbky0MtFboRAyDmmQpJsahhQI1mfwR1Y8YOz2OMPm0 5mSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718308299; x=1718913099; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wd49EutyMLwKOtVYeW3XG9F3kbsUtYIJI3CsIowTYE4=; b=bWr9yLTtjy7xZfm0tjPrRki+F4OjBDg2N7FpgUEz+7PeeUCaNuW2cG/KfSV2GLQXKY 29B0m0NnCPNysipvHqooHYkKZyc0qsX1OLphQWsd7Jhn1+jLNlrL9tEBRElHwY5VoLiF m7dZlZN5TTtF5v5l+Lvbn7LTO3Mv6idXVVEd+bSholBre7Wen+uwuipqyrRZ/chmkyFg 9XQnJRTZvdl2ENNIkVN+aMZAzJhna9tvTzQlVrYyWaZaEb3lJZ4eKJmerenP5JwcF/B3 rg4M8X/l+F+BUgXAmc0vNtddRYTK0E1Q7CKSRSsBMKNurF70LarHjCJx3aKMTm9QT6Fh LV9g== X-Forwarded-Encrypted: i=1; AJvYcCWeGw1N2wGZDvdgKRpSzJnkGMdqSiHqdLk/kX4WaGdmIibk+zSEk3T2/mTJ2Q7nWXpHmGy8R9eAWT78TwnJGLid0gTe53JbXeM8yOf59J07S9rjWlj7ZWoHGTdGf3VrE6M4EXfp7RQcmXjfi4+cM7Aub21mjdCn6E5s6z+cqBxl71QUwF/p X-Gm-Message-State: AOJu0Yzl2rGDuKVnj+lcScOMFAM4lKI7+ChSrjkRlqj5IsfdtpGpiyyY noQRCG1AQ3RXX6gBqWd1xbVZ9cTVD2IEVZfqWCVU9TS9LKSrLmaVpLHBn3ksmlBHYAALfa8StrH XRCr49HmbAX5KICaDORiI6NxMjRY= X-Received: by 2002:a17:906:7629:b0:a6f:1285:5799 with SMTP id a640c23a62f3a-a6f52474235mr242477566b.36.1718308299119; Thu, 13 Jun 2024 12:51:39 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240612012019.19078-1-zhi.mao@mediatek.com> <20240612012019.19078-3-zhi.mao@mediatek.com> <7c71534f-9815-4ea3-969f-c04d249d35d2@collabora.com> <18d2c28fc8b47889689a1506957ea2a308c80fa2.camel@mediatek.com> <171823714905.1550852.13442340621133903705@ping.linuxembedded.co.uk> In-Reply-To: <171823714905.1550852.13442340621133903705@ping.linuxembedded.co.uk> From: Andy Shevchenko Date: Thu, 13 Jun 2024 21:51:03 +0200 Message-ID: Subject: Re: [PATCH v3 2/3] media: i2c: Add GT97xx VCM driver To: Kieran Bingham Cc: =?UTF-8?B?WmhpIE1hbyDmr5vmmbo=?= , angelogioacchino.delregno@collabora.com, conor+dt@kernel.org, krzk+dt@kernel.org, mchehab@kernel.org, robh@kernel.org, dongchun.zhu@mediatek.com, "heiko@sntech.de" , "linux-kernel@vger.kernel.org" , "laurent.pinchart+renesas@ideasonboard.com" , "yunkec@chromium.org" , "linux-mediatek@lists.infradead.org" , "linux-media@vger.kernel.org" , "hdegoede@redhat.com" , "bingbu.cao@intel.com" , "paul.elder@ideasonboard.com" , "devicetree@vger.kernel.org" , =?UTF-8?B?WWF5YSBDaGFuZyDlvLXpm4XmuIU=?= , =?UTF-8?B?U2hlbmduYW4gV2FuZyDnjovlnKPnlLc=?= , "p.zabel@pengutronix.de" , "alain.volmat@foss.st.com" , "sakari.ailus@linux.intel.com" , "tomi.valkeinen@ideasonboard.com" , "10572168@qq.com" <10572168@qq.com>, "hverkuil-cisco@xs4all.nl" , "linux-arm-kernel@lists.infradead.org" , "matthias.bgg@gmail.com" , "mehdi.djait@bootlin.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 13, 2024 at 2:05=E2=80=AFAM Kieran Bingham wrote: > Also - Cc: Dongchun Zhu who is listed as the > DW9768 VCM driver author... > Quoting Zhi Mao (=E6=AF=9B=E6=99=BA) (2024-06-12 12:13:40) > > On Wed, 2024-06-12 at 09:07 +0200, AngeloGioacchino Del Regno wrote: ... > > Our project uses Giantec VCM hardware. > > For detailed vendor information, please visit: ( > > https://en.giantec-semi.com/yqmd/164). > > The VCM datasheet we are referencing is provided by Giantec. > > Currently, the relationship between Giantec VCM and Dongwoon VCM is > > unclear, but Dongwoon seems to be another manufacturer of VCM > > hardware. There may be plenty of manufacturers of the same/similar IPs, but it's not an excuse to have a duplication like this. > > From the perspective of software driver development and maintenance, it > > makes sense for each vendor's hardware should have its own software > > driver. > > Personally, I don't think so. If two vendors make identical parts, we > shouldn't have two identical drivers. Exactly! That's why we have compatible strings or other means of reusing the same code base as much as possible. This in particular reduces maintenance costs (of all means!) _a lot_. > I still have plans to refactor VCM drivers if I get some spare-time(tm) > as almost each driver does the same identical task. They're all just > copies of the boilerplate. That seems like something we should reduce, > not increase. --=20 With Best Regards, Andy Shevchenko