From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1170380AbdDXMzu (ORCPT ); Mon, 24 Apr 2017 08:55:50 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33628 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1170357AbdDXMzg (ORCPT ); Mon, 24 Apr 2017 08:55:36 -0400 From: Yang Ling X-Google-Original-From: Yang Ling Date: Mon, 24 Apr 2017 20:55:26 +0800 To: Thierry Reding Cc: Yang Ling , Marcin Nowakowski , Keguang Zhang , linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-mips@linux-mips.org Subject: Re: [PATCH v2 1/2] pwm: loongson1: Add PWM driver for Loongson1 SoC Message-ID: <20170424125436.GA3949@mint-host> References: <20170215144531.GA39000@ubuntu> <20170406161835.GA19312@ulmo.ba.sec> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170406161835.GA19312@ulmo.ba.sec> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thierry, I am sorry for the late reply. For some historical reasons, Loongson1x series SoCs is still unable to support the device tree. So drivers need to rely on some register-related macro definitions in loongson1.h(arch/mips/include/asm/mach-loongson32/loongson1.h). The driver is currently tested on the Loongson1C development board. We plan to solve the problem together after the SoCs bootloader supports the device tree. Thanks for your friendly reminder. Yang On Thu, Apr 06, 2017 at 06:18:35PM +0200, Thierry Reding wrote: > On Wed, Feb 15, 2017 at 10:45:31PM +0800, Yang Ling wrote: > > Add support for the PWM controller present in Loongson1 family of SoCs. > > > > Signed-off-by: Yang Ling > > > > --- > > V2: > > Remove ls1x_pwm_channel. > > Remove period_ns/duty_ns check. > > Add return values check. > > --- > > drivers/pwm/Kconfig | 9 +++ > > drivers/pwm/Makefile | 1 + > > drivers/pwm/pwm-loongson1.c | 148 ++++++++++++++++++++++++++++++++++++++++++++ > > 3 files changed, 158 insertions(+) > > create mode 100644 drivers/pwm/pwm-loongson1.c > > Looks like this doesn't compile because it uses register definitions > from loongson1.h that aren't what the driver expects. Looks like the > driver wants parameterized ones, but those present in the kernel are > not. > > Any plans on fixing that? How did you build-test this? > > Thierry