Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp709125rdg; Wed, 11 Oct 2023 03:26:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHLDmaZ3rnn7dnvbp9+MYW9tgxvguJyyWoQGdTqlUTyjE4p8egWxg840mq9QU8GWOPLL8an X-Received: by 2002:a17:902:b607:b0:1bb:b74c:88f6 with SMTP id b7-20020a170902b60700b001bbb74c88f6mr16016382pls.16.1697020002597; Wed, 11 Oct 2023 03:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697020002; cv=none; d=google.com; s=arc-20160816; b=N63NlfYFnALGdDcvrye8td0prMtpZrHpqMK3ZLdqk55eBDmzBXO/nG6aSPyJaWkTvM 6xx48PlY1UJZzlJ2Ypjz3WBaBS4hXpBWXrc8TAf09zUE9/uAccBw5E/zOL3nAuJcQbHX VAA7AXtFUJ09VIdjM+wJDWG8ckVjEmbhWzNFovZkXTyMh/+asE30BTb7esqHbzq0vCD7 Rw9aIfPqcHttOJqMtKsdeh0Y+lGttYJRgrWd6QLn86X8ulcmMZxf37IwBToLvR5dgIhG +ZAvE7osagEAwgPmEJf/ATE83etSskCZvArHdWDpS4RtYg8M05sqEcRkT93VO4vKw6DP 4k4Q== 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=vz9dCTUAJHMkFUSxm9pCk3ylD/I/tndawRxu31ITP+g=; fh=asj61oZNJ6eDfmDLamJd2s7G1I7RqPpOy3YuOI7yh2k=; b=tMuZyXAVV1bw7ltarzQMevVRTf84fvTlR3/W3jRQ5THzP8tZe5qfj7tHD8WUtWI/mp 0RQG0gqD+FMwP1TkUjRWx2Z48OXQ2UbVChWG9jePoog1Y9k0nv7rWmAX8qbcrXFR/852 RfeIb+LnIuZIviLgxlTRbbmdKkBrAYWzvSIXvGK9P7PdnMAV+mTjdVRQ3N/0UXr8JoDm QSMqm5QOMWRc0cIaW2GAp5WP8UO5B6zpQgAk8jIbVkpeEOYG0igVC4ybU0CYQ07RwIgD h/hXiC6NVpVW2I+omYIy7PeOW2wtZeYYpdNQbxjpJezydjf7mGrzaXxhJZ9YGxTMl449 VRMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NbroL8Vy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s12-20020a170902ea0c00b001c62e2ce6a8si1617260plg.449.2023.10.11.03.26.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 03:26:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NbroL8Vy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7E568809474C; Wed, 11 Oct 2023 03:26:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345986AbjJKK0I (ORCPT + 99 others); Wed, 11 Oct 2023 06:26:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233592AbjJKK0G (ORCPT ); Wed, 11 Oct 2023 06:26:06 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9AAAB8 for ; Wed, 11 Oct 2023 03:26:01 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-31f71b25a99so6543791f8f.2 for ; Wed, 11 Oct 2023 03:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697019960; x=1697624760; darn=vger.kernel.org; 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=vz9dCTUAJHMkFUSxm9pCk3ylD/I/tndawRxu31ITP+g=; b=NbroL8VydLiF/5U4EpkKQ4StM5WWEKQ35TLnXoAKraN3kIydq9kiZUazLDgb7GXc53 ws3SVH8R7oOqfIhjow3dpzQTzGS4NoH97txFgFCCp7TEdTS6TSI20tnxwkMuI+BQzujV ufO1yBUTKCRp7XXzKxpTeEKKyxyZUEstXvB0/Ji2hRz2QmEMGjX3/4Ry0BZMb5lo5IoF D/zBmMwmY1+BryQG9juaGKG3+Y7/iuh1LNk3OmcEOCCQ15mK+aG+X5aXFTbn77JKsaVK u2lem2HO369VCMEBkOyKvgmLQAoPct7EupxjWnR4Lkl+NmNtNjHhcHbMm47pFll9EeDs zHag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697019960; x=1697624760; 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=vz9dCTUAJHMkFUSxm9pCk3ylD/I/tndawRxu31ITP+g=; b=CANnoQf1HJlrvzH2ybynIdQr6Kfn33Iv8QEiGsM+tZyK4tFBYrlzG0zfBschJZTucd TgRRjGBmtDoGKEikOHVAGZxH7OXCO19rDJmQ5OBoUswWe9Vtxi3+Kojp/Z/zgp069kJ/ 249LR577+HcPtbGWBxkMShoMHS7BqBbzeDym6+fl9++l7u2/XuQg/o4wGQZyqDmSSQae I3FBF9+ouz8prRcFdIMwLedFYKNFg4vblyR39Hj3hZscWNj1dVeL8YcncHp5j+7I+To9 rfkV1fLxSkH2O0Z0V1rAbska87k6H2y5UMZ7YZES4jRbculLVAiV69DYq/ClCMWBKMC2 zMQg== X-Gm-Message-State: AOJu0YwwS/WQI/xRnXK378Um+UOuJdCIRxB/iHNFKiOKdHQeQ/1q8DMA RBN7ElzzXsJPPwSDMATmedsOVw== X-Received: by 2002:adf:ef91:0:b0:31f:f1f4:ca8b with SMTP id d17-20020adfef91000000b0031ff1f4ca8bmr16588499wro.40.1697019960263; Wed, 11 Oct 2023 03:26:00 -0700 (PDT) Received: from [192.168.100.102] ([37.228.218.3]) by smtp.gmail.com with ESMTPSA id j16-20020adff010000000b0032008f99216sm15058111wro.96.2023.10.11.03.25.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Oct 2023 03:25:59 -0700 (PDT) Message-ID: <10bcb0cc-19db-4914-bbc4-ef79c238a70d@linaro.org> Date: Wed, 11 Oct 2023 11:25:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 4/4] clk: qcom: add clock controller driver for qca8386/qca8084 Content-Language: en-US To: Luo Jie , andersson@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, catalin.marinas@arm.com, will@kernel.org, p.zabel@pengutronix.de Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com References: <20230923112105.18102-1-quic_luoj@quicinc.com> <20230923112105.18102-5-quic_luoj@quicinc.com> From: Bryan O'Donoghue In-Reply-To: <20230923112105.18102-5-quic_luoj@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 03:26:25 -0700 (PDT) X-Spam-Level: ** On 23/09/2023 12:21, Luo Jie wrote: > The clock controller driver of qca8386/qca8084 is registered > as the MDIO device, the hardware register is accessed by MDIO bus > that is normally used to access general PHY device, which is > different from the current existed qcom clock controller drivers > using ioremap to access hardware clock registers. "nsscc-qca8k is accessed via an MDIO bus" > MDIO bus is common utilized by both qca8386/qca8084 and other commonly > PHY devices, so the mutex lock mdio_bus->mdio_lock should be > used instead of using the mutex lock of remap. > > To access the hardware clock registers of qca8386/qca8084, there > is special MDIO frame sequence(three MDIO read/write operations) > need to be sent to device. "there is a special MDIO frame sequence" "which needs to be sent to the device" the following indentation splat from checkpatch CHECK: Alignment should match open parenthesis #2071: FILE: drivers/clk/qcom/nsscc-qca8k.c:2004: + ret = __mdiobus_write(bus, switch_phy_id, (reg | QCA8K_REG_DATA_UPPER_16_BITS), + upper_16_bits(val)); CHECK: Alignment should match open parenthesis #2131: FILE: drivers/clk/qcom/nsscc-qca8k.c:2064: +static int qca8k_regmap_update_bits(void *context, unsigned int regaddr, + unsigned int mask, unsigned int value) total: 0 errors, 1 warnings, 2 checks, 2162 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. 0004-clk-qcom-add-clock-controller-driver-for-qca8386-qca.patch has style problems, please review. Once fixed Reviewed-by: Bryan O'Donoghue