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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB808C433EF for ; Sat, 11 Jun 2022 13:16:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233581AbiFKNQy (ORCPT ); Sat, 11 Jun 2022 09:16:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231649AbiFKNQy (ORCPT ); Sat, 11 Jun 2022 09:16:54 -0400 Received: from mail.enpas.org (zhong.enpas.org [IPv6:2a03:4000:2:537::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 96D1562BCE; Sat, 11 Jun 2022 06:16:52 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id E24B0100022; Sat, 11 Jun 2022 13:16:51 +0000 (UTC) Date: Sat, 11 Jun 2022 15:16:49 +0200 From: Max Staudt To: Vincent Mailhol Cc: Wolfgang Grandegger , Marc Kleine-Budde , linux-can@vger.kernel.org, Greg Kroah-Hartman , Oliver Neukum , linux-kernel@vger.kernel.org Subject: Re: [PATCH v7] can, tty: can327 CAN/ldisc driver for ELM327 based OBD-II adapters Message-ID: <20220611151649.5a9c5676.max@enpas.org> In-Reply-To: References: <20220602213544.68273-1-max@enpas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-can@vger.kernel.org On Sat, 4 Jun 2022 00:47:10 +0900 Vincent Mailhol wrote: > > > +#define ELM327_CAN_CONFIG_SEND_SFF 0x8000 > > > +#define ELM327_CAN_CONFIG_VARIABLE_DLC 0x4000 > > > +#define ELM327_CAN_CONFIG_RECV_BOTH_SFF_EFF 0x2000 > > > +#define ELM327_CAN_CONFIG_BAUDRATE_MULT_8_7 0x1000 > > This ELM327_CAN_CONFIG_BAUDRATE_MULT_8_7 macro is not used. True. It does document a flag in the ELM327 configuration registers though, and it was originally meant for adding 7/8 bitrates (e.g. 87500 as a companion to 100000). I never got around to implementing those bitrates, though. I find opportunistic documentation helpful for future reference and to give casual readers hints - can I leave it in there anyway, or is it deemed an eyesore? Max