From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B19EEC43460 for ; Fri, 9 Apr 2021 15:52:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 81771610E5 for ; Fri, 9 Apr 2021 15:52:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233713AbhDIPwy (ORCPT ); Fri, 9 Apr 2021 11:52:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:44804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbhDIPwx (ORCPT ); Fri, 9 Apr 2021 11:52:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3CCF8610D0; Fri, 9 Apr 2021 15:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617983560; bh=1kp3+kVh4wgovHOtbQyFeBMBECiBSIk+VPjiYDcmYDk=; h=From:To:Cc:Subject:Date:From; b=WSFCTq9/s5kmYKknzg8BAU1lOKAhg3zmKQ5pT7CLnvOVZhWptIKGc58PvoaAEtwMR FbbpSd+YqmaD4cnuellicpbPM8UL+MCEecKEsgmRlVJJbNWs2/+PVBKBiaGutBA2eS 1tg23Bca/JQACmrH75vw57Ta5MzIMxXgJrajAB5ILCpgi7QjSn7yjzRmdUHzmhklQ/ NpHZ7jyusR1biEV+55efAEPYdVk9mPyIm1AY4tI0aDsbXEPctwjM5+KYULlJVg0YqO cXC75Wxe5N4ptzsJ8CtlrPO08jTicq4FzUd0SH917JmMD/I363bl7epgIlY3xL71Wu SVopxYfBuJilg== Received: from johan by xi.lan with local (Exim 4.93.0.4) (envelope-from ) id 1lUtQz-0008Il-Q9; Fri, 09 Apr 2021 17:52:37 +0200 From: Johan Hovold To: Johan Hovold Cc: Andy Shevchenko , Pho Tran , Hung.Nguyen@silabs.com, Tung.Pham@silabs.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] USB: serial: cp210x: provide gpio valid mask Date: Fri, 9 Apr 2021 17:52:14 +0200 Message-Id: <20210409155216.31867-1-johan@kernel.org> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Use the new GPIO valid-mask feature to inform gpiolib which pins are available for use instead of handling that in a request callback. This also allows user space to figure out which pins are available through the chardev interface without having to request each pin in turn. Johan Johan Hovold (2): USB: serial: cp210x: provide gpio valid mask USB: serial: cp210x: add gpio-configuration debug printk drivers/usb/serial/cp210x.c | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) -- 2.26.3