From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751610AbdFGIlX (ORCPT ); Wed, 7 Jun 2017 04:41:23 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:41721 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbdFGIlU (ORCPT ); Wed, 7 Jun 2017 04:41:20 -0400 Message-ID: <1496824875.30073.123.camel@pengutronix.de> Subject: Re: [PATCH] mfd: Add driver for RAVE Supervisory Processor From: Lucas Stach To: Andrey Smirnov Cc: Lee Jones , cphealy@gmail.com, Nikita Yushchenko , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 07 Jun 2017 10:41:15 +0200 In-Reply-To: <20170606180643.14258-1-andrew.smirnov@gmail.com> References: <20170606180643.14258-1-andrew.smirnov@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:fa0f:41ff:fe58:4010 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrey, no code review, just 2 drive-by comments. Am Dienstag, den 06.06.2017, 11:06 -0700 schrieb Andrey Smirnov: > Add a driver for RAVE Supervisory Processor, an MCU implementing > varoius bits of housekeeping functionality (watchdoging, backlight > control, LED control, etc) on RAVE family of products by Zodiac > Inflight Innovations. > > This driver implementes core MFD/serdev device as well as > communication subroutines necessary for commanding the device. > > Cc: cphealy@gmail.com > Cc: Lucas Stach > Cc: Nikita Yushchenko > Cc: Rob Herring > Cc: Mark Rutland > Cc: devicetree@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Andrey Smirnov > --- [...] > +++ b/drivers/mfd/rave-sp.c > @@ -0,0 +1,1009 @@ > +/* > + * rave-sp.c - Multifunction core driver for Zodiac Inflight Innovations > + * SP MCU that is connected via dedicated UART port > + * > + * Copyright (C) 2017 Zodiac Inflight Innovations > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License as > + * published by the Free Software Foundation; either version 2 of > + * the License, or (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, see . > + */ [...] > +MODULE_DEVICE_TABLE(of, rave_sp_dt_ids); > +MODULE_LICENSE("GPL"); Header says GPL v2, so this should be changed to match. [...] > + > +#define COMPATIBLE_RAVE_SP_NIU "zii,rave-sp-niu" > +#define COMPATIBLE_RAVE_SP_MEZZ "zii,rave-sp-mezz" > +#define COMPATIBLE_RAVE_SP_ESB "zii,rave-sp-esb" > +#define COMPATIBLE_RAVE_SP_RDU1 "zii,rave-sp-rdu1" > +#define COMPATIBLE_RAVE_SP_RDU2 "zii,rave-sp-rdu2" Can we get rid of those defines? They are only used in the of_device_id table. Regards, Lucas