Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3212758rwo; Mon, 24 Jul 2023 07:53:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlHXl9ce8FN1AC5CMiracrvP0L5AKJDdpMXvra7zKYnqCZZu7C84gQlnpyPNT85SASw7ORVk X-Received: by 2002:a05:6402:1854:b0:51e:d4b:3c9d with SMTP id v20-20020a056402185400b0051e0d4b3c9dmr8353956edy.23.1690210413520; Mon, 24 Jul 2023 07:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690210413; cv=none; d=google.com; s=arc-20160816; b=VxlNprt5paU4EVv36LSoER1NuIB7mYkqs/Hij9duttsGADeG6cGX05IdblHi3b/fSb XpIXiROAzvDeHLCTMF/N4g18LhdWT+xJTv1El5YdGBq84mOVWJh+90VRzWAL+uwHQvIv WaFqbkA+mfBektnvOG1ZWKoL65jFzMXuu11j8S9kgEYStbsXtcyb0mUDFjMbD4ueS2uC yIj2V7vQ6ViZimsJiVGUeXoW260ZV3CML4GPitntR0vtdjF+jLlHrKa9+NZmS2EYbybl QbDyC3/q/nBAgY9qV2BW4zjENwz1s+9ZJ8W6szonEpOL9ENHpYDsrZhnUMwapezd3cJI GJwg== 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=kFsdftyK3+Hjh6YZCiv90oQz5L7Aa5bag5+SY+gfUk0=; fh=5DjMKXVWi23ZnMnmCTC6AgEQJFFYsOz/4zfiWTrIEik=; b=EmRnqojUlB0lADi/OldnZZxJ2BFZLpsSD3CGakQRxvgUGT2wcJSLuF1mBJA/skiyNt s0T6mQlXH61aq7f+wxIusyP81PKptHVZ49PaIxhKd09lZ2HMhn311yLWwDXyH5VDcWQE fW88GG2T65pJEIE4hq6J7+EYNjdCI2f1kgkjbdmx+nJtq9k/jA8fFEScj8RG++YdwDhn VMi2fCQ3UFaHx0mayxNfhfPkTzMoSYkoOZiRhbta0AQldMnYMCgNSKKI5pMrF6CpeVk7 C/SvehJURF9yKB8f6qSf9TTP4m0IXMqAtcpTByMwyyMl4lXNRFjbMH40VjVI7cwZSHco cxhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YXK56mgl; 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 n26-20020aa7db5a000000b0051bf8df2a07si6713567edt.364.2023.07.24.07.53.08; Mon, 24 Jul 2023 07:53:33 -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=YXK56mgl; 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 S231300AbjGXOkO (ORCPT + 99 others); Mon, 24 Jul 2023 10:40:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231272AbjGXOkH (ORCPT ); Mon, 24 Jul 2023 10:40:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0000E1AD for ; Mon, 24 Jul 2023 07:40:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 55130611B5 for ; Mon, 24 Jul 2023 14:40:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15A1FC433C7; Mon, 24 Jul 2023 14:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690209601; bh=fFklD/dD3ZlIrQ8Dme3nM4aHtIVER8kIWVHDgtLowiA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=YXK56mglYQbhe0yCW4Y17XI9jEHo5EGCcO0SEyxZRYKyEJreND6e4eM+w0OTTeQNR 4dfDsaR6BTkFpyim85b6y8cQp9x0Hnjw7WDI0c8PNN6cz/BrAYtxz4tTJ0qiJqmYte zFNODQJpsaJyS6AAljj+3NdjLW4imvnaTv2wQcRkVMe5gd139BOaYp9sdIQH4d+5ak 8s14NAAYfBJPULbW9m0wevkrTg9I+yecCSQMP+bjmmdRfImelasIwfUMR0oMpeL+OD ALHB0y2Ktz2D+d/Sm/VbRdqtAS6idQWaOEA7Ol2G2e9viEsrJXnO7L5whFoiXv4pwv igX1Iqi89/lIQ== Message-ID: <4faac72e-3ab8-6a07-dad0-7be8840da7c4@kernel.org> Date: Mon, 24 Jul 2023 09:39:58 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v3 2/2] firmware: stratix10-rsu: query spt addresses Content-Language: en-US To: "Lee, Kah Jing" Cc: "linux-kernel@vger.kernel.org" , "Bacrau, Radu" , "Ang, Tien Sung" References: From: Dinh Nguyen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 7/20/23 21:34, Lee, Kah Jing wrote: > Hi Dinh, > > Any feedback on this patch ? > Please fix these checkpatch warnings: CHECK: Alignment should match open parenthesis #64: FILE: drivers/firmware/stratix10-rsu.c:275: +static void rsu_get_spt_callback(struct stratix10_svc_client *client, + struct stratix10_svc_cb_data *data) CHECK: Unnecessary parentheses around 'data->status != BIT(SVC_STATUS_OK)' #70: FILE: drivers/firmware/stratix10-rsu.c:281: + if ((data->status != BIT(SVC_STATUS_OK)) || (*mbox_err) || + (*resp_len != RSU_GET_SPT_RESP_LEN)) CHECK: Alignment should match open parenthesis #116: FILE: drivers/firmware/stratix10-rsu.c:626: +static ssize_t spt0_address_show(struct device *dev, + struct device_attribute *attr, char *buf) CHECK: Alignment should match open parenthesis #130: FILE: drivers/firmware/stratix10-rsu.c:640: +static ssize_t spt1_address_show(struct device *dev, + struct device_attribute *attr, char *buf) CHECK: Alignment should match open parenthesis #190: FILE: drivers/firmware/stratix10-rsu.c:787: + ret = rsu_send_msg(priv, COMMAND_MBOX_SEND_CMD, + RSU_GET_SPT_CMD, rsu_get_spt_callback);