Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4022783rwr; Mon, 8 May 2023 01:25:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6cUdrXSxVc8Uim6WM3WmVSPY1j0LqO6ekTHKD2Du6z42V7aBd5yA6uPL5ZjTSeoKt/QCeC X-Received: by 2002:a05:6a20:841b:b0:f2:7da5:f27e with SMTP id c27-20020a056a20841b00b000f27da5f27emr12501570pzd.21.1683534349360; Mon, 08 May 2023 01:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683534349; cv=none; d=google.com; s=arc-20160816; b=n5StIFSfeuBwzlj4YnPU566f7UKcpdiVICKmEN3eHq/2DI4Qbm/8ytv6cCKcjdytCo O9NVC9p8VXYR+jrfORx5PoqeK/1yflzoFURluYMjEnf5z2LB7L4wbiwPVQkbVQEt01Fk 3bD3/RETmxFK3Gmnl0raUD1ivIVMpp8JsFLS14kns7WfVM1MXU0eWBHgM8f5XRp788ME bW8yqGvNd8wqjMy+pgbnKZ6JJVZyKsIUt04As7xHDYvJN13H/1qPyDRMBKL97GLOyAbl c5WtfOr6bNNUcXo6V6kDOSDGFNT0cLsLJOwpGRg5vk1vzdkONniAWXpQZab1UEIrDB/8 W0/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=H79Zgrm4wbuSOOrJMryaltEQAo3fM+yI7ifmyX2Kujw=; b=w97L5hAuXtIIBFQKXpmB4qoWi8eJYSyrJ94AjygpT2DAB5kuWulvETw610TiremGAO uicfsBoh4xlsSKarBAShZ5B2PVBE3+1Mzs+sr+3CU+hzFkNx9NrruiHE41XGQPmRfTC3 TWxW7LpQle0ROkD3UKzaEo2mZ6hVB9meI6F3k2h1JVIbocU9pDaPxSe9F68SPMjMX/QC TISAV40OnXEaE6Q2ZO4Eo83QiBf0Z5+BYTns/96q8cyeN8sBwwFTg14OjMEdslO9sVpr AD/cG8OMN7xLr0j+Z+zpZjB3MWbgZaB/onFxBT3XRMmw3y2VI0l9UeSnhmyU3EEfQvbe FIJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rcpf8AJ4; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w17-20020a639351000000b0051b5ceff4b1si8082768pgm.404.2023.05.08.01.25.34; Mon, 08 May 2023 01:25:49 -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=@linaro.org header.s=google header.b=rcpf8AJ4; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233704AbjEHICb (ORCPT + 99 others); Mon, 8 May 2023 04:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233662AbjEHICK (ORCPT ); Mon, 8 May 2023 04:02:10 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 690CF23486 for ; Mon, 8 May 2023 01:00:59 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-50bc3a2d333so6421848a12.0 for ; Mon, 08 May 2023 01:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683532855; x=1686124855; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=H79Zgrm4wbuSOOrJMryaltEQAo3fM+yI7ifmyX2Kujw=; b=rcpf8AJ4UNXprSsaIGtdQQKlApX92vPblCB/QvczxGY+vlEj0TrXd7USNO/C05jUYn puJVIE9IIdYzGAldLs/6K7A0D6/7DfRA1Kw/NKj5D2AHJR5nYy9rOh5NpuheSgM4/KwS g4EowCVCzCUhk/aUbLr9jCDxcK84hlDToICYFMxgFex99fSH69ae/QcN7bdp21VgPej9 eCJ3tqMOZI1fyRAseqy4XTMwj8BzhcRxw6sYprEd0Cxm6dIXHBDYZT7YF1gOQ6Ky79KN Tq+2LHeDCjkgQusAR7TQrKkxZ/VKWVKiOhmDjDnkfWuf22gDJbzT3O3rDnMrb1S/kRdE gPVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683532855; x=1686124855; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=H79Zgrm4wbuSOOrJMryaltEQAo3fM+yI7ifmyX2Kujw=; b=kLnVKFCqCtRwamjfwdnC2crGBdwC/QrQHETd19xN3moOofEjWLd8HX2A6X0HQOWPVL 3KoMCIa11GxMWEmMW6nxyORgIWUplhfjLONYpB1Id/iIH8aYyhgAaOWzYiVIvyaCxqzj cKw6YdsWxVs5b1h85SmNppwdovRCDHnJH3itpT2MvyhFjJvBG5hSS/sCVBsb2xsK7kpZ C+xoBOrIUyvRQlQCbcyXMGD9qOsA3s++JQtzQQxCgF6Y3qnydiGygfl5L6F7/K+nJXjQ GKDLIjqPL1YGvJdFT+XcGM7xsLovIc2GC7fuMroffMS0vM/eU+eDZ4GUjXP1KeFNeq2k 5llw== X-Gm-Message-State: AC+VfDxX3RQZybd8AbZnD7/FYxlMBDx/1w31zpu8H2+mhrBEo+9ppvYh 8NWrDnOYSvwQFVRK8zRQL87pNw== X-Received: by 2002:a05:6402:1806:b0:50d:8979:5722 with SMTP id g6-20020a056402180600b0050d89795722mr5939669edy.39.1683532854806; Mon, 08 May 2023 01:00:54 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:50e0:ebdf:b755:b300? ([2a02:810d:15c0:828:50e0:ebdf:b755:b300]) by smtp.gmail.com with ESMTPSA id i15-20020a50fc0f000000b0050bd19ec39bsm5812756edr.83.2023.05.08.01.00.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 May 2023 01:00:54 -0700 (PDT) Message-ID: Date: Mon, 8 May 2023 10:00:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v4 1/2] gnss: ubx: customize serial device open to set U-Blox Zed-F9P baud Content-Language: en-US To: alison@she-devel.com, johan@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, achaiken@aurora.tech References: <20230508011159.263322-1-alison@she-devel.com> <20230508011159.263322-2-alison@she-devel.com> From: Krzysztof Kozlowski In-Reply-To: <20230508011159.263322-2-alison@she-devel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 08/05/2023 03:11, alison@she-devel.com wrote: > From: Alison Chaiken > > Add support for setting the baud rate of U-Blox Zed-F9P GNSS devices. > Provide functions that support writing of arbitrary configuration > messages to the device plus one that specifically configures the baud > rate. Override the default gnss_serial_open() with a new method that > writes the configuration message to the GNSS if the devicetree declares > it to be a Zed F9P and requests a non-default baud. Add a boolean flag > to the ubx_data private data of the GNSS driver in order to track > whether the configuration message has already been written. Set the Zed > F9P to its default port speed if the devicetree does not specify a > value. > > Signed-off-by: Alison Chaiken > --- > > V5 -> V4 Compile out the changes if CONFIG_OF is not set. Judging by the number of kernel test robot failures, I am not sure if you tested the patch. Anyway, don't add more #ifdefs, that's not a correct approach. Depending on the case, you either remove if entirely or add __maybe_unused. Why did you need to add the #ifdefs? Best regards, Krzysztof