Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933606AbdDFRa2 (ORCPT ); Thu, 6 Apr 2017 13:30:28 -0400 Received: from mail-qk0-f180.google.com ([209.85.220.180]:36473 "EHLO mail-qk0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752088AbdDFRaV (ORCPT ); Thu, 6 Apr 2017 13:30:21 -0400 MIME-Version: 1.0 In-Reply-To: <58E67328.5040805@nvidia.com> References: <1491485752-28030-1-git-send-email-ldewangan@nvidia.com> <58E67328.5040805@nvidia.com> From: Andy Shevchenko Date: Thu, 6 Apr 2017 20:30:20 +0300 Message-ID: Subject: Re: [PATCH 1/1] gpio: core: Decouple open drain/source flag with active low/high To: Laxman Dewangan Cc: Linus Walleij , Alexandre Courbot , Rob Herring , Mark Rutland , Frank Rowand , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , devicetree Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 716 Lines: 25 On Thu, Apr 6, 2017 at 7:56 PM, Laxman Dewangan wrote: > On Thursday 06 April 2017 09:40 PM, Andy Shevchenko wrote: >> On Thu, Apr 6, 2017 at 4:35 PM, Laxman Dewangan >> wrote: >>> Adding different flag for the Open Drain/Open Source which is valid >>> only when Single ended flag is enabled. >>> if (single_ended) { >>> - if (active_low) >>> + if (open_drain) >> >> This breaks ACPI case, right? > In acpi case, single_ended is not handled. It only handles the active LOW. > > From code: Fair enough. I would look into ACPI spec for possibility to add this kind of functionality. Thanks. -- With Best Regards, Andy Shevchenko