Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp547354imm; Fri, 27 Jul 2018 01:37:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe8S/fgVJ/qQwHsbQi5vakr9rjqQnZMpkyat5JNp6DLLDXuu0LnmtFLxJK5VEGvYQOGZ5Qc X-Received: by 2002:a62:404e:: with SMTP id n75-v6mr5666564pfa.232.1532680671454; Fri, 27 Jul 2018 01:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532680671; cv=none; d=google.com; s=arc-20160816; b=dPgt8dbflSyZ8FWNWKql6SMnZLHk2mJMjBxBNuQoC/FWLNNB/YF2QDEzlwTxlfKbab chgR+vIvq1EHfjfVLNRULIHRmrfOee4m+XQcvhYZR+drvvPQdFpxcJF6qjs9GgVrvYh4 V/ovWqFGt3cxLuPWU0F1AmtiEwefEGIIST2VbMHpWQWpsTZ3af4X5sVUTjqWEvWRM+VX 5eEtGukij5rQNFlJoJuhxXNO214aiWPm73oWTjnHrlHK22s5/E0gGvZlGUAhTrAWH5Kp 37wTEIV89jP0sNNBUTRMPR6Hao75Dv4iy3nHzwRCx6/CtSfpQTBJJH9Yh8tcHyijBQpu rbJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=R5Ipl9YpgyXicNB9o/gO0Z3B65xBT5DV8kn9dSqsKHI=; b=myUviY00OlP++ofJ68U6cPw42em0vk6+VPplnBlvYNaIs6lhz4dAEuwfvcvu4Lzm6t 2wTNjxQjQHfSD5EMKHy/+U6SYEQoh1aCnJfCRgZZ77hsE126VkCMtGuMeHRrTl7FUkxj OHBOnk9NJSAt5rfQRjmAOvvEodWPuw9rOLmc5jdm3sILSc3671OCgs3hpv35op1zhZ2S hEdyS4r/xnJHwbFyAaPbiqGgHOIjXhRvsLffmyJD0bLVA3T3U4LOZ5Y4BdMIBZRGdL1P U/Kyc/XVFCZC421+jRJO0zoo21B1tq5EbkzIkrcfvF732V9hX0kZPcvAJNQP8TPii6l1 IjSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m70-v6si3995535pfa.45.2018.07.27.01.37.36; Fri, 27 Jul 2018 01:37:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730218AbeG0J5A (ORCPT + 99 others); Fri, 27 Jul 2018 05:57:00 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:42067 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729420AbeG0J5A (ORCPT ); Fri, 27 Jul 2018 05:57:00 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 1EB3A80643; Fri, 27 Jul 2018 10:36:09 +0200 (CEST) Date: Fri, 27 Jul 2018 10:36:05 +0200 From: Pavel Machek To: Baolin Wang Cc: Jacek Anaszewski , David Lechner , Bjorn Andersson , Mark Brown , Linux LED Subsystem , LKML Subject: Re: [PATCH v3 1/2] leds: core: Introduce generic pattern interface Message-ID: <20180727083605.GA20233@amd> References: <2c3a8911-150a-9b25-2a66-a9432047f96b@lechnology.com> <68996338-a902-2b57-0bb9-df274a496b06@gmail.com> <20180718075637.GA10279@amd> <913151e4-c19f-9a22-697c-52a9fb48cb32@gmail.com> <0e0cd8f7-dc73-6733-65f2-9a14506b0f0e@gmail.com> <20180718221717.GA5451@amd> <20180719202005.GA7763@amd> <20180724114147.GA26036@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > This should be a bit better. I attempted to compile it with your > > driver, but whether it works is an open question. >=20 > Sorry for late reply. I've compiled and tested this version on my > platform, the hardware pattern can work with one small fix as below. >=20 > if (led_cdev->pattern_set && !led_cdev->pattern_set(led_cdev, > data->steps, data->nsteps)) { > return; > } >=20 > But I saw there are lots coding style issues and something can be > improved in this patch, so will you send out one clean patch (I will > help to test the hardware pattern support)? Or I can help to improve > this code and try to upstream it again? If you could do the upstreaming, that would be great. I tried to get hardware accelerated LED to work on N900, but that hardware is rather complex, so it would take me some time... Best regards, Pavel =09 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlta2XUACgkQMOfwapXb+vKNNACfSmyhzdm3AqIKCmGsmg90g9mL 7UgAnAnztEKImnrROnu4kDaQyaZ1kB3K =0Njs -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--