Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp15028lqb; Tue, 16 Apr 2024 07:36:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW92MwlHXC05LId9zyMh99tLZMAO8d+PQMFagQY90/lUYVdSzPbBnnYSY4bu0XlRJEIeUTj9PSEOkTEfB/OPx2PSBTGUy93XdTMh0zUqQ== X-Google-Smtp-Source: AGHT+IHr1j4+MA0Gg3ktOmaw8bkWRy1VLY+k/wHuBq8E7fUzh3srbMgMsTYQiG7xD6J5/lsEeSq5 X-Received: by 2002:a0c:c788:0:b0:69b:5410:df8d with SMTP id k8-20020a0cc788000000b0069b5410df8dmr13173106qvj.41.1713278165438; Tue, 16 Apr 2024 07:36:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713278165; cv=pass; d=google.com; s=arc-20160816; b=L4MHJs0HtzkNHsb5akzzh/z983+b6zxG+Kvasm9XLH+U25BXLqapkYMDQU6apPdRek esu8VPN176EYY4gCPuZ/9Hy9BRAUJihxFkmOVmfx3y1k9UEjsr5n+9Z+5Chl9pBFttHH 9/kpb1vDQW0tH0bT+POJcspA5dfl+A0t7k6U94kyu2X9rui1IxQF/VxUVQpJ8riZs49+ 35b6SodEed/OmsHHkNpXEXKFs7DOocpBAOsKgmfn2xQ5mNpn6iphWoBI2q3hBbRrUdgT BI7+dvb6O7mffSG6gKTSuq0SMM//pRX0FYkGCj1IW+QzlxVBA4vmB56hAAB+j2Q9RDAi Cong== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=UsftWv75jPp8q+uPwfqAdrYpSmyrP3n9PngY1U3XH1s=; fh=8kBUbY5orBO2w3CoLiPJvs3mOEwl+KQooY6oMor7Di4=; b=rZ6NPJfJNeXMvhea8e/Hu7DDfzHy4HT4+w52ku3kPbaE9VBMk0N+NnRe6qENz+eHrU 1A9Pp+YBBNhTe99PhWun0jDcsFcIhGJSZi5ky6LN9Ho4zJWhNoQ3+XQjxrK7lMLf3Qf7 sUMXBUyq2gKHmVYMy9e8L++KfLAprUS2NZnL7kRS6VB6e6NdlKwSLMEgBpUTDeU3YPkO p9r5RGW5zSwHBGp4CyT1gkMl0QJTZn6hmAHm3LKkbOzP8AOaaHbePfdNd6VGtgPkxxGT ifSopQNaDIrYx52OMiSRAlOlGszZvXmZVQ+GiwBJCpZhyJl8cAK7r4TFEKOXeRTxUK7z CRLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Aj1AmpYE; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-147032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c2-20020a0ce7c2000000b0069b1f8b4d91si12613061qvo.108.2024.04.16.07.36.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 07:36:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Aj1AmpYE; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-147032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2C82E1C22998 for ; Tue, 16 Apr 2024 14:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38F1B3B78D; Tue, 16 Apr 2024 14:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Aj1AmpYE" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6764B12D75D for ; Tue, 16 Apr 2024 14:34:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713278097; cv=none; b=bCNkTI3uhL8B1sjUIcSvD/vpo7c/2o9S9AaunPB2uycaiRSpoAVnoN31fdH12DRT2FSUWmV+4G6M+AmNx1tIuqjlJYB9Zx9iSjEe0ti0KzBYXIIM4EyrTc5pWR4pLtfLM1IMCAxRj95ZZQUzgk2bXyJtqZHKcuITPVmfRAe3xiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713278097; c=relaxed/simple; bh=9gWEqpeQ44KAT26aG8dQwX9JQ/Rx+NiPE+QCZt7ZX80=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CnCsA412xrTRr+IK9Z6nd92zOdpuDqOA9xPtcvot6vpf22F7YhwRQT/NS3lFSqJ2lq7J8xMfE3rIdtbtX6e+dsTxsdzS/iwRxAjZ11pasoQL4JIJDc60DnLRupxJX9secx6Ppfq9IYRibo2rjTXTNnFoeulMgLAgw65Tho+swj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Aj1AmpYE; arc=none smtp.client-ip=209.85.208.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2d094bc2244so51810261fa.1 for ; Tue, 16 Apr 2024 07:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713278093; x=1713882893; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=UsftWv75jPp8q+uPwfqAdrYpSmyrP3n9PngY1U3XH1s=; b=Aj1AmpYErLKiIiVuMej+Ahfwd0EQnGloXGdLTPx9s5aDFZnL6zPuVXuf5gqG/U30yZ InctDQSJCGLYsOiimH0jtJfFNvxrR8EtVT8TvVh7OV9572RFoK6LHUXKYsknRNaUKEeP 7lqFSit+aBIC7qfQTgpCoYiDQDkBF0WOk6A/gpJ+d8mKn94l5/5eR3Ydvq0WFUyTKcLn NogyJZ3FMl7tGIEemvzUHi75qEWIb3yQjAB13P1mmUDyq4UytjL3RNBzvGjXk5Svpa5R r/mzF1f3XqY4jqWTsMnCF+gFPCmgKrPSqT0Ob1krIxWkxWdkF9Mii4NWwylFyrEIXC1A mpsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713278093; x=1713882893; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UsftWv75jPp8q+uPwfqAdrYpSmyrP3n9PngY1U3XH1s=; b=wQIOuMImHADNUW2+ZEk+DVsBa2mdK4UC+mqREziYo4AMnI7bOoohBZyG3QZaUpn5p7 1Tq0Tv8RAuV9yGsUhbFQ/SDmcfTFLPcfx6ffUCIVpc+5h7sJjd4lgtggoOVi31B6UOY6 +eDOM3UQOjxRR1BTjqNtEB4YW7ixrnJ4NemSleHe513rhoEhUDH6J6VTjg5q1aFULqzR +AJkUhHHVngAQF7AEByZY9hgvMOtKUIDMs2+cGp0Pv/2zid3fJR81O+7YA8aGeRAfI+R YlDjbWGsey9cL2u8XLVHdsW5sqWu/2gxGKoQ/SQ9lpsoQc+9GECtXs4MEyjLh+n2zh// mtQA== X-Forwarded-Encrypted: i=1; AJvYcCUJoAnTscouiw7vwTl+Fvgb4IiGiJC+0wJkF7v6o32dboVCXWNLpmJ1DxsGa138B4on1f7akY1Z35DGhlufHjZhqGH54hUXdeN2V0bw X-Gm-Message-State: AOJu0Yw/dkxtwr/z5Qejrb5raslt4bCQ6W31jMuvuS9hJNzAR4EobF+J 2Ztiee7EnI76VJ8FNZqspZIWoyXdwzwycLkoSEtpxbKE+BQ/4iUwD7FWI3+FeCA= X-Received: by 2002:a2e:9b49:0:b0:2d8:df61:9c6c with SMTP id o9-20020a2e9b49000000b002d8df619c6cmr8444196ljj.20.1713278093557; Tue, 16 Apr 2024 07:34:53 -0700 (PDT) Received: from [172.30.205.49] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id u12-20020a2e2e0c000000b002d9f87402e3sm1426372lju.51.2024.04.16.07.34.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Apr 2024 07:34:53 -0700 (PDT) Message-ID: Date: Tue, 16 Apr 2024 16:34:52 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/8] usb: typec: ucsi: glink: use le32 for message data To: Dmitry Baryshkov , Heikki Krogerus , Greg Kroah-Hartman , Neil Armstrong , Bjorn Andersson Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20240416-ucsi-glink-altmode-v1-0-890db00877ac@linaro.org> <20240416-ucsi-glink-altmode-v1-4-890db00877ac@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20240416-ucsi-glink-altmode-v1-4-890db00877ac@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/16/24 04:20, Dmitry Baryshkov wrote: > The message structures as transferred by the PMIC_GLINK use le32 for > data encoding. Correct struct accessors to follow the lead of the main > pmic_glink.c driver. > > Fixes: 62b5412b1f4a ("usb: typec: ucsi: add PMIC Glink UCSI driver") > Signed-off-by: Dmitry Baryshkov > --- There are a couple of if (resp->ret_code) occurences, but zero is zero no matter the bit order, so that works out Reviewed-by: Konrad Dybcio Konrad