From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751825AbeDJSKH (ORCPT ); Tue, 10 Apr 2018 14:10:07 -0400 Received: from mail-qt0-f169.google.com ([209.85.216.169]:45395 "EHLO mail-qt0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751367AbeDJSKF (ORCPT ); Tue, 10 Apr 2018 14:10:05 -0400 X-Google-Smtp-Source: AIpwx4/coVVqb6IkYR6D1M3S8fIFXTc2zyXTly7/O2jidN3Ynt6Qtxsq5czDSnYVvYDS1gKpBmkyZl7/SGmMSOK+ZQw= MIME-Version: 1.0 In-Reply-To: References: From: Andy Shevchenko Date: Tue, 10 Apr 2018 21:10:04 +0300 Message-ID: Subject: Re: [PATCH v3 1/4] gpio: pca953x: set the PCA_PCAL flag also when matching by DT To: "H. Nikolaus Schaller" Cc: Kumar Gala , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Linus Walleij , Alexandre Courbot , devicetree , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Discussions about the Letux Kernel , kernel@pyra-handheld.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 9:08 PM, Andy Shevchenko wrote: > On Tue, Apr 10, 2018 at 7:07 PM, H. Nikolaus Schaller wrote: >> The of_device_table is missing the PCA_PCAL flag so the >> pcal6524 would be operated in tca6424 compatibility mode which >> does not handle the new interrupt mask registers. > > >> + { .compatible = "nxp,pcal6524", .data = OF_953X(24, PCA_INT | >> + PCA_PCAL), }, >> + { .compatible = "nxp,pcal9555a", .data = OF_953X(16, PCA_INT | >> + PCA_PCAL), }, > > Sorry didn't comment this earlier, though I think one line still > better to read disregard of 80 char limit. Another possible solution: #define PCA_LATCH_INT (PCA_PCAL | PCA_INT) or alike -- With Best Regards, Andy Shevchenko