Message ID | 20231217121133.74703-1-ayushdevel1325@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-2565-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp672000dyi; Sun, 17 Dec 2023 04:11:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+3Kb/3yesFp40H7hLyhyHBiqZVAB4z289R6CYQz7yZ6jvq3Q1ekTKrwnfPD+MZvIMAW5q X-Received: by 2002:a17:903:11c8:b0:1cf:61c8:73e9 with SMTP id q8-20020a17090311c800b001cf61c873e9mr17275390plh.50.1702815116385; Sun, 17 Dec 2023 04:11:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702815116; cv=none; d=google.com; s=arc-20160816; b=kYajRFJcDp2VbOat7O7jiCCP3/zaocYLpkG0Qjdc/MfSz+lSJ1p6anLTCEUynWOF7b 9uqqSHwyiogCky5ck8Bm4+hfqzjycrXpmZ4rPKrMInv7ZI1rqaMf9rK0DwxV3wj8N5dP xhO3n7zqpw5c59CmLv/mFdALjTvShltCb2ragbDx0BwT6VM7d1+aregkBXcnfsAODsN/ MyuLW9RH0szW7B+ECXzgT0wSwHjWXkjndFu9qPsFmMH1W2CW2nCNDeFuTKW4O0/Cjl84 LupWSlD4vnrk1YzoK3TUH19szDb+ZkHUGDie6bY3y1TRXyNjdoziPsx49rLFMQ6UiKUV tJxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=t/MMH/RXWEUDqFDBFvyU8RBy5WsaZx0F+yOSGlX0vEs=; fh=co/de1SGAKZAvSvhfX0xdd1CBSxdr3nV/NugAYVDMAE=; b=ab9YeFRFHmJhxR0kcm2cNlVyhCU51g69sumn544OlQWzePtVENXDxQ8fwtzq4yqdDv I5Bt/qoxBH062i13oiG3bR3HVTp7iSYmyBV8svXSjgu4roDu2pW0228a12RF6sys2vwJ v9wGTixL3K48zJddXfpvdD4M59ueYlOWcaC7KD+i0LutiAY7ShXso8jlMRY/6cavhE2V dSzBLCvhIlWAsxdLZWkW18vI4LQilCF2i58w6v1ryo4DWAmqYs1VS7a7/oElm3kYo5F+ jclMmHD0ON3Z85A89PQAWYOs7cffnsjTWj9Rn8g1xvughwHRxRemL2BkVjp3B1QYZZIm C+sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=i0QNSVdB; spf=pass (google.com: domain of linux-kernel+bounces-2565-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2565-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n4-20020a170902e54400b001d000c817e2si16478013plf.398.2023.12.17.04.11.56 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 04:11:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2565-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=i0QNSVdB; spf=pass (google.com: domain of linux-kernel+bounces-2565-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2565-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 294FF283158 for <ouuuleilei@gmail.com>; Sun, 17 Dec 2023 12:11:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41F9732C92; Sun, 17 Dec 2023 12:11:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i0QNSVdB" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 4957932C64 for <linux-kernel@vger.kernel.org>; Sun, 17 Dec 2023 12:11:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-5cd5cdba609so1778930a12.0 for <linux-kernel@vger.kernel.org>; Sun, 17 Dec 2023 04:11:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702815100; x=1703419900; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=t/MMH/RXWEUDqFDBFvyU8RBy5WsaZx0F+yOSGlX0vEs=; b=i0QNSVdBKuC86ZYerq5ftfZS+Fey1RqrGcXqAZTQ1az8YhphUpRFXzfhZZ75uoCAeT P7ao2/ibkYTiP/TpuCTkMG4q76T+GiBzgtfQ2EPQN6yB9ahzP3soiCAfxceg7wHodL2u vazKqSEjUdqFbYaiik/G02JJE4ClL8PIooXJS0P7DN0HgBMErRnJJSG6Ehh1ge6ww+1d DK/gTRUpWz6ud6v3e+E+/42Qm5jLi2irQboLCKNwYcUMJTuiNQrV1JdGZBXTY3TWBWot HHgItpuhNv8yZlQ+/9pGBEvDa5nrGvo+5b1IpNlDBamhk0LU+qCdG5KmaI+87zuvnzNb MDuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702815100; x=1703419900; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=t/MMH/RXWEUDqFDBFvyU8RBy5WsaZx0F+yOSGlX0vEs=; b=nPzygolqF59PsjULSIvWnDiCunS3jvaIRL5JBOQ+FxLOMeRSjw06r2qJCOFGiqZ+Ws 5+Nyggk2wyrolBQecTjJAUzzoMvwl9MF7aKNZJKSCEVDPYWNeicVj02sewh5mHCgfkks aMJDARF26DVOwn46rVM4/wTEwSCkWj/AVY9HeKpGQXCDoeseVRjobLymdQpUz49/ivYF pPwkgxENamlN43Y9rF1yra5M6IuokV3TqjNW1C5WQ92SOKp8V4PtH1ZhyhCcb5BFhZOH X4z/MB83IJVzSQRmP7SwPBuCo1lWaXkVk9gItHcqqE9FTCnZuf3zMIW/PFELEL2vs+G/ JkOg== X-Gm-Message-State: AOJu0Yx7N1wBPDhCr6X6xc2kVK6CCAtM/Bej+j8frJ/Ytz1uKAuawERE 57y/t2GVkOYV2qF5z8M78qE= X-Received: by 2002:a05:6a20:ba7:b0:18b:5a66:3f70 with SMTP id i39-20020a056a200ba700b0018b5a663f70mr16135498pzh.2.1702815100477; Sun, 17 Dec 2023 04:11:40 -0800 (PST) Received: from toolbox.. ([2406:3003:2007:229e:ac29:68d8:877:4f72]) by smtp.gmail.com with ESMTPSA id it21-20020a056a00459500b006d5a62c612asm890156pfb.215.2023.12.17.04.11.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 04:11:40 -0800 (PST) From: Ayush Singh <ayushdevel1325@gmail.com> To: greybus-dev@lists.linaro.org Cc: Ayush Singh <ayushdevel1325@gmail.com>, johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, jkridner@beagleboard.org, nm@ti.com Subject: [PATCH V3 0/1] Make gb-beagleplay driver Greybus compliant Date: Sun, 17 Dec 2023 17:41:31 +0530 Message-ID: <20231217121133.74703-1-ayushdevel1325@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785531063887146481 X-GMAIL-MSGID: 1785531063887146481 |
Series |
Make gb-beagleplay driver Greybus compliant
|
|
Message
Ayush Singh
Dec. 17, 2023, 12:11 p.m. UTC
In beagleplay beagleconnect setup, the AP is not directly connected to greybus nodes. The SVC and APBridge tasks are moved to cc1352 coprocessor. This means that there is a need to send cport information between linux host and cc1352. In the initial version of the driver (and the reference implementation gbridge I was using), the greybus header pad bytes were being used. However, this was a violation of greybus spec. The following patchset creates a wrapper around greybus message to send the cport information without using the pad bytes. --- V3: - Rebase on char-misc-next V2: https://lists.linaro.org/archives/list/greybus-dev@lists.linaro.org/thread/7YX5I6ZYZTNTAHBH3M3KAMOWXMTAWQNW/ - Add more comments explaining the new greybus hdlc frame payload - Remove msg len warnings. These checks are also performed by `greybus_data_rcvd` and thus no need for it here. V1: https://lists.linaro.org/archives/list/greybus-dev@lists.linaro.org/thread/Y3ELHKLKTP5TQZ5LYKCE6GHWMA3PUOTV/ Ayush Singh (1): greybus: gb-beagleplay: Remove use of pad bytes drivers/greybus/gb-beagleplay.c | 58 ++++++++++++++++++++++++--------- 1 file changed, 43 insertions(+), 15 deletions(-) base-commit: e909abe885e2f399be7ac0560a010d7429f951e1