Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2468416pxt; Mon, 9 Aug 2021 01:00:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4Dgcqmn+iJx0NZFFAb3FKR2a0M0BVtdVODhqg490sJ/pRMQxKzh/dczsxsKNAXbffjONF X-Received: by 2002:a05:6402:5214:: with SMTP id s20mr28418983edd.374.1628496032841; Mon, 09 Aug 2021 01:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628496032; cv=none; d=google.com; s=arc-20160816; b=LAOVzmzl19E/nbwNWNcN4eJ1/FlxAqLRdFQ/DyWKLh2tmt508sxQCISLfzTeOnPnRi Bdr9pDTcnaj9l5VtOclLjMIRq4+Rp8407b9cUkcLt5B69AVWY3dq+mpJB05Ruj6ezZdi gBxmiE/J1s5x3mDQp5ryPLo/AZ78iM1HIkAWWpoCXNGuAifao0netwtrNw8cxfBW1MhS ht7wa3ueSvgjMqlnAYVSSQPlQfrpjpEVJTDYpHQDvG0ccyeHQAEQGJKbbCHvKK+DXFh4 ZuL/JA7yza2eaPnrc/pEqjMy77UJaF0YpGWk+/L1hBXRobZTvvFpR9rSP7RusflXtMj7 dy5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=FDmayj9MsQZysMROrMQgY1uIkaotHyG2RR1Xax2u5P0=; b=gw1lcuq98kwpGB2vmODo+hgpASUD8piwnG7es2sQ1udrMxjJBbUK9CLyIDNbuyDVYa PL/R5Ar77T5PT57zcuPC9QsWRXzrVxsnvlDPEVzspapGZnOoGCFFS41g5+eXPme0ry91 b/KSRMgaNNnhjwIAM7K3faWk0QXJqZ/b1rHpRNAsEEcftdDekqVyJvELET8Fk6VyuOet HjQhTkDdrWOaATr9J3xXjmI8OEUx3bJ6PKFpTyYzvodXM/5fT3qFZ2mit/jBRn9ElPNU KB8nUkoF0XRbfGrh8mpfVgvi23ogzGdiSuRzewMFFXWJw0hWfSjOzgo03IHQBu1We0OS a4BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dGECYCAe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v24si1667243edy.16.2021.08.09.01.00.10; Mon, 09 Aug 2021 01:00:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dGECYCAe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233684AbhHIH65 (ORCPT + 99 others); Mon, 9 Aug 2021 03:58:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233476AbhHIH65 (ORCPT ); Mon, 9 Aug 2021 03:58:57 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42DF2C0613D3; Mon, 9 Aug 2021 00:58:36 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id g13so32062032lfj.12; Mon, 09 Aug 2021 00:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=FDmayj9MsQZysMROrMQgY1uIkaotHyG2RR1Xax2u5P0=; b=dGECYCAe60SEi43dc3/+8Pah+Y0sJJYss3VH16DeLui2aKuQxIDDZ49Im6HIW0EGR7 +y3wjbT9FjgLcHL7UbcQV7bvY2nqyab+Dqhk6hdsVQY5UN2xz+BECZbKp5WNQVNQnlon dE2lWodKV5DxOjjzQ78Yl8B3yuX+ziR5H/+ACLQHEV8sJOtlBV3mVfulRD1L+KJd8dY+ OtVMfVR0aBtgJCtwNXcYDB5NryzBsq1mfzN3aSX2T9OEAkjDmwfuzjJ/F2ApRkkI1bLM 3FMQzTrgiXpCafSdDInl7EJqo9T8KD6c0GeutpuSwrtU7wKsSX5xB9VPg5zfV/IA7zNl qcmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FDmayj9MsQZysMROrMQgY1uIkaotHyG2RR1Xax2u5P0=; b=GMQvjWd9PVg9kpq9Bl0KqHp5bTFSb/LkVH9NCTTA6+W3wwvzsdNs5Ll8gnorUT1OSc Uvd6N4fT8YLJSZmIArX2UHzpeF0C+lQcDuR8dapuH7vVQWAaCb5m1/ZekLiZetdMDknm 3WHxvoJ93o8D/2WU1SngYygglEGByeTZGRamQuFoNsqiBYjTPEGhO19YiFkEuZCbtIUb 2ayKdQ8Ujq3SCFCOUwquc7yDzBwmGNVMWspaE9iy12rwrsdo5HxySoa+/JOyPX2RPlkS BpOv8untaTIpVI2O+1AVB7RviSuglZNg4GuMM8TUWdMYVJYBMnHyB7RxzKFPnM1pDocV G4/g== X-Gm-Message-State: AOAM530Ak8iL1F5yy2sruQPEkr/XXBKZdpslNwBmqQIyVz/78Qk2GoM2 4Xd4cunscp6ayD1IAdOuA/PQh+jBCW5noWWI31To2m7R9aw= X-Received: by 2002:a05:6512:39c6:: with SMTP id k6mr16557377lfu.549.1628495914651; Mon, 09 Aug 2021 00:58:34 -0700 (PDT) MIME-Version: 1.0 From: Muni Sekhar Date: Mon, 9 Aug 2021 13:28:23 +0530 Message-ID: Subject: read() via USB bus To: kernelnewbies , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, PCIe memory mapped registers can be read via readb(), readw(), readl() kernel API's. Similarly what are the kernel API to read the device registers via USB bus -- Thanks, Sekhar