Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755476AbbFOO0P (ORCPT ); Mon, 15 Jun 2015 10:26:15 -0400 Received: from mga11.intel.com ([192.55.52.93]:42901 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755221AbbFOO0G (ORCPT ); Mon, 15 Jun 2015 10:26:06 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,618,1427785200"; d="scan'208";a="727674594" Message-ID: <1434378358.25843.11.camel@linux.intel.com> Subject: Re: [PATCH 5/5] serial/8250_fintek: Support for any io address. From: Alan Cox To: Ricardo Ribalda Delgado Cc: Greg Kroah-Hartman , Jiri Slaby , "Rafael J. Wysocki" , Peter Huewe , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, peter_hong@fintek.com.tw Date: Mon, 15 Jun 2015 15:25:58 +0100 In-Reply-To: <1434377926-31958-6-git-send-email-ricardo.ribalda@gmail.com> References: <1434377926-31958-1-git-send-email-ricardo.ribalda@gmail.com> <1434377926-31958-6-git-send-email-ricardo.ribalda@gmail.com> Organization: Intel Corporation Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 (3.12.11-1.fc21) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1033 Lines: 26 On Mon, 2015-06-15 at 16:18 +0200, Ricardo Ribalda Delgado wrote: > Fintek chip can be configured for io addresses different than the standard. > > Query the chip for the configured addresses and try to match it with the > pnp address. Looks ok to me. I am a little concerned about false positives but it does everything right in terms of resource management so I guess it should be ok - and if not we are only going to find the corner case that blows up by shipping it 8) Please however fix the dynamic on stack arrays you've got. Doing blah foo[] = { 1,2,3,4 }; might well be valid gcc but it generates horrible code when in fact your arrays should be static/const, not dynamically constructed on stack from a static copy each call. Reviewed-by: Alan Cox -- 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/