From patchwork Fri Apr 12 11:04:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 16081 Return-Path: X-Original-To: linaro@staging.patches.linaro.org Delivered-To: linaro@staging.patches.linaro.org Received: from mail-gg0-f197.google.com (mail-gg0-f197.google.com [209.85.161.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EAE9926EB0 for ; Fri, 12 Apr 2013 11:07:13 +0000 (UTC) Received: by mail-gg0-f197.google.com with SMTP id k5sf3502479ggn.0 for ; Fri, 12 Apr 2013 04:06:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-auditid:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-brightmail-tracker:x-brightmail-tracker :dlp-filter:x-mtr:x-cfilter-loop:x-gm-message-state :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=q8hNQu3LEMOXrnvhHEmsCgxkkY1yPNqTCuor66Shf3M=; b=HsFpDl5mulkA2PVie9Xml+7JaGh+1ACSWi7ppFHINGedq3H4IfLjdLRvTon3IAvqst MIg/cJ+D24nvwztTbsIa0BLBB/WX/3/mTVeJaKZ7qxV2/ShHZPPF/++u9S9AhGTdFAhr 2tisKSMZm+rrl1thBY2JhQGh6ZkoCpt48pcL2jEPcnkhMOEqh+iGtdbP7YKd9O2kb9n5 4M3+6YQg7rlJhwHTz1vzcp+8fn8ApDhQNVsEgkSFBCDFSdfe/91pCJMDamhy8qXlt31g 0RKB7cets1e4Vxd2Zvf6/TEccd9rf73d+VZ+79irbaFTHi37XBSLyJOdBgdWaiRms2NR Pj+w== X-Received: by 10.224.207.2 with SMTP id fw2mr5967817qab.6.1365764810521; Fri, 12 Apr 2013 04:06:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.63.137 with SMTP id g9ls1301574qes.87.gmail; Fri, 12 Apr 2013 04:06:50 -0700 (PDT) X-Received: by 10.52.17.174 with SMTP id p14mr6677958vdd.125.1365764810349; Fri, 12 Apr 2013 04:06:50 -0700 (PDT) Received: from mail-vb0-x22f.google.com (mail-vb0-x22f.google.com [2607:f8b0:400c:c02::22f]) by mx.google.com with ESMTPS id d10si6173875vdv.93.2013.04.12.04.06.50 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Apr 2013 04:06:50 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22f is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22f; Received: by mail-vb0-f47.google.com with SMTP id x13so2008790vbb.20 for ; Fri, 12 Apr 2013 04:06:50 -0700 (PDT) X-Received: by 10.220.214.6 with SMTP id gy6mr7983120vcb.8.1365764810198; Fri, 12 Apr 2013 04:06:50 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp60874veb; Fri, 12 Apr 2013 04:06:49 -0700 (PDT) X-Received: by 10.68.189.230 with SMTP id gl6mr14015193pbc.196.1365764809123; Fri, 12 Apr 2013 04:06:49 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id te10si8362319pbc.205.2013.04.12.04.06.48; Fri, 12 Apr 2013 04:06:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of gautam.vivek@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0ML500FQZ2V979O0@mailout4.samsung.com> for patches@linaro.org; Fri, 12 Apr 2013 20:06:47 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.122]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id EA.9B.05174.7CAE7615; Fri, 12 Apr 2013 20:06:47 +0900 (KST) X-AuditID: cbfee68f-b7f4a6d000001436-99-5167eac7a939 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 63.19.13494.7CAE7615; Fri, 12 Apr 2013 20:06:47 +0900 (KST) Received: from vivekkumarg-linuxpc.sisodomain.com ([107.108.214.169]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0ML500IF52UIWD90@mmp2.samsung.com>; Fri, 12 Apr 2013 20:06:47 +0900 (KST) From: Vivek Gautam To: u-boot@lists.denx.de Cc: u-boot-review@google.com, patches@linaro.org, marex@denx.de, rajeshwari.s@samsung.com, sjg@chromium.org, vikas.sajjan@samsung.com, amarendra.xt@samsung.com, vipin.kumar@st.com, gautam.vivek@samsung.com Subject: [PATCH v3 4/8] usb: Update device class in usb device's descriptor Date: Fri, 12 Apr 2013 16:34:36 +0530 Message-id: <1365764680-10917-5-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1365764680-10917-1-git-send-email-gautam.vivek@samsung.com> References: <1365764680-10917-1-git-send-email-gautam.vivek@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42JZI2JSpXv8VXqgwYF1mhZfFnSyW7RdOchu 8aatkdFiyuEvLBYtaw+wWnzbso3RYvnrjewWb/cCldx8tp3J4t+la6wOXB6zGy6yeMybdYLF Y8GmUo871/aweZy9s4PRo2/LKkaPpz/2MgewR3HZpKTmZJalFunbJXB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X4MGUv2BxeAQ+J48cnMEEsU5B4c/sZM4jNKeApcX7pW3aIXR4SK/t3s0xg5F3A yLCKUTS1ILmgOCk910ivODG3uDQvXS85P3cTIzjmnknvYFzVYHGIUYCDUYmH94VweqAQa2JZ cWXuIUYJDmYlEd6YvWmBQrwpiZVVqUX58UWlOanFhxiTga6ayCwlmpwPTAd5JfGGxibmpsam liYWJmaWpAkrifMebLUOFBJITyxJzU5NLUgtgtnCxMEp1cAYNnVD/89zVjU8ZluSLXtu+KnU cff0PNGaZaUZvfB1QHxBwJ9pMku+zZr2WJhp3cybHZJRuZxfvp7IerV2buarwlvnJ1Z2RL+8 PF916f7T/39bn+k7+nVeWn2pW/3tKf1y4vq3/MUsbJYdcj6udGhe4Md9YbfvtwfW7LsUd7aM KeqThPFMt0fqSizFGYmGWsxFxYkAXNnVs/0CAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQl4SgpWdw4KJ3CErF0a2LMIBvnFpDVzri/7Z8ryE6aK0SOqo0JTFBJWGZOTHp2tdf/xFv7j X-Original-Sender: gautam.vivek@samsung.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22f is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Fetch the device class into usb device's dwcriptors, so that the host controller's driver can use this info to differentiate between HUB and DEVICE. Signed-off-by: Amar --- Changes from v2: - none common/usb.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/common/usb.c b/common/usb.c index 8407974..3a96a34 100644 --- a/common/usb.c +++ b/common/usb.c @@ -879,6 +879,11 @@ int usb_new_device(struct usb_device *dev) } dev->descriptor.bMaxPacketSize0 = desc->bMaxPacketSize0; + /* + * Fetch the device class, driver can use this info + * to differentiate between HUB and DEVICE. + */ + dev->descriptor.bDeviceClass = desc->bDeviceClass; /* find the port number we're at */ if (parent) {