Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1767382rdb; Thu, 25 Jan 2024 05:46:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQ5TSj3joplgW6zUGSmXXtB6mXGC/JymPOK0Vbte9f/XbXkGeaUB9Phg8VOI2a9ln69WMO X-Received: by 2002:ac8:7d0c:0:b0:42a:62b3:3882 with SMTP id g12-20020ac87d0c000000b0042a62b33882mr1015856qtb.11.1706190362977; Thu, 25 Jan 2024 05:46:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706190362; cv=pass; d=google.com; s=arc-20160816; b=Rba9RVi20RwQTYnpb+EqxVNSBY8KP/jUmOu7rwNuaVRPE9uhbFtoZsR+UBTH2wVZJe eQU6iUZ9ghuU4beqZ1faTct3j+hsCsHSV2cOzWIlRZT6nG0WxKEMJKOWaFh3orvTU9nc 8Dp1NTyQdGfrB2I6EeVJFzsmVnvzi1PHF1NDB6ZC2UpchUMCuO+YmTLY6jGTkMRQM/T5 N3dlSNFueBQjMT7yDFD3cS39Ky9832Gc1/xZ9Hg0h7urqCrDIa2kXji7L8ItZMivmYji AJP//HayO4ASHFYNCmJ/1hOH7OvQ8TnaWH9vmIx6thZV3+WJzNXD2BbKQ40382XijiK7 F83w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Qs4j38AdTW0/mEUGl9XTXs8q14rSJCsamwea62gCBBk=; fh=x/aXq8xPx8wv5S/klUPuRGnjHmf6CFPRM4lG0IAz8DA=; b=Tt2LNE5V+KP0gcPmc83WTag/alM8LyTiKNda4msg+YIewB8AXxNse+7hJ+qPseboYN 4br9lxPe9X/yIsAB43FwOVIDgW45bRfYCqBppJhYiv3V2j302rsuuISuSvR5Nge2fCsB JKTRG1sPoFhSIfQvYWqhmigGN11hXdWqlYAaAP7Llt5cSlRMrYAMV8bQfqY3QNuCbE9y jembDMvPDdDuW2eCyW7spY9Ogdx11qmBwZ8hzC661ZfH8hy3Vz6d0yOT3pduPaV/Q5HM dJ5tpED/uF+y4vuKPecleRBBiMf/s6bRrVvxY3RfVBFHdXYI4LiVTrSG7EH+MGgVpNCg nqIg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rug8Utf/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v10-20020a05622a130a00b0042a3bdf7838si10124762qtk.629.2024.01.25.05.46.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 05:46:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rug8Utf/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0D7A11C248A0 for ; Thu, 25 Jan 2024 13:45:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F5BE56B66; Thu, 25 Jan 2024 13:45:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rug8Utf/" 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 6888056756; Thu, 25 Jan 2024 13:45:05 +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=1706190305; cv=none; b=iIB1B4rqSzVRmdXRDVSotCccsLNJtpt7w40sPNA1yRQ2icPpJ0VK9fBdhXa6aZG9sKvAE+oACR5h4qTlmt287ZulLNm3mGFMtRZlPQsb7dpWTcMAXf1nP+PsKqSeQ2wZzLVohk/sVBR9mVybcR82d0k1rSuI1XcxcBMBN6MlQ+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706190305; c=relaxed/simple; bh=NkGyl0Jo0whrkxO3b7LKj7C4yJ2z5Q7jS9gPgnwH+To=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TWirHiRsF9x9BInlPJbR89htS3CHJ5XVKCxw4p0Pv5No6e9DNHJCliUgEpVfd6hRH3rFDGHxiFtuuLmeQ85Gzz5pg7xMlOZmXUhxVLXGi4nSg8XWrQKvlnZ44LbBe8K8o5iQSb4NNMj6nUUw118zO84LXIrVvAI9pR5k5grbBp4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rug8Utf/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59646C433C7; Thu, 25 Jan 2024 13:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706190304; bh=NkGyl0Jo0whrkxO3b7LKj7C4yJ2z5Q7jS9gPgnwH+To=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rug8Utf/w3dEQerx0wbHVZ/SWWLm4O7sohG0zDLffqrmWy1HvAKou2t+boHVJO82r +wpGR6eKbO4rXTPaejfNyYwS8RxD5FSOnymemR/CviaMKn1H6ZhtKt9RVJyexJs+MW DcK9n4RlsioLM/MRILqegUMF79BdrWHlfGqtQ2X8cBcNXjrCSfgrrrImI3ueuCg/8h iHXb0JHwoTtGos5SeeD/EylC6Yq+7hTRzfWURDCmZRRT67R7ib026siLqXYVvzH4/N PZzt51NLWtfLNpaBoE52UJui1OwWm1uMSJM9wCfXzRJERo6qQvyRr7eehDSvc/XuDY gudz9vm89sPpA== Date: Thu, 25 Jan 2024 13:44:58 +0000 From: Lee Jones To: Duje =?utf-8?Q?Mihanovi=C4=87?= Cc: Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Helge Deller , Linus Walleij , Karel Balej , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH v4 1/3] leds: ktd2692: move ExpressWire code to library Message-ID: <20240125134458.GK74950@google.com> References: <20240122-ktd2801-v4-0-33c986a3eb68@skole.hr> <20240122-ktd2801-v4-1-33c986a3eb68@skole.hr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240122-ktd2801-v4-1-33c986a3eb68@skole.hr> On Mon, 22 Jan 2024, Duje Mihanović wrote: > The ExpressWire protocol is shared between at least KTD2692 and KTD2801 > with slight differences such as timings and the former not having a > defined set of pulses for enabling the protocol (possibly because it > does not support PWM unlike KTD2801). Despite these differences the > ExpressWire handling code can be shared between the two, so move it into > a library in preparation for adding KTD2801 support. > > Suggested-by: Daniel Thompson > Reviewed-by: Linus Walleij > Signed-off-by: Duje Mihanović > --- > MAINTAINERS | 7 +++ > drivers/leds/Kconfig | 4 ++ > drivers/leds/Makefile | 3 + > drivers/leds/flash/Kconfig | 2 +- > drivers/leds/flash/leds-ktd2692.c | 116 +++++++++----------------------------- > drivers/leds/leds-expresswire.c | 68 ++++++++++++++++++++++ > include/linux/leds-expresswire.h | 36 ++++++++++++ Please can you separate the Expresswire addition into its own patch? > 7 files changed, 146 insertions(+), 90 deletions(-) -- Lee Jones [李琼斯]