Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2141246rwl; Thu, 13 Apr 2023 02:08:06 -0700 (PDT) X-Google-Smtp-Source: AKy350amPOSvNCgx2s1D61ryrmyQOwoRfiOtQT9FsIh5i4l1c+yF05I9cWBs7sVjcZ0AeCUWlDQn X-Received: by 2002:a17:90a:718b:b0:23d:39d5:f81e with SMTP id i11-20020a17090a718b00b0023d39d5f81emr1308663pjk.11.1681376886365; Thu, 13 Apr 2023 02:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681376886; cv=none; d=google.com; s=arc-20160816; b=ki87nxtoyQzjBrdgtGkEEt0CdV1fYxWm6ER7C7piG0oHpj85bf46QMPORkhO19Gpn+ JmwTfJ9JIHPa7WaTjmhjR4p+6fhb50citEh6n6sUEITrLoddCagHq8tW7k6lRtBwxtga ab1g8FFsN6rBDkeShkxlZObKQVMVuE0eLq0nYh9EMVXWrTJ7Xrln9X4uj4Bd/88gUr/Z qv2PEQiU2COhejreBk9oFxDYy6nDpxgOUmUIR2zsM7Kn2kjilHql1ixFwxgQhZmEvMvz aAWPhsYd0oM7BoLOK9VfTZnvOeVJuIwR65NlcSd1nJITXHHGgG7yGJkW/qzGPxQ8ksLF 3g3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RJspn27Lox3GkVUcr8v3QL9lshI2sMtYsXVe726+E78=; b=y2WLl3QrHwbz07OPl1Qh6xBQ4PQDQws8wsQ3CINULUuPUgt5wYzggXoMLCpnkklyTG cds/gQdXiBKNrs58WuwWJEkkHvL6ED0bbC1b/s0zPa0Ueb9zPm4WbX+tbiF11BauKg5j WF1Ok3yJwk7OoJzLIkDI9fRmYG6daTDMmoWSNvsC9xfvwIo0C74rhVc/yDE2/dijz9fT Z2QcvQ8qpEZEyjXJmZPUdxrZfCo6iFOmSq/MLtKXmwtst44ClGwqJZ6ukZJPwHSLdkBi NYeuYTjxo7CzKZV8qVr1BRdQ54VOVaHo598gjZFgxsVlAzO2735niAzue/qrLQ9o/B6D 5dBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="myX/JUKq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pv18-20020a17090b3c9200b002263b1df9f7si7221864pjb.0.2023.04.13.02.07.55; Thu, 13 Apr 2023 02:08:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="myX/JUKq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230129AbjDMJAB (ORCPT + 99 others); Thu, 13 Apr 2023 05:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbjDMI7g (ORCPT ); Thu, 13 Apr 2023 04:59:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E08BF93EA; Thu, 13 Apr 2023 01:57:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7CD4D60F51; Thu, 13 Apr 2023 08:57:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E76DEC433EF; Thu, 13 Apr 2023 08:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681376265; bh=ESKq4Yc4rw95zXlQHJsWDTT7htc0nkptP1B5meprI2s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=myX/JUKqLGrxp5j+ucexvpLLZGyzPqOh7io0Nv6yqjdZAm6RvgYjLRqzgDbS1QPxS 5XC0MkXbcv8lj1f4bkkKxrMm+z0HL2Nky4nY4NcBS0I+poEi+gowJR8Bc/Vfncerda SDxfYsnh4Xaj4yk1c3nkR67mczHNiX+6R1QRDjLro23lrKwIdBSURferIoFenHPV0e kmXxNFt+U9rNDHu5Ka9frhGkehtQX1srGgQGj0dqlP6MOFHS/yhsr/lqnaNKWhRvJt uoUg7DyAIV+EeM6kA9WDeMV9G69jhHMUoJlJKB4kQhxi5a0ImyQDZCrhTPcexbflmO E3//COcDggBMQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pmsm4-000092-Qe; Thu, 13 Apr 2023 10:57:48 +0200 Date: Thu, 13 Apr 2023 10:57:48 +0200 From: Johan Hovold To: Greg Kroah-Hartman Cc: Jarkko Sonninen , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] USB: serial: xr: Add TIOCGRS485 and TIOCSRS485 ioctls Message-ID: References: <20230313010416.845252-1-kasper@iki.fi> <20230314070002.1008959-1-kasper@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 14, 2023 at 08:37:30AM +0100, Greg Kroah-Hartman wrote: > On Tue, Mar 14, 2023 at 09:00:01AM +0200, Jarkko Sonninen wrote: > > Add support for RS-485 in Exar USB adapters. > > RS-485 mode is controlled by TIOCGRS485 and TIOCSRS485 ioctls. > > Gpio mode register is set to enable RS-485. > > > > Signed-off-by: Jarkko Sonninen > > --- > > @@ -237,6 +238,7 @@ static const struct xr_type xr_types[] = { > > struct xr_data { > > const struct xr_type *type; > > u8 channel; /* zero-based index or interface number */ > > + u32 rs485_flags; > > Nit, you might want to move this up above channel as you now have a hole > in this structure. Not like it's that big of a deal so if you don't > have to respin this no need to change. Generally, it's better to keep related fields together than worry about holes so the above is just fine. Johan