Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758679Ab2J2LST (ORCPT ); Mon, 29 Oct 2012 07:18:19 -0400 Received: from vaxjo.synopsys.com ([198.182.60.75]:62236 "EHLO vaxjo.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752457Ab2J2LSR (ORCPT ); Mon, 29 Oct 2012 07:18:17 -0400 Message-ID: <508E65EA.2080402@synopsys.com> Date: Mon, 29 Oct 2012 16:48:02 +0530 From: Vineet Gupta User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: CC: , , , , Subject: Re: [PATCH v5] serial/arc-uart: Add new driver References: <1351252996-28484-1-git-send-email-vgupta@synopsys.com> <1351252996-28484-2-git-send-email-vgupta@synopsys.com> <20121026121032.GD26342@arwen.pp.htv.fi> <508B8536.1080303@synopsys.com> <20121029110650.GA29410@arwen.pp.htv.fi> In-Reply-To: <20121029110650.GA29410@arwen.pp.htv.fi> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.12.197.56] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1477 Lines: 45 I've already posted a v7 of the driver - with all your comments. If you think it's ok - can you ACK it please ! TIA, -Vineet On Monday 29 October 2012 04:36 PM, Felipe Balbi wrote: > On Sat, Oct 27, 2012 at 12:24:46PM +0530, Vineet Gupta wrote: >> On Friday 26 October 2012 05:40 PM, Felipe Balbi wrote: >>> On Fri, Oct 26, 2012 at 05:33:16PM +0530, Vineet.Gupta1@synopsys.com wrote: >>>> +/* >>>> + * Release the memory region(s) being used by 'port'. >>>> + */ >>>> +static void arc_serial_release_port(struct uart_port *port) >>>> +{ >>>> +} >>>> + >>>> +/* >>>> + * Request the memory region(s) being used by 'port'. >>>> + */ >>>> +static int arc_serial_request_port(struct uart_port *port) >>>> +{ >>>> + return 0; >>>> +} >>>> + >>>> +/* >>>> + * Verify the new serial_struct (for TIOCSSERIAL). >>>> + */ >>>> +static int >>>> +arc_serial_verify_port(struct uart_port *port, struct serial_struct *ser) >>>> +{ >>>> + return 0; >>>> +} >>> why all these empty functions with wrong comments above them ?? >> Actually serial_core.c invokes the reqest/release callbacks w/o >> verifying for a NULL pointer check. Thus they need to be in there even >> if empty. I've removed the offending comments though ! > fair enough ;-) > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/