Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5742870rwp; Mon, 17 Jul 2023 08:49:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlHpKqTvbvLjbhXAOD0rpi9g/3q8nPicC8DZNlWybQ1pgFtP3czh3/1eJCleS60X1OrOKjT5 X-Received: by 2002:a2e:7c12:0:b0:2b6:e292:85ab with SMTP id x18-20020a2e7c12000000b002b6e29285abmr12330408ljc.25.1689608958879; Mon, 17 Jul 2023 08:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689608958; cv=none; d=google.com; s=arc-20160816; b=s4NGYaQSizmCy00YdT9N3eJzXKaZ+SUIXGneby3LpWbPe00n1snvsfQyiIpYx0OygH FnvQdiQoBFjSu6C2Du5cbklU69X+OPpeqHVQdl2YkRgoWfX/nJGQ/i10fMCNCWUD4UbB lOqw2V9fMyc2Uya3A4YeXHuF3XkARFcGJGQgqZHE47+lFCbXt2ozSql0OCoU+DeRKHIG tAn2j79EL72wD10enUkXxvmMFPvgDh9jzh3vlsgiIWpKzs4ocmcp1Zam48ROEkGfXaeR T8aFgoTjN3/qQNa/8r9RotwoK1d32aYDrJN2eO0SPENG9nExrloSVk4GNwV6ccmBkNo6 TQNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=VM7Seaw65R4bubaJ+D+M0Mbn2rUCnTsnFhL8KBH7gyo=; fh=exwMQpWy95pkYn+UrKGOeOrrbkOVnj71Xix+qA3tRIc=; b=aBWK0V9u9UOntAxNDPcLFUONR/PJUnKCxbgFW+cb+Hs5MET+ANtMi+Q+q4igMBU1uM 7I17sGfRt4E4e/jMSktgnJScEjpzeYcCahMBpJdXBfJgMxjSATjqG6bqUUtgChgqrG6N WcYj4IB3PvFJ1Qg7w5TsoXf+as8avjGgdSGIXrLEXPlWMqQkDil8ET2bBCG8V4YKAGyQ AXzGACqZJaMoLCY20H7po+pV+9rgpezZ3ef5PUgzy5Onf6jImoXFEuG28GmhRJ2vLNNZ sH0SuxtZSi/++eftDQE8cPGeVAMXEvy2sKLOf2EklZaGmDxzKi2PaDJGzfXXJXcgf32F QXXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=NzFY2AzH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a1709063bc500b009920f18a5e9si13512128ejf.728.2023.07.17.08.49.03; Mon, 17 Jul 2023 08:49:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@yandex.ru header.s=mail header.b=NzFY2AzH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230015AbjGQPbs (ORCPT + 58 others); Mon, 17 Jul 2023 11:31:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229825AbjGQPbs (ORCPT ); Mon, 17 Jul 2023 11:31:48 -0400 Received: from forward100c.mail.yandex.net (forward100c.mail.yandex.net [IPv6:2a02:6b8:c03:500:1:45:d181:d100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35011199 for ; Mon, 17 Jul 2023 08:31:17 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-54.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-54.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:1380:0:640:6985:0]) by forward100c.mail.yandex.net (Yandex) with ESMTP id 0FF806009E; Mon, 17 Jul 2023 18:30:34 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-54.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id XUhFHjeWsGk0-z3lB7qnG; Mon, 17 Jul 2023 18:30:33 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1689607833; bh=VM7Seaw65R4bubaJ+D+M0Mbn2rUCnTsnFhL8KBH7gyo=; h=Subject:From:Cc:To:Date:Message-ID; b=NzFY2AzH5KQeg0B3KyJtoug4KdsUesF1q5AGu95darpST1HN51hcjbZeJTQunNpKv rBLN7IhCiZN4EKhEeAScFXGP5ogqn2D9bcvFhJrWs4dNmXMmheCdhAIfhmj3XwYZkI n+uT/olEynB/H8jH8pxE0dgOG0Si1w+m3m5WCo/A= Authentication-Results: mail-nwsmtp-smtp-production-main-54.iva.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <2300d056-26ad-d0ad-4527-f395cab06729@yandex.ru> Date: Mon, 17 Jul 2023 18:30:33 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: Wright Feng Cc: "linux-wireless@vger.kernel.org" , Chi-hsien Lin From: Dmitry Antipov Subject: On brcmfmac console reading timer Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, 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-wireless@vger.kernel.org In dcb485dfc83b ("brcmfmac: add a timer to read console periodically in PCIE bus"), what time units are assumed to manage the 'console_interval' of 'struct brcmf_pciedev_info'? If the former is in jiffies, then comparing it with 'MAX_CONSOLE_INTERVAL' (which is in seconds) in brcmf_pcie_console_interval_set() doesn't work in the way you might expect; if it is in seconds, then the same applies to an attempts to reschedule timer with 'mod_timer(&devinfo->timer, jiffies + devinfo->console_interval)' etc. Dmitry